#41327 [Opn->Asn]: pack tests do not run on 64 bit

From: Date: Tue, 08 May 2007 23:57:38 +0000
Subject: #41327 [Opn->Asn]: pack tests do not run on 64 bit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112426@lists.php.net to get a copy of this message
ID: 41327 Updated by: sniper@php.net Reported By: david at acz dot org -Status: Open +Status: Assigned Bug Type: Strings related Operating System: SLES 10 PHP Version: 5.2.2 -Assigned To: +Assigned To: iliaa 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

« previous php.bugs (#112426) next »