Re: simplexml and serialize error

From: Date: Sun, 30 Apr 2006 06:10:16 +0000
Subject: Re: simplexml and serialize error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235135@lists.php.net to get a copy of this message
On Sat, April 29, 2006 8:30 pm, Anthony Ettinger wrote: > Warning: var_dump() [function.var-dump]: Node no longer exists in > Foo.php on line 78 > object(SimpleXMLElement)#86 (0) { } ["title"]=> > > I turn an xml string into a simplexml object, and then ran serialize() > on it before caching the output locally. When I read it back in and > run unserialize() to do a dump, I get this error. WILD GUESS!!! Whatever class objects you had defined before you serialized the data, are not defined when you unserialize the data. You need to load all your class files in both serialize and unserialize scripts -- The class definition is not stored in serialized data, just the class 'data' -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#235135) next »