ID: 14266
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Debian Linux
PHP Version: 4.2.0-dev
New Comment:

Your creating a reference to itself this is not allowed.

Therefore the bug is bogus, the behaviour is undefined.

- James

Previous Comments:
------------------------------------------------------------------------

[2001-11-28 08:38:38] [EMAIL PROTECTED]

Tested this with current cvs too. No better luck.
Original and unserialized objects have different 
representation in memory.


------------------------------------------------------------------------

[2001-11-28 08:38:01] [EMAIL PROTECTED]

Circualar reference here:

$x->x =& $x;
  

These dont work as expected at all.

Bogus bug report as the lang isnt designed to support this.

- James

------------------------------------------------------------------------

[2001-11-28 08:32:48] [EMAIL PROTECTED]

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 this 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