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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC