|
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 pajoye@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-01-26 10:14 UTC] johannes@php.net
-Status: Open
+Status: Feedback
[2012-01-26 10:14 UTC] johannes@php.net
[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] johannes@php.net
[2012-01-26 11:33 UTC] johannes@php.net
-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] johannes@php.net
-Assigned To: johannes
+Assigned To: szarkos
[2012-02-10 22:43 UTC] johannes@php.net
[2012-02-17 18:05 UTC] szarkos@php.net
[2012-02-20 09:58 UTC] thijsputman at gmail dot com
[2012-02-20 10:53 UTC] pajoye@php.net
[2012-02-23 19:31 UTC] szarkos@php.net
-Status: Assigned
+Status: Closed
[2012-02-23 19:40 UTC] pajoye@php.net
-Status: Closed
+Status: Assigned
-Assigned To: szarkos
+Assigned To: pajoye
[2012-02-23 19:40 UTC] pajoye@php.net
[2012-02-28 13:58 UTC] pajoye@php.net
-Status: Assigned
+Status: Closed
[2012-02-28 13:58 UTC] pajoye@php.net
[2012-02-28 18:36 UTC] pajoye@php.net
[2012-04-18 09:45 UTC] laruence@php.net
[2012-07-24 23:37 UTC] rasmus@php.net
[2013-11-17 09:33 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15: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