Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70205 invoked from network); 5 Feb 2014 20:11:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 20:11:58 -0000 Authentication-Results: pb1.pair.com header.from=cryptocompress@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cryptocompress@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.83.43 as permitted sender) X-PHP-List-Original-Sender: cryptocompress@googlemail.com X-Host-Fingerprint: 74.125.83.43 mail-ee0-f43.google.com Received: from [74.125.83.43] ([74.125.83.43:46876] helo=mail-ee0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/36-38005-D0B92F25 for ; Wed, 05 Feb 2014 15:11:58 -0500 Received: by mail-ee0-f43.google.com with SMTP id c41so459878eek.30 for ; Wed, 05 Feb 2014 12:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=UnIIjH5fjG/2hQRRcZ+AVtMNv++1eXh5lzNpG7lwb18=; b=PUohBNeXh2Xh4d89JB9+4YWhboEHeo/nUrSI+TdAf8iMPOwNzUcQEK2bdRFoFnLdlN N3Kmd9CRdaxXjQ5B54pdcy1xtQO4dj/vWPBBYzoVB1meBkV/NO0saqypxyItBP1cDKJ2 +QfHWoWU/mtx0JRj+c9SOaPlSZbObsMJhAhE0h9Jji/9JQshhJwAp1fG7adRtcXch8R1 arU8n5e6Kgw+3XjGPEFR3edJKr5GT/WFLgAbRWBMTXUe0f2j0C3KdLi7eTl1vQLUgYua SVw2tgTjb7PCzTFWKq0+QDqW88gg8z4qlQJV0JEpOIE43l81x0Gv0RyEz0Zsr3EE7/Fy 29KQ== X-Received: by 10.14.29.6 with SMTP id h6mr4283551eea.84.1391631115190; Wed, 05 Feb 2014 12:11:55 -0800 (PST) Received: from [192.168.1.115] (mnch-5d856266.pool.mediaWays.net. [93.133.98.102]) by mx.google.com with ESMTPSA id 8sm106061378eeq.15.2014.02.05.12.11.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 12:11:54 -0800 (PST) Message-ID: <52F29B04.9080609@googlemail.com> Date: Wed, 05 Feb 2014 21:11:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Sara Golemon , PHP Developers Mailing List References: <52F00437.7010903@googlemail.com> <52F005E6.6090702@googlemail.com> <52F0D36B.7010905@googlemail.com> <52F29880.6050304@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: cryptocompress@googlemail.com (Crypto Compress) > Apart from the aforementioned array cast which is both easy and fast. > It's not easy nor fast to change output of a whole object graph. > Changing class definitions/methods of whole object graph is obviously not an option. > Casting to array is of no help as only for current object and only for public props. > Personally, I think the potential for improving debug output far > outweighs the potential for abusing it to hide important info. > > -Sara Yes, so why not add extra method for this? "pretty_dump()" This "abuse" is way common then you think (99%?).