Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99253 invoked from network); 26 Mar 2010 09:15:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2010 09:15:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathieu.suen@easyflirt.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathieu.suen@easyflirt.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain easyflirt.com designates 91.199.255.56 as permitted sender) X-PHP-List-Original-Sender: mathieu.suen@easyflirt.com X-Host-Fingerprint: 91.199.255.56 python-06.easyrencontre.com Linux 2.6 Received: from [91.199.255.56] ([91.199.255.56:52502] helo=mail.easyflirt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/51-26248-12B7CAB4 for ; Fri, 26 Mar 2010 04:15:14 -0500 Received: from [192.168.0.51] (office.easyrencontre.com [78.155.152.6]) by mail.easyflirt.com (Postfix) with ESMTPSA id A7D6F6374DD; Fri, 26 Mar 2010 10:15:10 +0100 (CET) Message-ID: <4BAC7B1C.8000704@easyflirt.com> Date: Fri, 26 Mar 2010 10:15:08 +0100 User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Stanislav Malyshev CC: Ionut Gabriel Stan , internals@lists.php.net References: <4BA0DF61.1010907@easyflirt.com> <4BA1DB19.1080608@easyflirt.com> <660eb66f1003180224g5662ba1dtb123c3ee88a3a3e5@mail.gmail.com> <4BA25919.8090805@easyflirt.com> <4BA37E11.9080403@gmail.com> <4BA7C9CF.1000008@zend.com> <4BABF123.4050102@gmail.com> <4BABF675.4010006@zend.com> <4BAC005C.5020404@zend.com> In-Reply-To: <4BAC005C.5020404@zend.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Assign array with __get From: mathieu.suen@easyflirt.com ("mathieu.suen") Stanislav Malyshev wrote: > Hi! > >> So what you're saying is that it is *consistent* with regard to the >> implementation of methods/functions, i.e. __get behaves as an >> ordinary method. > > Yes, it does. IMHO __get is not consistent at the first place. on possible example: class A { protected $foo; public function __get($name) { echo 'GET'; } public function test() { return $this->foo; } } $a = new A; $a->foo; $a->test(); -- Mathieu Suen