Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39789 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22845 invoked from network); 9 Aug 2008 00:09:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2008 00:09:08 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:19065] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/C3-02575-320EC984 for ; Fri, 08 Aug 2008 20:09:08 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Aug 2008 03:09:53 +0300 Received: from [192.168.16.110] ([192.168.16.110]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 8 Aug 2008 17:09:50 -0700 Message-ID: <489CE04E.5080804@zend.com> Date: Fri, 08 Aug 2008 17:09:50 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Pierre Joye CC: Marcus Boerger , PHP Internals References: <489CAD75.2060404@zend.com> <1961502655.20080809000521@marcus-boerger.de> <489CC5BD.4060701@zend.com> <221319091.20080809002725@marcus-boerger.de> <489CCB62.8010406@zend.com> <122515992.20080809010008@marcus-boerger.de> <489CDBC9.30601@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Aug 2008 00:09:50.0285 (UTC) FILETIME=[3D97D7D0:01C8F9B4] Subject: Re: [PHP-DEV] by-ref return & inheritance From: stas@zend.com (Stanislav Malyshev) Hi! > I'm not sure to like the idea. I'm not a fan of OO strictness but I'd > to agree with Marcus, I do not expect a reference from an overrided How can you "not expect reference"? I.e. which code that worked previously wouldn't work now? > __get. There is also the problem with internal classes, if I'm not > mistaken. Which problem? Could you elaborate? > I meant set by reference. Is it not the same problem? > > class foo {function __set($key, &$value) {}} >> fatal error Ah, I see what you mean. But I'm not sure __set has this semantics now anyway - unless we'd support it with $a->foo =& $bar somehow, but right now we don't. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com