Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86956 invoked by uid 1010); 18 May 2004 09:42:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86802 invoked from network); 18 May 2004 09:42:12 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.117) by pb1.pair.com with SMTP; 18 May 2004 09:42:12 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 21C8E6CFA8; Tue, 18 May 2004 11:42:12 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 0C02E6CFBB; Tue, 18 May 2004 11:42:11 +0200 (CEST) Received: from cschneid.com (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by xaxa.search.ch (Postfix) with ESMTP id 9C4EA6CFA8; Tue, 18 May 2004 11:42:07 +0200 (CEST) Message-ID: <40A9DA6A.1010502@cschneid.com> Date: Tue, 18 May 2004 11:42:02 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en, de-ch MIME-Version: 1.0 To: Sara Golemon Cc: internals@lists.php.net References: <20040518040006.36155.qmail@pb1.pair.com> In-Reply-To: <20040518040006.36155.qmail@pb1.pair.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: protected/private access and var_dump/print_r From: cschneid@cschneid.com (Christian Schneider) Sara Golemon wrote: > var_dump($someobject); shows only public properties (as I'd expect), but > print_r($someobject) shows all properties (explicitly identifying > protected/private props). I agree with Derick and Andrey in that if anything should be changed it is var_dump. Reasoning: PPP is there to specify an interface, not to be used in a sandbox way. Both var_dump and print_r are for human inspection and I don't an advantage in hiding information there, quite the opposite. - Chris