ID: 41327 User updated by: david at acz dot org Reported By: david at acz dot org -Status: Feedback +Status: Open Bug Type: Strings related Operating System: SLES 10 PHP Version: 5.2.2 New Comment:
$ 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 Previous Comments: ------------------------------------------------------------------------ [2007-05-08 16:49:10] [EMAIL PROTECTED] >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