Re: [PHP4BETA] class serialize/unserialize implementation.

From: Date: Wed, 15 Sep 1999 17:36:03 +0000
Subject: Re: [PHP4BETA] class serialize/unserialize implementation.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4492@lists.php.net to get a copy of this message
Hi, this doesn't suite for me :-) remember you use classes for more things than just instancing a class. what about *_fetch_object()? i'm not able to figure out the name of the class here. I think, the behaviour you sugested (when a class is not defined, generate a plain object without single function like in PHP3) is very good :-) Jakub 15.09.1999 v 13:23:47 (+0200), Thies C. Arntzen napsal: > hi - > > the problem i see is that you *NEED* to have the class your unserializing > defined *BEFORE* you can unserialize i't instance - even though it seems > logical i don't know if people will get bitten by this! > > the benefit is that you get a fully working instance fron unserialize > instead of the "dumb" array you got in PHP3 > > also 'cause i had to put the class-name into the serialized data. it > probably won't "unserialize" when using php3. (people that store > serialized data in a file/db may get bitten by this!). > > the next time we come up with a new format (i hope never!) we need to make > sure that we have a version number and a magic-cookie - so that we can > mark incompatible changes! > > comments? > tc > > > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" > Digital Collections Phone +49 40 235350 Fax +49 40 23535180 > Hammerbrookstr. 93 20097 Hamburg / Germany > > > -- > PHP 4 Beta -- Jakub "RiffRaff" Skopal mailto:j@kubs.cz

« previous php.version4 (#4492) next »