From: mg at ovos dot at Operating system: Win64 PHP version: 5.4.3 Package: Variables related Bug Type: Bug Bug description:Behavior of serialize has changed
Description: ------------ There is a difference in output of the same object serialized in PHP 5.4 and lower than 5.4. Although I could not create a simple testCase, it seems to be related to referencing the same object more than once. I include an online DIFF of serialize() output from PHP 5.3.8 (left column) and PHP 5.4.3 (right column): http://diffchecker.com/T40k97j7 The object is 100% the same, I am just switching between PHP versions. As you can see the references to "Placeholder" object with name "Left column (Homepage)" are present multiple times in output from 5.3.8, where in output from PHP 5.4 it is present just once. All the additional occurences are marked as reference (e.g. "r: 204"), but the objects are not re-created after running unserialize(). Instead of valid objects, empty arrays are created - this is where the change breaks down our application. I would appreciate any hints on why the output might be different. -- Edit bug report at https://bugs.php.net/bug.php?id=62189&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62189&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62189&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62189&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62189&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62189&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62189&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62189&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62189&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62189&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62189&r=support Expected behavior: https://bugs.php.net/fix.php?id=62189&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62189&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62189&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62189&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62189&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62189&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62189&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62189&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62189&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62189&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62189&r=mysqlcfg
