note 55784 deleted from language.oop5.magic by mazzanet

From: Date: Sat, 13 Aug 2005 08:46:45 +0000
Subject: note 55784 deleted from language.oop5.magic by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93538@lists.php.net to get a copy of this message
Note Submitter: mastabog at hotmail dot com ---- Horrible mistake I made with my previous post. PHP5 *does* automatically call __sleep() on all objects stored by simple assignment inside $_SESSION when the session closes (it has been fixed, was a bug some time ago). The same way __wakeup() is automatically called when the session opens. No need to manually call serialize() over the object prior to saving (unless you have specific reasons). My apologies. Maybe an authorised person can delete the first part of my previous post. Thanks.

« previous php.notes (#93538) next »