note 55784 added to language.oop5.magic

From: Date: Sat, 13 Aug 2005 00:52:23 +0000
Subject: note 55784 added to language.oop5.magic
Groups: php.notes 
Request: Send a blank email to php-notes+get-93530@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/language.oop5.magic.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55784 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55784&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55784&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55784&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55784&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55784&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55784&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55784&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93530) next »