note 14081 added to function.unserialize.php

From: Date: Mon, 16 Jul 2001 17:10:42 +0000
Subject: note 14081 added to function.unserialize.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15438@lists.php.net to get a copy of this message
BEWARE: if you are serializing a complex object with recursive references, serialize a reference to the object. Otherwise you'll get strange and mysterious results. Always this: $str = serialize(&$object); not this: $str = serialize($object); http://www.php.net/manual/en/function.unserialize.php

« previous php.notes (#15438) next »