note 14081 deleted from function.unserialize by sniper
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 03:21:11 +0000 |
| Subject: | note 14081 deleted from function.unserialize by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58501@lists.php.net to get a copy of this message | ||
Note Submitter: abk@avatartechnology.com
----
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);