Re: Re: cvs: php4 /ext/standard var.c /ext/wddx wddx.c

From: Date: Thu, 22 Jun 2000 11:02:51 +0000
Subject: Re: Re: cvs: php4 /ext/standard var.c /ext/wddx wddx.c
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21954@lists.php.net to get a copy of this message
On Thu, 22 Jun 2000, Stanislav Malyshev wrote: > >> so what is our conclusion? IMHO we should keep the class name > >> around somehow, even if the class code is not availlabe > >> during deserialisation. Thies, we agreed on that yesterday already :) Now we need to move forward. Can you address this point somehow: We do not agree on: - PHP must stop script execution and output a misleading error message, if the script defines a class and if this class was absent on one or more object instantiations. > If this is what to be done, I propose creating array of hidden objects for > session, and creating a "fake" classes for them, with name like > "\1Foo_class\1" or something alike - not easily reachable by > coincidence. These objects (and classes) even haven't to be registered > with main class table, I think. You can just keep them around in the > session for serializing later. So, then we have three proposed ways of preserving the class name: - encode the original class name in the object's class name - rename class to stdClass and store the original name in a normal HashTable - rename class to stdClass and store the original name in a member of the instantiated object - Sascha

« previous php.dev (#21954) next »