Re: aggregate() und overload()

From: Date: Fri, 05 Apr 2002 00:45:27 +0000
Subject: Re: aggregate() und overload()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-82108@lists.php.net to get a copy of this message
On 05/04/02, "Kristian Koehntopp" <kk@netuse.de> wrote: > Observation: > aggreate and friends break the introspection in PHP, and may > interfere with serialization and sessions. > This is, because > get_class($obj) returns Origclass, and no trace of Classname. > Also, $obj is_a() Origclass, but not is_a(Classname), leading to > serialization of $obj as a pure Origclass, and reinstantiation > as a pure Origclass with no methods from Classname at all. I'm not sure that this will be the case in ZE2; IIRC, not every object will have a class entry, so it seems possible that the serialization/ introspection mechanisms will need rethinking. Besides, if someone is advanced enough to be using aggregate in the first place, they should be resourceful enough to avoid the issues you describe :-) --Wez.

« previous php.dev (#82108) next »