Re: print_r unaware of object's read_property handler

From: Date: Thu, 15 Feb 2007 21:13:41 +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-4542@lists.php.net to get a copy of this message
Piotr Pokora wrote: > 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 ZE1, but this (2) is the way to go. -- Michael

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