From: Operating system: Linux PHP version: 5.3.6 Package: *Math Functions Bug Type: Bug Bug description:bitwiseNot_basiclong_64bit test fails on ppc64
Description: ------------ When running the bitwiseNot_basiclong_64bit.phpt test on ppc64, the output differs in one place from the expected results. This seems to be a result of MAX_64Bit + 1 being internally interpreted as a float and some kind of rounding error, however I'm not certain that is the case. The failing test is the third from the bottom in the output. I originally found this in 5.3.2 on RHEL 6, but I built a local 5.3.6 and it happens there still as well. bash-4.1# php --version PHP 5.3.6 (cli) (built: Apr 20 2011 09:26:51) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies bash-4.1# Expected result: ---------------- --EXPECT-- --- testing: 9223372036854775807 --- int(-9223372036854775808) --- testing: -9223372036854775808 --- int(9223372036854775807) --- testing: 2147483647 --- int(-2147483648) --- testing: -2147483648 --- int(2147483647) --- testing: 9223372034707292160 --- int(-9223372034707292161) --- testing: -9223372034707292160 --- int(9223372034707292159) --- testing: 2147483648 --- int(-2147483649) --- testing: -2147483649 --- int(2147483648) --- testing: 4294967294 --- int(-4294967295) --- testing: 4294967295 --- int(-4294967296) --- testing: 4294967293 --- int(-4294967294) --- testing: 9223372036854775806 --- int(-9223372036854775807) --- testing: 9.2233720368548E+18 --- int(9223372036854775807) --- testing: -9223372036854775807 --- int(9223372036854775806) --- testing: -9.2233720368548E+18 --- int(9223372036854775807) ===DONE=== Actual result: -------------- --- testing: 9223372036854775807 --- int(-9223372036854775808) --- testing: -9223372036854775808 --- int(9223372036854775807) --- testing: 2147483647 --- int(-2147483648) --- testing: -2147483648 --- int(2147483647) --- testing: 9223372034707292160 --- int(-9223372034707292161) --- testing: -9223372034707292160 --- int(9223372034707292159) --- testing: 2147483648 --- int(-2147483649) --- testing: -2147483649 --- int(2147483648) --- testing: 4294967294 --- int(-4294967295) --- testing: 4294967295 --- int(-4294967296) --- testing: 4294967293 --- int(-4294967294) --- testing: 9223372036854775806 --- int(-9223372036854775807) --- testing: 9.2233720368548E+18 --- int(-9223372036854775808) --- testing: -9223372036854775807 --- int(9223372036854775806) --- testing: -9.2233720368548E+18 --- int(9223372036854775807) ===DONE=== -- Edit bug report at http://bugs.php.net/bug.php?id=54578&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54578&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54578&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54578&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54578&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54578&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54578&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54578&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54578&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54578&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54578&r=support Expected behavior: http://bugs.php.net/fix.php?id=54578&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54578&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54578&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54578&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54578&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54578&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54578&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54578&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54578&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54578&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54578&r=mysqlcfg