From: remi Operating system: GNU/Linux PHP version: 5.4.11 Package: *General Issues Bug Type: Bug Bug description:dval to lval different behavior on ppc64
Description: ------------ zend_dval_to_lval have different result on x86_64 and ppc64 (and probably other arch) This cause some test failure: Test & operator : 64bit long tests [tests/lang/operators/bitwiseAnd_basiclong_64bit.phpt] Test ~N operator : 64bit long tests [tests/lang/operators/bitwiseNot_basiclong_64bit.phpt] Test | operator : 64bit long tests [tests/lang/operators/bitwiseOr_basiclong_64bit.phpt] Test ^ operator : 64bit long tests [tests/lang/operators/bitwiseXor_basiclong_64bit.phpt] Test % operator : 64bit long tests [tests/lang/operators/modulus_basiclong_64bit.phpt] Test decbin function : 64bit long tests [ext/standard/tests/math/decbin_basiclong_64bit.phpt] Test dechex function : 64bit long tests [ext/standard/tests/math/dechex_basiclong_64bit.phpt] Test decoct function : 64bit long tests [ext/standard/tests/math/decoct_basiclong_64bit.phpt] Test chunk_split() function : usage variations - unexpected values for 'chunklen' argument(Bug#42796) [ext/standard/tests/strings/chunk_split_variation2.phpt] Test script: --------------- php -r 'printf("%ld\n", 0x7fffffffffffffff);' php -r 'printf("%ld\n", 0x7fffffffffffffff+1);' Expected result: ---------------- 9223372036854775807 -9223372036854775808 Actual result: -------------- 9223372036854775807 9223372036854775807 -- Edit bug report at https://bugs.php.net/bug.php?id=64142&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64142&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64142&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64142&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64142&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64142&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64142&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64142&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64142&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64142&r=support Expected behavior: https://bugs.php.net/fix.php?id=64142&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64142&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64142&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64142&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64142&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64142&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64142&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64142&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64142&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64142&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64142&r=mysqlcfg