Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22875 invoked from network); 29 Mar 2010 07:14:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Mar 2010 07:14:18 -0000 Authentication-Results: pb1.pair.com header.from=mathieu.suen@easyflirt.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mathieu.suen@easyflirt.com; spf=pass; 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:40401] helo=mail.easyflirt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/B2-05444-84350BB4 for ; Mon, 29 Mar 2010 02:14:17 -0500 Received: from [192.168.0.51] (office.easyrencontre.com [78.155.152.6]) by mail.easyflirt.com (Postfix) with ESMTPSA id BA66F6374CD; Mon, 29 Mar 2010 09:14:13 +0200 (CEST) Message-ID: <4BB05344.4010503@easyflirt.com> Date: Mon, 29 Mar 2010 09:14:12 +0200 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> <4BAC7B1C.8000704@easyflirt.com> <4BACF5E7.3050205@zend.com> In-Reply-To: <4BACF5E7.3050205@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! > >> IMHO __get is not consistent at the first place. >> on possible example: > > It is perfectly consistent. You just need to read what it actually does: > http://www.php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members > > > instead of imagining what it could do. It is not because it is written somewhere in the documentation that it make sense. This kind of operation is the kind you want to do with a meta-level, not the base level. You could even use mirror and design a security layer: http://gbracha.blogspot.com/2010/03/through-looking-glass-darkly.html I don' assume __get should work in "a" or "b" way. So to clarify IMHO it should not exist at all! -- Mathieu Suen