ID:               23728
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sputnik at reflexx dot net
-Status:           Open
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: FreeBSD 5.0
 PHP Version:      5CVS-2003-05-20 (dev)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-05-21 14:34:58] sputnik at reflexx dot net

It appears in var_unserializer.c that the old class_table lookup
mechanism is being used, without the use of namespaces. If I can figure
out how to fix it in the code I'll post the results. This problem is
severely affecting my app :(

------------------------------------------------------------------------

[2003-05-20 21:29:21] sputnik at reflexx dot net

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 this bug report at http://bugs.php.net/?id=23728&edit=1

Reply via email to