|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-21 14:34 UTC] sputnik at reflexx dot net
[2003-06-04 22:31 UTC] sterling@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Feb 08 02:00:02 2026 UTC |
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);