From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to