From: joungkyun at gmail dot com Operating system: Linux PHP version: 5CVS-2007-08-03 (CVS) PHP Bug Type: Output Control Bug description: unserialize artichecture problem
Description: ------------ There is serialized data that made with 64bit integer on 64 bit system. On 32bit machine, if unserialize this data, you have result of integer overflow. Reproduce code: --------------- On, 64bit system echo serialize (4294967296 + 1); => result : "i:4294967297;" On, 32bit system echo unserilaize ("i:4294967297;"); => result : 1 Expected result: ---------------- On, 32bit system echo unserilaize ("i:4294967297;"); => result : 4294967297 Actual result: -------------- On, 32bit system echo unserilaize ("i:4294967297;"); => result : 1 -- Edit bug report at http://bugs.php.net/?id=42196&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42196&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42196&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42196&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42196&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42196&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42196&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42196&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42196&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42196&r=support Expected behavior: http://bugs.php.net/fix.php?id=42196&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42196&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42196&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42196&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42196&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42196&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42196&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42196&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42196&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42196&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42196&r=mysqlcfg