Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30105 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67173 invoked by uid 1010); 6 Jun 2007 07:13:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67158 invoked from network); 6 Jun 2007 07:13:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2007 07:13:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.214.80.207 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.80.207 unknown Linux 2.6 Received: from [85.214.80.207] ([85.214.80.207:60290] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/B3-39877-1BE56664 for ; Wed, 06 Jun 2007 03:13:54 -0400 Received: from [10.10.4.203] (unknown [194.230.53.149]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 16F901B360E; Wed, 6 Jun 2007 09:13:50 +0200 (CEST) Date: Wed, 6 Jun 2007 09:13:47 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <13010659619.20070606091347@marcus-boerger.de> To: Pierre CC: "Stanislav Malyshev" , internals@lists.php.net In-Reply-To: References: <1655508223.20070605221904@marcus-boerger.de> <4665CE64.3070901@zend.com> <4665D1D5.8080505@zend.com> <4665D45E.9000806@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] SPL & PCRE as always enabled in core From: helly@php.net (Marcus Boerger) Hello Pierre, it is neither a core feature nor does it blong into the engine. And the real solution would be: - proxies (object, property), (object, array index) - another interface, say ArrayAccessByRef which allows to deal with references, a few things can be done automatically but you can never solve all issues - unless you're using proxies - also another interface for IteratorByRef that has function &__current() might be interesting Now the proxies caneasily be done in userspace once we have the ability to overload get/set - i am actually thinking of doing something in pecl/spl_types. And later might be done in the engine completely. The interfaces however clearly belong into the engine. best regards marcus Wednesday, June 6, 2007, 9:02:00 AM, you wrote: > On 6/5/07, Stanislav Malyshev wrote: >> >> Could you elaborate - which bugs? >> > >> > A rude explanation was here: >> > >> > http://blog.thepimp.net/index.php/post/2006/11/28/comment-posting-fixed-and-warning-removed-and-some-overload-mess >> >> I'm not sure I understand where is the bug. If your __get doesn't return >> by reference, it can't be modified. That's how it's supposed to work. If >> it returns by ref, it works. > Please check the bugs database. There was numerous reports about this > problem and there is no solution to use an object instead of an array > (object being reference, that solves the issue). It is far from > obvious that the current behavior is correct, read: it is not correct. > However, I'm not arguing about why or how this bug should be fixed but > that the only work 'round is in SPL. ArrayObject (and related) must be > in Zend, it is a core feature. > --Pierre Best regards, Marcus