#41327 [Asn->Fbk]: pack tests do not run on 64 bit
| From: | jani@php.net | Date: | Sun, 02 Nov 2008 12:42:11 +0000 |
| Subject: | #41327 [Asn->Fbk]: pack tests do not run on 64 bit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130475@lists.php.net to get a copy of this message | ||
ID: 41327
Updated by: jani@php.net
Reported By: david at acz dot org
-Status: Assigned
+Status: Feedback
Bug Type: Strings related
Operating System: SLES 10
PHP Version: 5.2.2
Assigned To: iliaa
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2007-05-08 18:42:23] 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
------------------------------------------------------------------------
[2007-05-08 16:49:10] tony2001@php.net
>The pack tests only run on 32 bit platforms.
What do you mean by this?
------------------------------------------------------------------------
[2007-05-08 16:25:40] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41327&edit=1