Bug #14266: serialize() doesn't work correcty

From: Date: Wed, 28 Nov 2001 13:32:49 +0000
Subject: Bug #14266: serialize() doesn't work correcty
Groups: php.dev 
Request: Send a blank email to php-dev+get-71911@lists.php.net to get a copy of this message
From: lenar@vision.ee Operating system: Debian Linux PHP version: 4.1.0 PHP Bug Type: Scripting Engine problem Bug description: serialize() doesn't work correcty Consider following simple script. It's pretty obvious that serialize() does not work correctly (at least not as expected). <?php $x = new stdClass(); $x->x =& $x; $s = serialize($x) . "\n"; echo "test on original: "; // OK $x->a = "str"; echo $x->x->a . "\n"; $o = unserialize($s); echo "test on unserialized object: "; // not OK $o->a = "str"; echo $o->x->a . "\n"; ?> -- Edit bug report at: http://bugs.php.net/?id=14266&edit=1

« previous php.dev (#71911) next »