Re: simplexml and serialize error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux