|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchespragmaoptoff (last revision 2012-02-20 10:53 UTC by [email protected])Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-26 10:14 UTC] [email protected]
-Status: Open
+Status: Feedback
[2012-01-26 10:14 UTC] [email protected]
[2012-01-26 10:56 UTC] thijsputman at gmail dot com
-Status: Feedback
+Status: Open
[2012-01-26 10:56 UTC] thijsputman at gmail dot com
[2012-01-26 11:33 UTC] [email protected]
[2012-01-26 11:33 UTC] [email protected]
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: johannes
[2012-02-06 13:44 UTC] yoozer at gmail dot com
[2012-02-08 13:46 UTC] thijsputman at gmail dot com
-Status: Closed
+Status: Assigned
[2012-02-08 13:46 UTC] thijsputman at gmail dot com
[2012-02-08 14:02 UTC] thijsputman at gmail dot com
[2012-02-10 22:43 UTC] [email protected]
-Assigned To: johannes
+Assigned To: szarkos
[2012-02-10 22:43 UTC] [email protected]
[2012-02-17 18:05 UTC] [email protected]
[2012-02-20 09:58 UTC] thijsputman at gmail dot com
[2012-02-20 10:53 UTC] [email protected]
[2012-02-23 19:31 UTC] [email protected]
-Status: Assigned
+Status: Closed
[2012-02-23 19:40 UTC] [email protected]
-Status: Closed
+Status: Assigned
-Assigned To: szarkos
+Assigned To: pajoye
[2012-02-23 19:40 UTC] [email protected]
[2012-02-28 13:58 UTC] [email protected]
-Status: Assigned
+Status: Closed
[2012-02-28 13:58 UTC] [email protected]
[2012-02-28 18:36 UTC] [email protected]
[2012-04-18 09:45 UTC] [email protected]
[2012-07-24 23:37 UTC] [email protected]
[2013-11-17 09:33 UTC] [email protected]
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 31 03:00:01 2025 UTC |
Description: ------------ When serializing/unserializing an object that contains both a __sleep() and __wakeup() method, serialize() invokes the __sleep() method, but unserialize() does *not* invoke the __wakeup() method. Using PHP 5.4.0RC6 (x86 NTS) on Windows 7, previously used 5.4.0RC5 which did not exhibit this problem. See the below test script for an example (which works as expected in RC5, but not in RC6). Test script: --------------- class Woei{ public function __sleep(){ echo 'sleep' . PHP_EOL; return array(); } public function __wakeup(){ echo 'wakeup' . PHP_EOL; } } $Woei = new Woei(); $s1 = serialize($Woei); $Woei2 = unserialize($s1); $s2 = serialize($Woei2); $Woei3 = unserialize($s2); Expected result: ---------------- sleep wakeup sleep wakeup Actual result: -------------- sleep sleep