Re: [RFC] SPL & PCRE as always enabled in core
| From: | Pierre | Date: | Wed, 06 Jun 2007 07:02:00 +0000 |
| Subject: | Re: [RFC] SPL & PCRE as always enabled in core | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30103@lists.php.net to get a copy of this message | ||
On 6/5/07, Stanislav Malyshev <stas@zend.com> wrote:
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. --PierreA 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.Could you elaborate - which bugs?