|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41327 pack tests do not run on 64 bit
Submitted: 2007-05-08 16:25 UTC Modified: 2008-11-10 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: david at acz dot org Assigned: iliaa (profile)
Status: No Feedback Package: Strings related
PHP Version: 5.2.2 OS: SLES 10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david at acz dot org
New email:
PHP Version: OS:


 [2007-05-08 16:25 UTC] david at acz dot org
The pack tests only run on 32 bit platforms.  Bug #40543, which only affected 64 bit platforms, would have been caught by existing tests if they ran.

This is the only 5.2.2 pack test that fails on 64 bit:

print_r(unpack("I", pack("I", -4294967296)));

32 bit: -214748364
64 bit: 0

Several pack tests that fail on 5.2.1 pass on 5.2.2.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-08 16:49 UTC]
>The pack tests only run on 32 bit platforms.
What do you mean by this?
 [2007-05-08 18:42 UTC] david at acz dot org
$ head php-5.2.2/ext/standard/tests/strings/pack.phpt 
Generic pack()/unpack() tests
if (PHP_INT_MAX > 2147483647) {
        die("skip 32bit test only");
 [2008-11-02 12:42 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-11-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 07:01:30 2024 UTC