Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52225 invoked from network); 26 Mar 2008 20:04:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2008 20:04:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:16130] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/AA-47041-86CAAE74 for ; Wed, 26 Mar 2008 15:04:57 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 26 Mar 2008 22:05:24 +0200 Received: from [192.168.16.84] ([192.168.16.84]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 26 Mar 2008 13:05:21 -0700 Message-ID: <47EAAC62.6080704@zend.com> Date: Wed, 26 Mar 2008 13:04:50 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: RQuadling@GoogleMail.com CC: Felipe Pena , Lars Strojny , Robin Fernandes , internals References: <5a8807d10802050343r43742844we89366ec47b57f4b@mail.gmail.com> <46ccd1ab0803241816k413c7605p2c3fb9139afd8536@mail.gmail.com> <5a8807d10803250404o6fd33662wbbf3ff14d296cb2a@mail.gmail.com> <1206444907.11368.4.camel@localhost> <1206445347.5400.1.camel@felipe> <10845a340803260945u7a49d991uac5d39be13cca988@mail.gmail.com> In-Reply-To: <10845a340803260945u7a49d991uac5d39be13cca988@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Mar 2008 20:05:21.0296 (UTC) FILETIME=[B86D8100:01C88F7C] Subject: Re: [PHP-DEV] Inconsistencies when accessing protected members From: stas@zend.com (Stanislav Malyshev) >> This still will works. > > Surely it shouldn't work at all unless the $foo === $this? Why not? If the context is right, why shouldn't it be able to call this content's protected functions? As I understand, protected funciton means no code outside the class can call it, since it's not a part of the public API. However, here we have clear case of code *inside* the class, so what's the problem with calling it? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com