#42919 [Opn->Asn]: Unserializing of namespaced class object fails

From: Date: Thu, 11 Oct 2007 13:33:52 +0000
Subject: #42919 [Opn->Asn]: Unserializing of namespaced class object fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118390@lists.php.net to get a copy of this message
ID: 42919 Updated by: jani@php.net Reported By: php at benjaminschulz dot com -Status: Open +Status: Assigned Bug Type: Scripting Engine problem PHP Version: 5CVS-2007-10-10 (CVS) Assigned To: dmitry 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

« previous php.bugs (#118390) next »