Re: print_r unaware of object's read_property handler
| From: | Michael Wallner | Date: | Thu, 15 Feb 2007 14:26:32 +0000 |
| Subject: | Re: print_r unaware of object's read_property handler | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4530@lists.php.net to get a copy of this message | ||
Piotr Pokora wrote:
> Real problem is:
> I expect , every single part of ZEND engine uses my read_property hook.
> Every.
Well, then face it. It just is not that way.
var_dump(), print_r() and (array) cast use get_properties().
Assigning by reference, increment, decrement, accessing array index
use get_property_ptr_ptr(), or read_property() with type set to
BP_VAR_[R]W if there's no get_property_ptr_ptr().
--
Michael