#23728 [NEW]: serialize doesn't like namespaces

From: Date: Wed, 21 May 2003 02:29:21 +0000
Subject: #23728 [NEW]: serialize doesn't like namespaces
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40111@lists.php.net to get a copy of this message
From: sputnik at reflexx dot net Operating system: FreeBSD 5.0 PHP version: 5CVS-2003-05-20 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: serialize doesn't like namespaces an object that is in a namespaced class that is serialized and then deserialized becomes a "__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name]". It seems serialize/deserialize don't understand namespaces. Namespace app { class berries { public $name; public $quantity; function __construct($name=NULL) { $this->name = $name; } } $object = new app::berries("aberry"); $objecttext = serialize($object); $objectnew = unserialize($objecttext); print_r($objectnew); -- Edit bug report at http://bugs.php.net/?id=23728&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23728&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23728&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23728&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23728&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23728&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23728&r=support Expected behavior: http://bugs.php.net/fix.php?id=23728&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23728&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23728&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23728&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23728&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23728&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23728&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23728&r=gnused

« previous php.bugs (#40111) next »