note 90520 added to function.unserialize

From: Date: Sun, 26 Apr 2009 16:12:53 +0000
Subject: note 90520 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-153783@lists.php.net to get a copy of this message
Be aware that this function may not play nicely with SimpleXML <?php // RAY_serialize.php error_reporting(E_ALL); echo "<pre>"; // SOME TEST DATA $xml = '<?xml version="1.0" encoding="ISO-8859-1"?> <books> <book>Book 1</book> <book>Book 2</book> <book>Book 3</book> </books>'; // MAKE OBJECT $obj = SimpleXML_Load_String($xml); // HAVE A LOOK AT THE OBJECT var_dump($obj); // SERIALIZE THE OBJECT $txt = serialize($obj); // SHOW THE TEXT FORM OF THE SERIALIZED OBJECT var_dump($txt); // TRY TO RETURN IT TO OBJECT STATUS $new = unserialize($txt); // Warning: unserialize() [function.unserialize]: Node no longer exists in /home/www/public_html/RAY_serialize.php on line 38 ---- Server IP: 208.69.120.35 Probable Submitter: 74.9.128.130 ---- Manual Page -- http://www.php.net/manual/en/function.unserialize.php Edit -- https://master.php.net/note/edit/90520 Del: integrated -- https://master.php.net/note/delete/90520/integrated Del: useless -- https://master.php.net/note/delete/90520/useless Del: bad code -- https://master.php.net/note/delete/90520/bad+code Del: spam -- https://master.php.net/note/delete/90520/spam Del: non-english -- https://master.php.net/note/delete/90520/non-english Del: in docs -- https://master.php.net/note/delete/90520/in+docs Del: other reasons-- https://master.php.net/note/delete/90520 Reject -- https://master.php.net/note/reject/90520 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153783) next »