diff options
author | Ard Biesheuvel <abies@php.net> | 2003-09-13 15:27:09 +0000 |
---|---|---|
committer | Ard Biesheuvel <abies@php.net> | 2003-09-13 15:27:09 +0000 |
commit | 6f377333670e4835fdfb61c141ea8fea288a8036 (patch) | |
tree | a1df955b88400e1af4be74239f2688d377d8c638 /tests | |
parent | 2a68d3c19ed8c11695105261e6363320d230fb16 (diff) | |
download | php-git-6f377333670e4835fdfb61c141ea8fea288a8036.tar.gz |
Fixed for 64bit archs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/bug24054.phpt | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/tests/lang/bug24054.phpt b/tests/lang/bug24054.phpt index 6800cb39b4..e5035beee5 100644 --- a/tests/lang/bug24054.phpt +++ b/tests/lang/bug24054.phpt @@ -3,15 +3,24 @@ Bug #24054 (Assignment operator *= broken) --FILE-- <?php - $i = 10000000; +define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF); +define('LONG_MIN', -LONG_MAX - 1); +printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ), + is_int(LONG_MIN-1),is_int(LONG_MAX+1)); + + $i = LONG_MAX; + + $j = $i * 1001; $i *= 1001; + - $j = 10000000; - $j = $j * 1001; +$tests = <<<TESTS - var_dump($i,$j); +$i === $j +TESTS; -?> + include(dirname(__FILE__) . '/../quicktester.inc'); + --EXPECT-- -float(1.001E+10) -float(1.001E+10) +1,1,0,0 +OK |