Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44177 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41976 invoked from network); 5 Jun 2009 13:00:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2009 13:00:24 -0000 Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:35155] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/EC-09243-7E6192A4 for ; Fri, 05 Jun 2009 09:00:23 -0400 Received: from [83.228.56.37] (port=3961 helo=pc) by host.fmethod.com with esmtpa (Exim 4.69) (envelope-from ) id 1MCZ1v-00012u-53 for internals@lists.php.net; Fri, 05 Jun 2009 08:00:19 -0500 Message-ID: To: "internals" References: <3949706BB9424F7FAC5AC708A01119DB@pc> Date: Fri, 5 Jun 2009 15:58:50 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01C9E5F6.845861B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] Test for edge cases with __get and property access flags From: sv_forums@fmethod.com ("Stan Vassilev") ------=_NextPart_000_0009_01C9E5F6.845861B0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 3. When the caller tries to retrieve $object->foo, and foo is a = private/protected member the caller has no access to, instead of an = error, __get is called. I'm not very sure the current behavior on item 3 is the best one = (maybe error should be thrown regardless?), but freezing on either would = be better than leaving it undefined :) I always thought that this is the supposed behaviour. I believe I even = relied on it in one of my projects=20 Hi, If the community wants it like it is, then I'm just fine with that: as = long as the test is committed, so that it doesn't change overnight. Any = volunteers :)? Regards,=20 Stan Vassilev ------=_NextPart_000_0009_01C9E5F6.845861B0--