RE: [PHP4BETA] class serialize/unserialize implementation.

From: Date: Wed, 15 Sep 1999 15:17:10 +0000
Subject: RE: [PHP4BETA] class serialize/unserialize implementation.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4486@lists.php.net to get a copy of this message
> -----Original Message----- > From: Thies C. Arntzen [mailto:thies@digicol.de] > Sent: Wednesday, September 15, 1999 03:44 PM > To: Samuel Liddicott > Cc: php4beta@lists.php.net > Subject: RE: [PHP4BETA] class serialize/unserialize implementation. > > On Wed, 15 Sep 1999, Samuel Liddicott wrote: > > > So if as currently the classname is serialized with the object, > how do you > > read the classname back first before you call unserialise? > > the script *has* to have the class availavle *BEFORE* using unserialize - > elsewise unserialize will simply ignore the object. > > i could convert the object for an unknown class to a "normal" array - > that's more or less how php3 did it: So whats the benefit of the recent change to store the classname when serialized? Sam

« previous php.version4 (#4486) next »