Bug #68536 [Asn->Csd]: pack for 64bits integer is broken on bigendian
| From: | remi@php.net | Date: | Tue, 02 Dec 2014 07:41:44 +0000 |
| Subject: | Bug #68536 [Asn->Csd]: pack for 64bits integer is broken on bigendian | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188883@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68536&edit=1
ID: 68536
Updated by: remi@php.net
Reported by: remi@php.net
Summary: pack for 64bits integer is broken on bigendian
-Status: Assigned
+Status: Closed
Type: Bug
Package: Strings related
Operating System: GNU/LInux bigendian
PHP Version: 5.6.4RC1
Assigned To: remi
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6f3714a8fcdd0dd1831f1c165fe723f5cc238769
Log: Fix Bug #68536 Pack for 64bits integer is broken on bigendian.
Previous Comments:
------------------------------------------------------------------------
[2014-12-02 07:37:08] remi@php.net
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 this bug report at https://bugs.php.net/bug.php?id=68536&edit=1