logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

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

Subject: Re: print_r unaware of object's read_property handler
Hi Piotr,

On 2/16/07, Piotr Pokora <piotrek.pokora@xxxxxxxxx> wrote:
If such implemetation allows to use it for base and derived classes I am fine 
and we can close this thread.
I would also appreciate a hint if such implementation works if user extends 
base class with own defined
properties.

I really wonder if you actually read all answers. Many  already
pointed you to the sources, as it is really the best way to understand
how it works.

For a proof of a working class which can be extended by the user,
check out pecl/zip. The extended class cab have custom propertiesl. A
specific test case even exists:

http://cvs.php.net/viewvc.cgi/pecl/zip/tests/oo_ext_zip.phpt?revision=1.3.2.2&view=markup

The zip code base is really simple and should not be a problem to
understand. There is other implementation in other extensions,
*everything* is in there if only you take the time to read the
sources, once.



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