note 13638 added to language.oop.magic-functions.php
| From: | agland at squiz dot net | Date: | Tue, 26 Jun 2001 02:38:32 +0000 |
| Subject: | note 13638 added to language.oop.magic-functions.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14646@lists.php.net to get a copy of this message | ||
echoing output (even debugging statements) seems to cause problems in the __sleep() magic function.
I suspect this is because, in the case of sessions, PHP is saving the session information (and
running __sleep() in your object) after all the output has theoretically all been sent.
This resulted in the serialized object appearing as an empty string in our session files.
http://www.php.net/manual/en/language.oop.magic-functions.php