Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65042 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70274 invoked from network); 20 Jan 2013 15:31:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2013 15:31:39 -0000 Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 67.200.53.250 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 67.200.53.250 mail.zerocue.com Received: from [67.200.53.250] ([67.200.53.250:59843] helo=mail.zerocue.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/43-25745-BDD0CF05 for ; Sun, 20 Jan 2013 10:31:39 -0500 Received: from [172.17.0.122] (unknown [70.112.216.188]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.zerocue.com (Postfix) with ESMTPSA id D5436120383; Sun, 20 Jan 2013 15:31:35 +0000 (UTC) Message-ID: <50FC0DD5.8000206@zerocue.com> Date: Sun, 20 Jan 2013 09:31:33 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Sherif Ramadan , PHP Developers Mailing List References: <50F840F4.7080704@zerocue.com> <50F87A23.60808@mrclay.org> <50F8A88D.1000409@zerocue.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050301040205010600070202" Subject: Re: [PHP-DEV] [VOTE] Property Accessors for 5.5 From: cpriest@zerocue.com (Clint Priest) --------------050301040205010600070202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 1/20/2013 7:35 AM, Sherif Ramadan wrote: > Now $surface shows us the following from var_dump.... > > object(surface)#1 (3) { > ["area"]=> > NULL > ["width"]=> > int(4) > ["height"]=> > int(2) > } Sounds like a reasonable approach to me... var_dump() 1) Should not invoke the getters.. 2) Should indicate that they are property accessors (perhaps not even show the underlying guarded property?) Possibly: object(surface)#1 (3) { ["area":accessor]=> NULL ["width":accessor]=> int(4) ["height":accessor]=> int(2) } This could easily be changed if nobody had any further disagreements with this? Only issue I could see would be existing code that may parse var_dump() might break if it wasn't written to accept something other that private/protected... -- -Clint --------------050301040205010600070202--