per curiosità, quando "deserializzi" l'oggetto, la classe a cui fa riferimento l'oggetto è stata già caricata?
http://www.php.net/manual/en/languag...ialization.php
se fai unIn order to be able to unserialize() an object, the class of that object needs to be defined. That is, if you have an object of class A and serialize this, you'll get a string that refers to class A and contains all values of variabled contained it. If you want to be able to unserialize this in another file, an object of class A, the definition of class A must be prest ent in in that file first. This can be done for example by storing the class definition of class A in an include file and including this file or making use of the spl_autoload_register() function.
che ti viene stampato a videO?Codice PHP:
var_dump(unserialize($stuff));