note 74356 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:30:33 +0000
Subject: note 74356 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191707@lists.php.net to get a copy of this message
Note Submitter: Elise van Looij ---- Thank you, thank you, thank you to Chris Hayes for $_SESSION['my_object'] = unserialize(serialize($_SESSION['my_object'])) I wrestled through several very learned articles that dealt with creating factory classes for serializing objects and including the entire class definition in each and every file, yet one single line was all it took to stop my drupal module from whining about __PHP_Incomplete_Class when I tried to use load an instance from a session.

« previous php.notes (#191707) next »