note 14080 deleted from function.serialize by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 21:45:34 +0000 |
| Subject: | note 14080 deleted from function.serialize by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134250@lists.php.net to get a copy of this message | ||
Note Submitter: abk at avatartechnology dot 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);