note 84987 added to function.var-export
| From: | php dot net at lessel dot us | Date: | Fri, 08 Aug 2008 15:00:53 +0000 |
| Subject: | note 84987 added to function.var-export | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143310@lists.php.net to get a copy of this message | ||
sypek dot pawel at gmail dot com,
"When serializing objects, PHP will attempt to call the member function __sleep prior to
serialization. This is to allow the object to do any last minute clean-up, etc. prior to being
serialized. Likewise, when the object is restored using unserialize() the __wakeup member function
is called."
This is likely why your benchmarks show slower times for the serialize and unserialize functions.
-Mark
----
Server IP: 64.71.164.2
Probable Submitter: 214.3.151.104
----
Manual Page -- http://www.php.net/manual/en/function.var-export.php
Edit -- https://master.php.net/note/edit/84987
Del: integrated -- https://master.php.net/note/delete/84987/integrated
Del: useless -- https://master.php.net/note/delete/84987/useless
Del: bad code -- https://master.php.net/note/delete/84987/bad+code
Del: spam -- https://master.php.net/note/delete/84987/spam
Del: non-english -- https://master.php.net/note/delete/84987/non-english
Del: in docs -- https://master.php.net/note/delete/84987/in+docs
Del: other reasons-- https://master.php.net/note/delete/84987
Reject -- https://master.php.net/note/reject/84987
Search -- https://master.php.net/manage/user-notes.php