Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65038 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59888 invoked from network); 20 Jan 2013 13:46:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2013 13:46:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:33513] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/F1-25745-815FBF05 for ; Sun, 20 Jan 2013 08:46:01 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 7BE7B70003EB; Sun, 20 Jan 2013 13:45:57 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id iQKZuR7DunsV; Sun, 20 Jan 2013 13:45:57 +0000 (WET) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 4C52470003DD; Sun, 20 Jan 2013 13:45:56 +0000 (WET) Received: from damnation.nl.lo.geleia.net (a80-101-138-144.adsl.xs4all.nl [80.101.138.144]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id CC3B12003A38; Sun, 20 Jan 2013 13:45:55 +0000 (WET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Nikita Popov" , "Sherif Ramadan" Cc: "Clint Priest" , "Steve Clay" , "PHP Internals" References: <50F840F4.7080704@zerocue.com> <50F87A23.60808@mrclay.org> <50F8A88D.1000409@zerocue.com> Date: Sun, 20 Jan 2013 14:45:54 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/12.12 (Linux) Subject: Re: [PHP-DEV] [VOTE] Property Accessors for 5.5 From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Sun, 20 Jan 2013 14:35:14 +0100, Sherif Ramadan wrote: > What I'm saying is this kind of behavior needs far more serious reasoning > than the very naive assesment you're making above. > > I mean that with all due respect. Just wondering if there is another take > on this from anyone else? > I think the current behavior is most appropriate one for var_dump() (and array casts/get_object_vars()). It's the same behavior as if you had manually defined getXXX() methods or used __get(). If you start marking function calls, you get new problems like handling getters that throw exceptions or have side effects ("the code behaves differently when add a var_dump()?!"). -- Gustavo Lopes