summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2014-08-16 01:02:58 +0100
committerAndrea Faulds <ajf@ajf.me>2014-08-19 20:21:23 +0100
commit6a58f270d809c585abb91aa215c701dd2a201184 (patch)
tree8d848fbec7bf1fcef5132a2c25b8c3a21e7e0e80 /tests
parent38bc0a05c0bcf6008347c2297ce1f0a5607409d5 (diff)
downloadphp-git-6a58f270d809c585abb91aa215c701dd2a201184.tar.gz
Updated >> 64-bit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt64
-rw-r--r--tests/lang/operators/bitwiseShiftRight_variationStr.phpt24
2 files changed, 42 insertions, 46 deletions
diff --git a/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt b/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt
index a6b28ea999..1747bc66fe 100644
--- a/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt
+++ b/tests/lang/operators/bitwiseShiftRight_basiclong_64bit.phpt
@@ -50,7 +50,7 @@ int(72057594037927935)
--- testing: 9223372036854775807 >> 9 ---
int(18014398509481983)
--- testing: 9223372036854775807 >> 65 ---
-int(4611686018427387903)
+int(0)
--- testing: 9223372036854775807 >> -44 ---
bool(false)
--- testing: 9223372036854775807 >> 2147483647 ---
@@ -68,7 +68,7 @@ int(-72057594037927936)
--- testing: -9223372036854775808 >> 9 ---
int(-18014398509481984)
--- testing: -9223372036854775808 >> 65 ---
-int(-4611686018427387904)
+int(-1)
--- testing: -9223372036854775808 >> -44 ---
bool(false)
--- testing: -9223372036854775808 >> 2147483647 ---
@@ -86,7 +86,7 @@ int(16777215)
--- testing: 2147483647 >> 9 ---
int(4194303)
--- testing: 2147483647 >> 65 ---
-int(1073741823)
+int(0)
--- testing: 2147483647 >> -44 ---
bool(false)
--- testing: 2147483647 >> 2147483647 ---
@@ -104,7 +104,7 @@ int(-16777216)
--- testing: -2147483648 >> 9 ---
int(-4194304)
--- testing: -2147483648 >> 65 ---
-int(-1073741824)
+int(-1)
--- testing: -2147483648 >> -44 ---
bool(false)
--- testing: -2147483648 >> 2147483647 ---
@@ -122,7 +122,7 @@ int(72057594021150720)
--- testing: 9223372034707292160 >> 9 ---
int(18014398505287680)
--- testing: 9223372034707292160 >> 65 ---
-int(4611686017353646080)
+int(0)
--- testing: 9223372034707292160 >> -44 ---
bool(false)
--- testing: 9223372034707292160 >> 2147483647 ---
@@ -140,7 +140,7 @@ int(-72057594021150720)
--- testing: -9223372034707292160 >> 9 ---
int(-18014398505287680)
--- testing: -9223372034707292160 >> 65 ---
-int(-4611686017353646080)
+int(-1)
--- testing: -9223372034707292160 >> -44 ---
bool(false)
--- testing: -9223372034707292160 >> 2147483647 ---
@@ -158,7 +158,7 @@ int(16777216)
--- testing: 2147483648 >> 9 ---
int(4194304)
--- testing: 2147483648 >> 65 ---
-int(1073741824)
+int(0)
--- testing: 2147483648 >> -44 ---
bool(false)
--- testing: 2147483648 >> 2147483647 ---
@@ -176,7 +176,7 @@ int(-16777217)
--- testing: -2147483649 >> 9 ---
int(-4194305)
--- testing: -2147483649 >> 65 ---
-int(-1073741825)
+int(-1)
--- testing: -2147483649 >> -44 ---
bool(false)
--- testing: -2147483649 >> 2147483647 ---
@@ -194,7 +194,7 @@ int(33554431)
--- testing: 4294967294 >> 9 ---
int(8388607)
--- testing: 4294967294 >> 65 ---
-int(2147483647)
+int(0)
--- testing: 4294967294 >> -44 ---
bool(false)
--- testing: 4294967294 >> 2147483647 ---
@@ -212,7 +212,7 @@ int(33554431)
--- testing: 4294967295 >> 9 ---
int(8388607)
--- testing: 4294967295 >> 65 ---
-int(2147483647)
+int(0)
--- testing: 4294967295 >> -44 ---
bool(false)
--- testing: 4294967295 >> 2147483647 ---
@@ -230,7 +230,7 @@ int(33554431)
--- testing: 4294967293 >> 9 ---
int(8388607)
--- testing: 4294967293 >> 65 ---
-int(2147483646)
+int(0)
--- testing: 4294967293 >> -44 ---
bool(false)
--- testing: 4294967293 >> 2147483647 ---
@@ -248,7 +248,7 @@ int(72057594037927935)
--- testing: 9223372036854775806 >> 9 ---
int(18014398509481983)
--- testing: 9223372036854775806 >> 65 ---
-int(4611686018427387903)
+int(0)
--- testing: 9223372036854775806 >> -44 ---
bool(false)
--- testing: 9223372036854775806 >> 2147483647 ---
@@ -266,7 +266,7 @@ int(-72057594037927936)
--- testing: 9.2233720368548E+18 >> 9 ---
int(-18014398509481984)
--- testing: 9.2233720368548E+18 >> 65 ---
-int(-4611686018427387904)
+int(-1)
--- testing: 9.2233720368548E+18 >> -44 ---
bool(false)
--- testing: 9.2233720368548E+18 >> 2147483647 ---
@@ -284,7 +284,7 @@ int(-72057594037927936)
--- testing: -9223372036854775807 >> 9 ---
int(-18014398509481984)
--- testing: -9223372036854775807 >> 65 ---
-int(-4611686018427387904)
+int(-1)
--- testing: -9223372036854775807 >> -44 ---
bool(false)
--- testing: -9223372036854775807 >> 2147483647 ---
@@ -302,7 +302,7 @@ int(-72057594037927936)
--- testing: -9.2233720368548E+18 >> 9 ---
int(-18014398509481984)
--- testing: -9.2233720368548E+18 >> 65 ---
-int(-4611686018427387904)
+int(-1)
--- testing: -9.2233720368548E+18 >> -44 ---
bool(false)
--- testing: -9.2233720368548E+18 >> 2147483647 ---
@@ -348,11 +348,11 @@ int(0)
--- testing: 1 >> -2147483648 ---
bool(false)
--- testing: 1 >> 9223372034707292160 ---
-int(1)
+int(0)
--- testing: 1 >> -9223372034707292160 ---
bool(false)
--- testing: 1 >> 2147483648 ---
-int(1)
+int(0)
--- testing: 1 >> -2147483649 ---
bool(false)
--- testing: 1 >> 4294967294 ---
@@ -408,11 +408,11 @@ int(0)
--- testing: 7 >> -2147483648 ---
bool(false)
--- testing: 7 >> 9223372034707292160 ---
-int(7)
+int(0)
--- testing: 7 >> -9223372034707292160 ---
bool(false)
--- testing: 7 >> 2147483648 ---
-int(7)
+int(0)
--- testing: 7 >> -2147483649 ---
bool(false)
--- testing: 7 >> 4294967294 ---
@@ -438,11 +438,11 @@ int(0)
--- testing: 9 >> -2147483648 ---
bool(false)
--- testing: 9 >> 9223372034707292160 ---
-int(9)
+int(0)
--- testing: 9 >> -9223372034707292160 ---
bool(false)
--- testing: 9 >> 2147483648 ---
-int(9)
+int(0)
--- testing: 9 >> -2147483649 ---
bool(false)
--- testing: 9 >> 4294967294 ---
@@ -468,11 +468,11 @@ int(0)
--- testing: 65 >> -2147483648 ---
bool(false)
--- testing: 65 >> 9223372034707292160 ---
-int(65)
+int(0)
--- testing: 65 >> -9223372034707292160 ---
bool(false)
--- testing: 65 >> 2147483648 ---
-int(65)
+int(0)
--- testing: 65 >> -2147483649 ---
bool(false)
--- testing: 65 >> 4294967294 ---
@@ -498,11 +498,11 @@ int(-1)
--- testing: -44 >> -2147483648 ---
bool(false)
--- testing: -44 >> 9223372034707292160 ---
-int(-44)
+int(-1)
--- testing: -44 >> -9223372034707292160 ---
bool(false)
--- testing: -44 >> 2147483648 ---
-int(-44)
+int(-1)
--- testing: -44 >> -2147483649 ---
bool(false)
--- testing: -44 >> 4294967294 ---
@@ -528,11 +528,11 @@ int(0)
--- testing: 2147483647 >> -2147483648 ---
bool(false)
--- testing: 2147483647 >> 9223372034707292160 ---
-int(2147483647)
+int(0)
--- testing: 2147483647 >> -9223372034707292160 ---
bool(false)
--- testing: 2147483647 >> 2147483648 ---
-int(2147483647)
+int(0)
--- testing: 2147483647 >> -2147483649 ---
bool(false)
--- testing: 2147483647 >> 4294967294 ---
@@ -558,21 +558,21 @@ int(0)
--- testing: 9223372036854775807 >> -2147483648 ---
bool(false)
--- testing: 9223372036854775807 >> 9223372034707292160 ---
-int(9223372036854775807)
+int(0)
--- testing: 9223372036854775807 >> -9223372034707292160 ---
bool(false)
--- testing: 9223372036854775807 >> 2147483648 ---
-int(9223372036854775807)
+int(0)
--- testing: 9223372036854775807 >> -2147483649 ---
bool(false)
--- testing: 9223372036854775807 >> 4294967294 ---
-int(1)
+int(0)
--- testing: 9223372036854775807 >> 4294967295 ---
int(0)
--- testing: 9223372036854775807 >> 4294967293 ---
-int(3)
+int(0)
--- testing: 9223372036854775807 >> 9223372036854775806 ---
-int(1)
+int(0)
--- testing: 9223372036854775807 >> 9.2233720368548E+18 ---
bool(false)
--- testing: 9223372036854775807 >> -9223372036854775807 ---
diff --git a/tests/lang/operators/bitwiseShiftRight_variationStr.phpt b/tests/lang/operators/bitwiseShiftRight_variationStr.phpt
index 0d4e6e27ae..35ca0a618d 100644
--- a/tests/lang/operators/bitwiseShiftRight_variationStr.phpt
+++ b/tests/lang/operators/bitwiseShiftRight_variationStr.phpt
@@ -1,9 +1,5 @@
--TEST--
Test >> operator : various numbers as strings
---SKIPIF--
-<?php
-if ((65<<65)==0) die("skip this test is for Intel only");
-?>
--FILE--
<?php
@@ -56,7 +52,7 @@ int(0)
--- testing: '65' >> '0' ---
int(65)
--- testing: '65' >> '65' ---
-int(32)
+int(0)
--- testing: '65' >> '-44' ---
bool(false)
--- testing: '65' >> '1.2' ---
@@ -84,7 +80,7 @@ int(65)
--- testing: '-44' >> '0' ---
int(-44)
--- testing: '-44' >> '65' ---
-int(-22)
+int(-1)
--- testing: '-44' >> '-44' ---
bool(false)
--- testing: '-44' >> '1.2' ---
@@ -140,7 +136,7 @@ int(1)
--- testing: '-7.7' >> '0' ---
int(-7)
--- testing: '-7.7' >> '65' ---
-int(-4)
+int(-1)
--- testing: '-7.7' >> '-44' ---
bool(false)
--- testing: '-7.7' >> '1.2' ---
@@ -196,7 +192,7 @@ int(0)
--- testing: '123abc' >> '0' ---
int(123)
--- testing: '123abc' >> '65' ---
-int(61)
+int(0)
--- testing: '123abc' >> '-44' ---
bool(false)
--- testing: '123abc' >> '1.2' ---
@@ -224,7 +220,7 @@ int(123)
--- testing: '123e5' >> '0' ---
int(123)
--- testing: '123e5' >> '65' ---
-int(61)
+int(0)
--- testing: '123e5' >> '-44' ---
bool(false)
--- testing: '123e5' >> '1.2' ---
@@ -252,7 +248,7 @@ int(123)
--- testing: '123e5xyz' >> '0' ---
int(123)
--- testing: '123e5xyz' >> '65' ---
-int(61)
+int(0)
--- testing: '123e5xyz' >> '-44' ---
bool(false)
--- testing: '123e5xyz' >> '1.2' ---
@@ -280,7 +276,7 @@ int(123)
--- testing: ' 123abc' >> '0' ---
int(123)
--- testing: ' 123abc' >> '65' ---
-int(61)
+int(0)
--- testing: ' 123abc' >> '-44' ---
bool(false)
--- testing: ' 123abc' >> '1.2' ---
@@ -308,7 +304,7 @@ int(123)
--- testing: '123 abc' >> '0' ---
int(123)
--- testing: '123 abc' >> '65' ---
-int(61)
+int(0)
--- testing: '123 abc' >> '-44' ---
bool(false)
--- testing: '123 abc' >> '1.2' ---
@@ -336,7 +332,7 @@ int(123)
--- testing: '123abc ' >> '0' ---
int(123)
--- testing: '123abc ' >> '65' ---
-int(61)
+int(0)
--- testing: '123abc ' >> '-44' ---
bool(false)
--- testing: '123abc ' >> '1.2' ---
@@ -364,7 +360,7 @@ int(123)
--- testing: '3.4a' >> '0' ---
int(3)
--- testing: '3.4a' >> '65' ---
-int(1)
+int(0)
--- testing: '3.4a' >> '-44' ---
bool(false)
--- testing: '3.4a' >> '1.2' ---