php.net |  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
Votes:1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at acz dot org
New email:
PHP Version: OS:

 

 [2007-05-08 16:25 UTC] david at acz dot org
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-08 16:49 UTC] tony2001@php.net
>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 
--TEST--
Generic pack()/unpack() tests
--SKIPIF--
<?php
if (PHP_INT_MAX > 2147483647) {
        die("skip 32bit test only");
}
?>
--FILE--
<?php
 [2008-11-02 12:42 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [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-2022 The PHP Group
All rights reserved.
Last updated: Tue Aug 09 20:05:45 2022 UTC