Bug #68536 [NEW]: Pack is broken

From: Date: Tue, 02 Dec 2014 07:37:09 +0000
Subject: Bug #68536 [NEW]: Pack is broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188882@lists.php.net to get a copy of this message
From: remi Operating system: GNU/LInux bigendian PHP version: 5.6.4RC1 Package: Strings related Bug Type: Bug Bug description:Pack is broken Description: ------------ Pack doesn't produce correct output for 64bits integer Test script: --------------- php -r 'print_r(pack("Q", 0xfffffffffffe));' | hexdump -C Expected result: ---------------- 00000000 00 00 ff ff ff ff ff fe |........| 00000008 Actual result: -------------- 00000000 ff ff ff fe 00 00 00 00 |........| 00000008 -- Edit bug report at https://bugs.php.net/bug.php?id=68536&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68536&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68536&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68536&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68536&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68536&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68536&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68536&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68536&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68536&r=support Expected behavior: https://bugs.php.net/fix.php?id=68536&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68536&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68536&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68536&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68536&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68536&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68536&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68536&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68536&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68536&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68536&r=mysqlcfg

« previous php.bugs (#188882) next »