note 88973 deleted from language.oop.serialization by danbrown

From: Date: Sat, 07 Nov 2009 19:12:43 +0000
Subject: note 88973 deleted from language.oop.serialization by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162594@lists.php.net to get a copy of this message
Note Submitter: void dot at at gmail dot com ---- You can also avoid the __PHP_Incomplete_Class_Name issue by serializing and unserializing the object yourself, so you can have something like... <?php $_SESSION['obj'] = serialize($obj); ··· session_start(); ··· require_once 'cls.Class.php'; $obj =& unserialize($_SESSION['obj']); ?> Of course, you need to check that $obj is, indeed, what you expect —but that's something you're already doing, right?

« previous php.notes (#162594) next »