ID: 42919
Comment by: daniel dot gorski at develnet dot org
Reported By: php at benjaminschulz dot com
Status: Assigned
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2007-10-10 (CVS)
Assigned To: dmitry
New Comment:
Can reproduce with 5.3CVS-2007-10-12 (CVS), Linux
$php5/sapi/cli> ./php -r 'namespace foo; error_reporting(E_ALL); class
Bar{}; var_dump(unserialize(serialize(new Bar)));'
Notice: unserialize(): Error at offset 8 of 19 bytes in Command line
code on line 1
regards dtg
Previous Comments:
------------------------------------------------------------------------
[2007-10-10 15:29:49] php at benjaminschulz dot com
Description:
------------
unserialize() fails at the namespace separator when unserializing
objects of a class within a namespace
Reproduce code:
---------------
namespace foo;
class Bar {
}
var_dump(unserialize(serialize(new Bar)));
Expected result:
----------------
object of Bar
Actual result:
--------------
Notice: unserialize(): Error at offset 8 of 19 bytes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42919&edit=1