logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: print_r unaware of object's read_property handler: msg#00057

Subject: Re: print_r unaware of object's read_property handler
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



<Prev in Thread] Current Thread [Next in Thread>