Re: print_r unaware of object's read_property handler

From: Date: Thu, 15 Feb 2007 22:00:50 +0000
Subject: Re: print_r unaware of object's read_property handler
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4543@lists.php.net to get a copy of this message
On 02/16/2007 12:05 AM, Piotr Pokora wrote:
On Thu, 15 Feb 2007 18:28:37 +0300 antony@zend.com (Antony Dovgal) wrote: I need to use ZEND2 and GObject functionality.
So what?
How can I say...? One framework has clear rules for objects and properties and another one has not :)
Which means you're not bound to any rules and free to do anything you like. Isn't it great? Isn't it C?
So, I just only need what's the preffered way to register object's or class default properties. 1. Set object's properties in constructor. Bad for derived classes which use own constructor. 2. Update ce.default_properties hash when class is registered. Is it safe? ZEND1 segfaulted with such implementation.
No idea about PHP4, sorry. Why don't you look into http://cvs.php.net/pecl/swish/swish.c and find an example demonstrating how this stuff works? -- Wbr, Antony Dovgal

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