#42919 [NEW]: Unserializing of namespaced class object fails

From: Date: Wed, 10 Oct 2007 15:29:49 +0000
Subject: #42919 [NEW]: Unserializing of namespaced class object fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118367@lists.php.net to get a copy of this message
From: php at benjaminschulz dot com Operating system: PHP version: 5CVS-2007-10-10 (CVS) PHP Bug Type: Scripting Engine problem Bug description: Unserializing of namespaced class object fails 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 bug report at http://bugs.php.net/?id=42919&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42919&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42919&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42919&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42919&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42919&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42919&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42919&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42919&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42919&r=support Expected behavior: http://bugs.php.net/fix.php?id=42919&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42919&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42919&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42919&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42919&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42919&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42919&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42919&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42919&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42919&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42919&r=mysqlcfg

« previous php.bugs (#118367) next »