Re: [PHP4BETA] class serialize/unserialize implementation.

From: Date: Thu, 16 Sep 1999 08:09:34 +0000
Subject: Re: [PHP4BETA] class serialize/unserialize implementation.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4509@lists.php.net to get a copy of this message
fixed in CVS - thanx! tc On Wed, 15 Sep 1999, Boris Erdmann wrote: > "Thies C. Arntzen" wrote: > > > > please checkout the lastest cvs and do some tests (maybe compare them to > > php3?) - it'll be more than obvious then! > > > > regards, > > tc > > > well this script displays "5" on the first load and "2" on all > subsequent reloads where it should be counting up to 6,7,8 and > so on: > > -------- > <?php > > session_start(); session_register("myobj"); > > class myclass { > var $slot = 1; > } > > if ( !isset($myobj)) { > $myobj = new myclass(); > $myobj->slot=4; > } > > ?> > <html> > <head> > </head> > <body> > <%=++$myobj->slot%> > </body> > </html> > -------- > > Hint: If i put a "#" in front of line 6, the script works within the > desired semantics. > > > Boris > > -- > PHP 4 Beta > > 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

« previous php.version4 (#4509) next »