Bug #74436 [NEW]: Mixing Serializable and __wakeup() causes conflict
| From: | tom at altrooz dot com | Date: | Thu, 13 Apr 2017 20:42:00 +0000 |
| Subject: | Bug #74436 [NEW]: Mixing Serializable and __wakeup() causes conflict | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-208537@lists.php.net to get a copy of this message | ||
From: tom at altrooz dot com
Operating system: Centos 6
PHP version: 5.6.30
Package: Class/Object related
Bug Type: Bug
Bug description:Mixing Serializable and __wakeup() causes conflict
Description:
------------
This issue was introduced in 5.6.30, and does not exist in 5.6.29.
Unfortunately the data structures that showed this effect are too
complicated to include, and my effort to create a smaller reproducable
case was not successful. But here's the story:
*) A class implemented Serializable
*) It has a member of type SplFixedArray, which has a __wakeup()
function
*) The container held other class instances that did not override the
default serialization behavior
*) Some of those classes included instances of ImmutableDateTime, which
also has a __wakeup() function
When unserializing the top-level class, the __wakeup() function on the
SplFixedArray and ImmutableDateTime instances did not get called.
--
Edit bug report at https://bugs.php.net/bug.php?id=74436&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74436&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74436&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74436&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74436&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74436&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74436&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74436&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74436&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74436&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74436&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74436&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74436&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74436&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74436&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74436&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74436&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74436&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74436&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74436&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74436&r=mysqlcfg