note 84960 added to language.oop5.magic
| From: | rc at nospam at vorkliftdotseaohem | Date: | Thu, 07 Aug 2008 14:03:55 +0000 |
| Subject: | note 84960 added to language.oop5.magic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143275@lists.php.net to get a copy of this message | ||
A note: __wakeup occurs before saving the unserialization of an session object.
Therefore, $_SESSION['var']::__wakeup() setting $_SESSION['var'] = new Class()
will fail and $_SESSION['var'] will remain unchanged.
This means that if you have a pseudo-temporary object that contains a class to auto revert to, you
have to revert that session object in the initialization of the website rather than via a __wakeup()
script.
----
Server IP: 64.71.164.2
Probable Submitter: 68.49.145.170
----
Manual Page -- http://www.php.net/manual/en/language.oop5.magic.php
Edit -- https://master.php.net/note/edit/84960
Del: integrated -- https://master.php.net/note/delete/84960/integrated
Del: useless -- https://master.php.net/note/delete/84960/useless
Del: bad code -- https://master.php.net/note/delete/84960/bad+code
Del: spam -- https://master.php.net/note/delete/84960/spam
Del: non-english -- https://master.php.net/note/delete/84960/non-english
Del: in docs -- https://master.php.net/note/delete/84960/in+docs
Del: other reasons-- https://master.php.net/note/delete/84960
Reject -- https://master.php.net/note/reject/84960
Search -- https://master.php.net/manage/user-notes.php