Re: print_r unaware of object's read_property handler

From: Date: Fri, 16 Feb 2007 10:35:09 +0000
Subject: Re: print_r unaware of object's read_property handler
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4552@lists.php.net to get a copy of this message
Hi Piotr, On 2/16/07, Piotr Pokora <piotrek.pokora@gmail.com> 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.

« previous php.pecl.dev (#4552) next »