Re: extended objects with read_property and get_property_ptr_ptr
| From: | Dominik del Bondio | Date: | Thu, 08 Jul 2004 10:03:09 +0000 |
| Subject: | Re: extended objects with read_property and get_property_ptr_ptr | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10975@lists.php.net to get a copy of this message | ||
Zeev Suraski <zeev <at> zend.com> writes:
> The correct solution, I think, would be adding a boolean function (or even
> just a bit) to the handlers structure, that instructs the engine whether it
> should use get_ptr_ptr for incdec or not, since it's an
> optimization. Maybe we can just check whether we're dealing with PHP
> objects and perform this optimization only then. I need to look into it.
>
> Zeev
>
I just wanted to point you to bug http://bugs.php.net/bug.php?id=28444 which
would get fixed with this patch as well, so only fixing this for post/incdec is
probably a bad idea :)
I think this should be targeted to be fixed for the 5.0 release because i ran
across this behaviour very quick after using __get & __set and it could produce
a _bit_ confusion