try {
$c = $a % $b;
var_dump($c);
-} catch (Error $e) {
- echo "Error: " . $e->getMessage() . "\n";
+} catch (Exception $e) {
+ echo "Exception: " . $e->getMessage() . "\n";
}
echo "Done\n";
?>
--EXPECTF--
-Error: Modulo by zero
+Exception: Division by zero
Done
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1\r
);\r
\r
-$otherVals = array(1, -1, 7, 9, 65, -44, MAX_32Bit, MAX_64Bit);\r
+$otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MAX_64Bit);\r
+\r
+error_reporting(E_ERROR);\r
\r
foreach ($longVals as $longVal) {\r
foreach($otherVals as $otherVal) {\r
}\r
}\r
\r
-foreach (array_merge([0], $otherVals) as $otherVal) {\r
+foreach ($otherVals as $otherVal) {\r
foreach($longVals as $longVal) {\r
echo "--- testing: $otherVal / $longVal ---\n"; \r
var_dump($otherVal/$longVal);\r
?>\r
===DONE===\r
--EXPECT--\r
---- testing: 9223372036854775807 / 1 ---\r
-int(9223372036854775807)\r
---- testing: 9223372036854775807 / -1 ---\r
-int(-9223372036854775807)\r
---- testing: 9223372036854775807 / 7 ---\r
-int(1317624576693539401)\r
---- testing: 9223372036854775807 / 9 ---\r
-float(1.0248191152061E+18)\r
---- testing: 9223372036854775807 / 65 ---\r
-float(1.4189803133623E+17)\r
---- testing: 9223372036854775807 / -44 ---\r
-float(-2.096220917467E+17)\r
---- testing: 9223372036854775807 / 2147483647 ---\r
-float(4294967298)\r
---- testing: 9223372036854775807 / 9223372036854775807 ---\r
-int(1)\r
---- testing: -9223372036854775808 / 1 ---\r
-int(-9223372036854775808)\r
---- testing: -9223372036854775808 / -1 ---\r
-float(9.2233720368548E+18)\r
---- testing: -9223372036854775808 / 7 ---\r
-float(-1.3176245766935E+18)\r
---- testing: -9223372036854775808 / 9 ---\r
-float(-1.0248191152061E+18)\r
---- testing: -9223372036854775808 / 65 ---\r
-float(-1.4189803133623E+17)\r
---- testing: -9223372036854775808 / -44 ---\r
-float(2.096220917467E+17)\r
---- testing: -9223372036854775808 / 2147483647 ---\r
-float(-4294967298)\r
---- testing: -9223372036854775808 / 9223372036854775807 ---\r
-float(-1)\r
---- testing: 2147483647 / 1 ---\r
-int(2147483647)\r
---- testing: 2147483647 / -1 ---\r
-int(-2147483647)\r
---- testing: 2147483647 / 7 ---\r
-float(306783378.14286)\r
---- testing: 2147483647 / 9 ---\r
-float(238609294.11111)\r
---- testing: 2147483647 / 65 ---\r
-float(33038209.953846)\r
---- testing: 2147483647 / -44 ---\r
-float(-48806446.522727)\r
---- testing: 2147483647 / 2147483647 ---\r
-int(1)\r
---- testing: 2147483647 / 9223372036854775807 ---\r
-float(2.3283064354545E-10)\r
---- testing: -2147483648 / 1 ---\r
-int(-2147483648)\r
---- testing: -2147483648 / -1 ---\r
-int(2147483648)\r
---- testing: -2147483648 / 7 ---\r
-float(-306783378.28571)\r
---- testing: -2147483648 / 9 ---\r
-float(-238609294.22222)\r
---- testing: -2147483648 / 65 ---\r
-float(-33038209.969231)\r
---- testing: -2147483648 / -44 ---\r
-float(48806446.545455)\r
---- testing: -2147483648 / 2147483647 ---\r
-float(-1.0000000004657)\r
---- testing: -2147483648 / 9223372036854775807 ---\r
-float(-2.3283064365387E-10)\r
---- testing: 9223372034707292160 / 1 ---\r
-int(9223372034707292160)\r
---- testing: 9223372034707292160 / -1 ---\r
-int(-9223372034707292160)\r
---- testing: 9223372034707292160 / 7 ---\r
-float(1.3176245763868E+18)\r
---- testing: 9223372034707292160 / 9 ---\r
-float(1.0248191149675E+18)\r
---- testing: 9223372034707292160 / 65 ---\r
-float(1.4189803130319E+17)\r
---- testing: 9223372034707292160 / -44 ---\r
-float(-2.0962209169789E+17)\r
---- testing: 9223372034707292160 / 2147483647 ---\r
-float(4294967297)\r
---- testing: 9223372034707292160 / 9223372036854775807 ---\r
-float(0.99999999976717)\r
---- testing: -9223372034707292160 / 1 ---\r
-int(-9223372034707292160)\r
---- testing: -9223372034707292160 / -1 ---\r
-int(9223372034707292160)\r
---- testing: -9223372034707292160 / 7 ---\r
-float(-1.3176245763868E+18)\r
---- testing: -9223372034707292160 / 9 ---\r
-float(-1.0248191149675E+18)\r
---- testing: -9223372034707292160 / 65 ---\r
-float(-1.4189803130319E+17)\r
---- testing: -9223372034707292160 / -44 ---\r
-float(2.0962209169789E+17)\r
---- testing: -9223372034707292160 / 2147483647 ---\r
-float(-4294967297)\r
---- testing: -9223372034707292160 / 9223372036854775807 ---\r
-float(-0.99999999976717)\r
---- testing: 2147483648 / 1 ---\r
-int(2147483648)\r
---- testing: 2147483648 / -1 ---\r
-int(-2147483648)\r
---- testing: 2147483648 / 7 ---\r
-float(306783378.28571)\r
---- testing: 2147483648 / 9 ---\r
-float(238609294.22222)\r
---- testing: 2147483648 / 65 ---\r
-float(33038209.969231)\r
---- testing: 2147483648 / -44 ---\r
-float(-48806446.545455)\r
---- testing: 2147483648 / 2147483647 ---\r
-float(1.0000000004657)\r
---- testing: 2147483648 / 9223372036854775807 ---\r
-float(2.3283064365387E-10)\r
---- testing: -2147483649 / 1 ---\r
-int(-2147483649)\r
---- testing: -2147483649 / -1 ---\r
-int(2147483649)\r
---- testing: -2147483649 / 7 ---\r
-float(-306783378.42857)\r
---- testing: -2147483649 / 9 ---\r
-float(-238609294.33333)\r
---- testing: -2147483649 / 65 ---\r
-float(-33038209.984615)\r
---- testing: -2147483649 / -44 ---\r
-float(48806446.568182)\r
---- testing: -2147483649 / 2147483647 ---\r
-float(-1.0000000009313)\r
---- testing: -2147483649 / 9223372036854775807 ---\r
-float(-2.3283064376229E-10)\r
---- testing: 4294967294 / 1 ---\r
-int(4294967294)\r
---- testing: 4294967294 / -1 ---\r
-int(-4294967294)\r
---- testing: 4294967294 / 7 ---\r
-float(613566756.28571)\r
---- testing: 4294967294 / 9 ---\r
-float(477218588.22222)\r
---- testing: 4294967294 / 65 ---\r
-float(66076419.907692)\r
---- testing: 4294967294 / -44 ---\r
-float(-97612893.045455)\r
---- testing: 4294967294 / 2147483647 ---\r
-int(2)\r
---- testing: 4294967294 / 9223372036854775807 ---\r
-float(4.656612870909E-10)\r
---- testing: 4294967295 / 1 ---\r
-int(4294967295)\r
---- testing: 4294967295 / -1 ---\r
-int(-4294967295)\r
---- testing: 4294967295 / 7 ---\r
-float(613566756.42857)\r
---- testing: 4294967295 / 9 ---\r
-float(477218588.33333)\r
---- testing: 4294967295 / 65 ---\r
-float(66076419.923077)\r
---- testing: 4294967295 / -44 ---\r
-float(-97612893.068182)\r
---- testing: 4294967295 / 2147483647 ---\r
-float(2.0000000004657)\r
---- testing: 4294967295 / 9223372036854775807 ---\r
-float(4.6566128719932E-10)\r
---- testing: 4294967293 / 1 ---\r
-int(4294967293)\r
---- testing: 4294967293 / -1 ---\r
-int(-4294967293)\r
---- testing: 4294967293 / 7 ---\r
-float(613566756.14286)\r
---- testing: 4294967293 / 9 ---\r
-float(477218588.11111)\r
---- testing: 4294967293 / 65 ---\r
-float(66076419.892308)\r
---- testing: 4294967293 / -44 ---\r
-float(-97612893.022727)\r
---- testing: 4294967293 / 2147483647 ---\r
-float(1.9999999995343)\r
---- testing: 4294967293 / 9223372036854775807 ---\r
-float(4.6566128698248E-10)\r
---- testing: 9223372036854775806 / 1 ---\r
-int(9223372036854775806)\r
---- testing: 9223372036854775806 / -1 ---\r
-int(-9223372036854775806)\r
---- testing: 9223372036854775806 / 7 ---\r
-float(1.3176245766935E+18)\r
---- testing: 9223372036854775806 / 9 ---\r
-float(1.0248191152061E+18)\r
---- testing: 9223372036854775806 / 65 ---\r
-float(1.4189803133623E+17)\r
---- testing: 9223372036854775806 / -44 ---\r
-float(-2.096220917467E+17)\r
---- testing: 9223372036854775806 / 2147483647 ---\r
-int(4294967298)\r
---- testing: 9223372036854775806 / 9223372036854775807 ---\r
-float(1)\r
---- testing: 9.2233720368548E+18 / 1 ---\r
-float(9.2233720368548E+18)\r
---- testing: 9.2233720368548E+18 / -1 ---\r
-float(-9.2233720368548E+18)\r
---- testing: 9.2233720368548E+18 / 7 ---\r
-float(1.3176245766935E+18)\r
---- testing: 9.2233720368548E+18 / 9 ---\r
-float(1.0248191152061E+18)\r
---- testing: 9.2233720368548E+18 / 65 ---\r
-float(1.4189803133623E+17)\r
---- testing: 9.2233720368548E+18 / -44 ---\r
-float(-2.096220917467E+17)\r
---- testing: 9.2233720368548E+18 / 2147483647 ---\r
-float(4294967298)\r
---- testing: 9.2233720368548E+18 / 9223372036854775807 ---\r
-float(1)\r
---- testing: -9223372036854775807 / 1 ---\r
-int(-9223372036854775807)\r
---- testing: -9223372036854775807 / -1 ---\r
-int(9223372036854775807)\r
---- testing: -9223372036854775807 / 7 ---\r
-int(-1317624576693539401)\r
---- testing: -9223372036854775807 / 9 ---\r
-float(-1.0248191152061E+18)\r
---- testing: -9223372036854775807 / 65 ---\r
-float(-1.4189803133623E+17)\r
---- testing: -9223372036854775807 / -44 ---\r
-float(2.096220917467E+17)\r
---- testing: -9223372036854775807 / 2147483647 ---\r
-float(-4294967298)\r
---- testing: -9223372036854775807 / 9223372036854775807 ---\r
-int(-1)\r
---- testing: -9.2233720368548E+18 / 1 ---\r
-float(-9.2233720368548E+18)\r
---- testing: -9.2233720368548E+18 / -1 ---\r
-float(9.2233720368548E+18)\r
---- testing: -9.2233720368548E+18 / 7 ---\r
-float(-1.3176245766935E+18)\r
---- testing: -9.2233720368548E+18 / 9 ---\r
-float(-1.0248191152061E+18)\r
---- testing: -9.2233720368548E+18 / 65 ---\r
-float(-1.4189803133623E+17)\r
---- testing: -9.2233720368548E+18 / -44 ---\r
-float(2.096220917467E+17)\r
---- testing: -9.2233720368548E+18 / 2147483647 ---\r
-float(-4294967298)\r
---- testing: -9.2233720368548E+18 / 9223372036854775807 ---\r
-float(-1)\r
---- testing: 0 / 9223372036854775807 ---\r
-int(0)\r
---- testing: 0 / -9223372036854775808 ---\r
-int(0)\r
---- testing: 0 / 2147483647 ---\r
-int(0)\r
---- testing: 0 / -2147483648 ---\r
-int(0)\r
---- testing: 0 / 9223372034707292160 ---\r
-int(0)\r
---- testing: 0 / -9223372034707292160 ---\r
-int(0)\r
---- testing: 0 / 2147483648 ---\r
-int(0)\r
---- testing: 0 / -2147483649 ---\r
-int(0)\r
---- testing: 0 / 4294967294 ---\r
-int(0)\r
---- testing: 0 / 4294967295 ---\r
-int(0)\r
---- testing: 0 / 4294967293 ---\r
-int(0)\r
---- testing: 0 / 9223372036854775806 ---\r
-int(0)\r
---- testing: 0 / 9.2233720368548E+18 ---\r
-float(0)\r
---- testing: 0 / -9223372036854775807 ---\r
-int(0)\r
---- testing: 0 / -9.2233720368548E+18 ---\r
-float(-0)\r
---- testing: 1 / 9223372036854775807 ---\r
-float(1.0842021724855E-19)\r
---- testing: 1 / -9223372036854775808 ---\r
-float(-1.0842021724855E-19)\r
---- testing: 1 / 2147483647 ---\r
-float(4.6566128752458E-10)\r
---- testing: 1 / -2147483648 ---\r
-float(-4.6566128730774E-10)\r
---- testing: 1 / 9223372034707292160 ---\r
-float(1.0842021727379E-19)\r
---- testing: 1 / -9223372034707292160 ---\r
-float(-1.0842021727379E-19)\r
---- testing: 1 / 2147483648 ---\r
-float(4.6566128730774E-10)\r
---- testing: 1 / -2147483649 ---\r
-float(-4.656612870909E-10)\r
---- testing: 1 / 4294967294 ---\r
-float(2.3283064376229E-10)\r
---- testing: 1 / 4294967295 ---\r
-float(2.3283064370808E-10)\r
---- testing: 1 / 4294967293 ---\r
-float(2.328306438165E-10)\r
---- testing: 1 / 9223372036854775806 ---\r
-float(1.0842021724855E-19)\r
---- testing: 1 / 9.2233720368548E+18 ---\r
-float(1.0842021724855E-19)\r
---- testing: 1 / -9223372036854775807 ---\r
-float(-1.0842021724855E-19)\r
---- testing: 1 / -9.2233720368548E+18 ---\r
-float(-1.0842021724855E-19)\r
---- testing: -1 / 9223372036854775807 ---\r
-float(-1.0842021724855E-19)\r
---- testing: -1 / -9223372036854775808 ---\r
-float(1.0842021724855E-19)\r
---- testing: -1 / 2147483647 ---\r
-float(-4.6566128752458E-10)\r
---- testing: -1 / -2147483648 ---\r
-float(4.6566128730774E-10)\r
---- testing: -1 / 9223372034707292160 ---\r
-float(-1.0842021727379E-19)\r
---- testing: -1 / -9223372034707292160 ---\r
-float(1.0842021727379E-19)\r
---- testing: -1 / 2147483648 ---\r
-float(-4.6566128730774E-10)\r
---- testing: -1 / -2147483649 ---\r
-float(4.656612870909E-10)\r
---- testing: -1 / 4294967294 ---\r
-float(-2.3283064376229E-10)\r
---- testing: -1 / 4294967295 ---\r
-float(-2.3283064370808E-10)\r
---- testing: -1 / 4294967293 ---\r
-float(-2.328306438165E-10)\r
---- testing: -1 / 9223372036854775806 ---\r
-float(-1.0842021724855E-19)\r
---- testing: -1 / 9.2233720368548E+18 ---\r
-float(-1.0842021724855E-19)\r
---- testing: -1 / -9223372036854775807 ---\r
-float(1.0842021724855E-19)\r
---- testing: -1 / -9.2233720368548E+18 ---\r
-float(1.0842021724855E-19)\r
---- testing: 7 / 9223372036854775807 ---\r
-float(7.5894152073985E-19)\r
---- testing: 7 / -9223372036854775808 ---\r
-float(-7.5894152073985E-19)\r
---- testing: 7 / 2147483647 ---\r
-float(3.2596290126721E-9)\r
---- testing: 7 / -2147483648 ---\r
-float(-3.2596290111542E-9)\r
---- testing: 7 / 9223372034707292160 ---\r
-float(7.5894152091656E-19)\r
---- testing: 7 / -9223372034707292160 ---\r
-float(-7.5894152091656E-19)\r
---- testing: 7 / 2147483648 ---\r
-float(3.2596290111542E-9)\r
---- testing: 7 / -2147483649 ---\r
-float(-3.2596290096363E-9)\r
---- testing: 7 / 4294967294 ---\r
-float(1.629814506336E-9)\r
---- testing: 7 / 4294967295 ---\r
-float(1.6298145059566E-9)\r
---- testing: 7 / 4294967293 ---\r
-float(1.6298145067155E-9)\r
---- testing: 7 / 9223372036854775806 ---\r
-float(7.5894152073985E-19)\r
---- testing: 7 / 9.2233720368548E+18 ---\r
-float(7.5894152073985E-19)\r
---- testing: 7 / -9223372036854775807 ---\r
-float(-7.5894152073985E-19)\r
---- testing: 7 / -9.2233720368548E+18 ---\r
-float(-7.5894152073985E-19)\r
---- testing: 9 / 9223372036854775807 ---\r
-float(9.7578195523695E-19)\r
---- testing: 9 / -9223372036854775808 ---\r
-float(-9.7578195523695E-19)\r
---- testing: 9 / 2147483647 ---\r
-float(4.1909515877212E-9)\r
---- testing: 9 / -2147483648 ---\r
-float(-4.1909515857697E-9)\r
---- testing: 9 / 9223372034707292160 ---\r
-float(9.7578195546415E-19)\r
---- testing: 9 / -9223372034707292160 ---\r
-float(-9.7578195546415E-19)\r
---- testing: 9 / 2147483648 ---\r
-float(4.1909515857697E-9)\r
---- testing: 9 / -2147483649 ---\r
-float(-4.1909515838181E-9)\r
---- testing: 9 / 4294967294 ---\r
-float(2.0954757938606E-9)\r
---- testing: 9 / 4294967295 ---\r
-float(2.0954757933727E-9)\r
---- testing: 9 / 4294967293 ---\r
-float(2.0954757943485E-9)\r
---- testing: 9 / 9223372036854775806 ---\r
-float(9.7578195523695E-19)\r
---- testing: 9 / 9.2233720368548E+18 ---\r
-float(9.7578195523695E-19)\r
---- testing: 9 / -9223372036854775807 ---\r
-float(-9.7578195523695E-19)\r
---- testing: 9 / -9.2233720368548E+18 ---\r
-float(-9.7578195523695E-19)\r
---- testing: 65 / 9223372036854775807 ---\r
-float(7.0473141211558E-18)\r
---- testing: 65 / -9223372036854775808 ---\r
-float(-7.0473141211558E-18)\r
---- testing: 65 / 2147483647 ---\r
-float(3.0267983689098E-8)\r
---- testing: 65 / -2147483648 ---\r
-float(-3.0267983675003E-8)\r
---- testing: 65 / 9223372034707292160 ---\r
-float(7.0473141227966E-18)\r
---- testing: 65 / -9223372034707292160 ---\r
-float(-7.0473141227966E-18)\r
---- testing: 65 / 2147483648 ---\r
-float(3.0267983675003E-8)\r
---- testing: 65 / -2147483649 ---\r
-float(-3.0267983660908E-8)\r
---- testing: 65 / 4294967294 ---\r
-float(1.5133991844549E-8)\r
---- testing: 65 / 4294967295 ---\r
-float(1.5133991841025E-8)\r
---- testing: 65 / 4294967293 ---\r
-float(1.5133991848072E-8)\r
---- testing: 65 / 9223372036854775806 ---\r
-float(7.0473141211558E-18)\r
---- testing: 65 / 9.2233720368548E+18 ---\r
-float(7.0473141211558E-18)\r
---- testing: 65 / -9223372036854775807 ---\r
-float(-7.0473141211558E-18)\r
---- testing: 65 / -9.2233720368548E+18 ---\r
-float(-7.0473141211558E-18)\r
---- testing: -44 / 9223372036854775807 ---\r
-float(-4.7704895589362E-18)\r
---- testing: -44 / -9223372036854775808 ---\r
-float(4.7704895589362E-18)\r
---- testing: -44 / 2147483647 ---\r
-float(-2.0489096651082E-8)\r
---- testing: -44 / -2147483648 ---\r
-float(2.0489096641541E-8)\r
---- testing: -44 / 9223372034707292160 ---\r
-float(-4.7704895600469E-18)\r
---- testing: -44 / -9223372034707292160 ---\r
-float(4.7704895600469E-18)\r
---- testing: -44 / 2147483648 ---\r
-float(-2.0489096641541E-8)\r
---- testing: -44 / -2147483649 ---\r
-float(2.0489096632E-8)\r
---- testing: -44 / 4294967294 ---\r
-float(-1.0244548325541E-8)\r
---- testing: -44 / 4294967295 ---\r
-float(-1.0244548323156E-8)\r
---- testing: -44 / 4294967293 ---\r
-float(-1.0244548327926E-8)\r
---- testing: -44 / 9223372036854775806 ---\r
-float(-4.7704895589362E-18)\r
---- testing: -44 / 9.2233720368548E+18 ---\r
-float(-4.7704895589362E-18)\r
---- testing: -44 / -9223372036854775807 ---\r
-float(4.7704895589362E-18)\r
---- testing: -44 / -9.2233720368548E+18 ---\r
-float(4.7704895589362E-18)\r
---- testing: 2147483647 / 9223372036854775807 ---\r
-float(2.3283064354545E-10)\r
---- testing: 2147483647 / -9223372036854775808 ---\r
-float(-2.3283064354545E-10)\r
---- testing: 2147483647 / 2147483647 ---\r
-int(1)\r
---- testing: 2147483647 / -2147483648 ---\r
-float(-0.99999999953434)\r
---- testing: 2147483647 / 9223372034707292160 ---\r
-float(2.3283064359966E-10)\r
---- testing: 2147483647 / -9223372034707292160 ---\r
-float(-2.3283064359966E-10)\r
---- testing: 2147483647 / 2147483648 ---\r
-float(0.99999999953434)\r
---- testing: 2147483647 / -2147483649 ---\r
-float(-0.99999999906868)\r
---- testing: 2147483647 / 4294967294 ---\r
-float(0.5)\r
---- testing: 2147483647 / 4294967295 ---\r
-float(0.49999999988358)\r
---- testing: 2147483647 / 4294967293 ---\r
-float(0.50000000011642)\r
---- testing: 2147483647 / 9223372036854775806 ---\r
-float(2.3283064354545E-10)\r
---- testing: 2147483647 / 9.2233720368548E+18 ---\r
-float(2.3283064354545E-10)\r
---- testing: 2147483647 / -9223372036854775807 ---\r
-float(-2.3283064354545E-10)\r
---- testing: 2147483647 / -9.2233720368548E+18 ---\r
-float(-2.3283064354545E-10)\r
---- testing: 9223372036854775807 / 9223372036854775807 ---\r
-int(1)\r
---- testing: 9223372036854775807 / -9223372036854775808 ---\r
-float(-1)\r
---- testing: 9223372036854775807 / 2147483647 ---\r
-float(4294967298)\r
---- testing: 9223372036854775807 / -2147483648 ---\r
-float(-4294967296)\r
---- testing: 9223372036854775807 / 9223372034707292160 ---\r
-float(1.0000000002328)\r
---- testing: 9223372036854775807 / -9223372034707292160 ---\r
-float(-1.0000000002328)\r
---- testing: 9223372036854775807 / 2147483648 ---\r
-float(4294967296)\r
---- testing: 9223372036854775807 / -2147483649 ---\r
-float(-4294967294)\r
---- testing: 9223372036854775807 / 4294967294 ---\r
-float(2147483649)\r
---- testing: 9223372036854775807 / 4294967295 ---\r
-float(2147483648.5)\r
---- testing: 9223372036854775807 / 4294967293 ---\r
-float(2147483649.5)\r
---- testing: 9223372036854775807 / 9223372036854775806 ---\r
-float(1)\r
---- testing: 9223372036854775807 / 9.2233720368548E+18 ---\r
-float(1)\r
---- testing: 9223372036854775807 / -9223372036854775807 ---\r
-int(-1)\r
---- testing: 9223372036854775807 / -9.2233720368548E+18 ---\r
+--- testing: 9223372036854775807 / 0 ---
+float(INF)
+--- testing: 9223372036854775807 / 1 ---
+int(9223372036854775807)
+--- testing: 9223372036854775807 / -1 ---
+int(-9223372036854775807)
+--- testing: 9223372036854775807 / 7 ---
+int(1317624576693539401)
+--- testing: 9223372036854775807 / 9 ---
+float(1.0248191152061E+18)
+--- testing: 9223372036854775807 / 65 ---
+float(1.4189803133623E+17)
+--- testing: 9223372036854775807 / -44 ---
+float(-2.096220917467E+17)
+--- testing: 9223372036854775807 / 2147483647 ---
+float(4294967298)
+--- testing: 9223372036854775807 / 9223372036854775807 ---
+int(1)
+--- testing: -9223372036854775808 / 0 ---
+float(-INF)
+--- testing: -9223372036854775808 / 1 ---
+int(-9223372036854775808)
+--- testing: -9223372036854775808 / -1 ---
+float(9.2233720368548E+18)
+--- testing: -9223372036854775808 / 7 ---
+float(-1.3176245766935E+18)
+--- testing: -9223372036854775808 / 9 ---
+float(-1.0248191152061E+18)
+--- testing: -9223372036854775808 / 65 ---
+float(-1.4189803133623E+17)
+--- testing: -9223372036854775808 / -44 ---
+float(2.096220917467E+17)
+--- testing: -9223372036854775808 / 2147483647 ---
+float(-4294967298)
+--- testing: -9223372036854775808 / 9223372036854775807 ---
+float(-1)
+--- testing: 2147483647 / 0 ---
+float(INF)
+--- testing: 2147483647 / 1 ---
+int(2147483647)
+--- testing: 2147483647 / -1 ---
+int(-2147483647)
+--- testing: 2147483647 / 7 ---
+float(306783378.14286)
+--- testing: 2147483647 / 9 ---
+float(238609294.11111)
+--- testing: 2147483647 / 65 ---
+float(33038209.953846)
+--- testing: 2147483647 / -44 ---
+float(-48806446.522727)
+--- testing: 2147483647 / 2147483647 ---
+int(1)
+--- testing: 2147483647 / 9223372036854775807 ---
+float(2.3283064354545E-10)
+--- testing: -2147483648 / 0 ---
+float(-INF)
+--- testing: -2147483648 / 1 ---
+int(-2147483648)
+--- testing: -2147483648 / -1 ---
+int(2147483648)
+--- testing: -2147483648 / 7 ---
+float(-306783378.28571)
+--- testing: -2147483648 / 9 ---
+float(-238609294.22222)
+--- testing: -2147483648 / 65 ---
+float(-33038209.969231)
+--- testing: -2147483648 / -44 ---
+float(48806446.545455)
+--- testing: -2147483648 / 2147483647 ---
+float(-1.0000000004657)
+--- testing: -2147483648 / 9223372036854775807 ---
+float(-2.3283064365387E-10)
+--- testing: 9223372034707292160 / 0 ---
+float(INF)
+--- testing: 9223372034707292160 / 1 ---
+int(9223372034707292160)
+--- testing: 9223372034707292160 / -1 ---
+int(-9223372034707292160)
+--- testing: 9223372034707292160 / 7 ---
+float(1.3176245763868E+18)
+--- testing: 9223372034707292160 / 9 ---
+float(1.0248191149675E+18)
+--- testing: 9223372034707292160 / 65 ---
+float(1.4189803130319E+17)
+--- testing: 9223372034707292160 / -44 ---
+float(-2.0962209169789E+17)
+--- testing: 9223372034707292160 / 2147483647 ---
+float(4294967297)
+--- testing: 9223372034707292160 / 9223372036854775807 ---
+float(0.99999999976717)
+--- testing: -9223372034707292160 / 0 ---
+float(-INF)
+--- testing: -9223372034707292160 / 1 ---
+int(-9223372034707292160)
+--- testing: -9223372034707292160 / -1 ---
+int(9223372034707292160)
+--- testing: -9223372034707292160 / 7 ---
+float(-1.3176245763868E+18)
+--- testing: -9223372034707292160 / 9 ---
+float(-1.0248191149675E+18)
+--- testing: -9223372034707292160 / 65 ---
+float(-1.4189803130319E+17)
+--- testing: -9223372034707292160 / -44 ---
+float(2.0962209169789E+17)
+--- testing: -9223372034707292160 / 2147483647 ---
+float(-4294967297)
+--- testing: -9223372034707292160 / 9223372036854775807 ---
+float(-0.99999999976717)
+--- testing: 2147483648 / 0 ---
+float(INF)
+--- testing: 2147483648 / 1 ---
+int(2147483648)
+--- testing: 2147483648 / -1 ---
+int(-2147483648)
+--- testing: 2147483648 / 7 ---
+float(306783378.28571)
+--- testing: 2147483648 / 9 ---
+float(238609294.22222)
+--- testing: 2147483648 / 65 ---
+float(33038209.969231)
+--- testing: 2147483648 / -44 ---
+float(-48806446.545455)
+--- testing: 2147483648 / 2147483647 ---
+float(1.0000000004657)
+--- testing: 2147483648 / 9223372036854775807 ---
+float(2.3283064365387E-10)
+--- testing: -2147483649 / 0 ---
+float(-INF)
+--- testing: -2147483649 / 1 ---
+int(-2147483649)
+--- testing: -2147483649 / -1 ---
+int(2147483649)
+--- testing: -2147483649 / 7 ---
+float(-306783378.42857)
+--- testing: -2147483649 / 9 ---
+float(-238609294.33333)
+--- testing: -2147483649 / 65 ---
+float(-33038209.984615)
+--- testing: -2147483649 / -44 ---
+float(48806446.568182)
+--- testing: -2147483649 / 2147483647 ---
+float(-1.0000000009313)
+--- testing: -2147483649 / 9223372036854775807 ---
+float(-2.3283064376229E-10)
+--- testing: 4294967294 / 0 ---
+float(INF)
+--- testing: 4294967294 / 1 ---
+int(4294967294)
+--- testing: 4294967294 / -1 ---
+int(-4294967294)
+--- testing: 4294967294 / 7 ---
+float(613566756.28571)
+--- testing: 4294967294 / 9 ---
+float(477218588.22222)
+--- testing: 4294967294 / 65 ---
+float(66076419.907692)
+--- testing: 4294967294 / -44 ---
+float(-97612893.045455)
+--- testing: 4294967294 / 2147483647 ---
+int(2)
+--- testing: 4294967294 / 9223372036854775807 ---
+float(4.656612870909E-10)
+--- testing: 4294967295 / 0 ---
+float(INF)
+--- testing: 4294967295 / 1 ---
+int(4294967295)
+--- testing: 4294967295 / -1 ---
+int(-4294967295)
+--- testing: 4294967295 / 7 ---
+float(613566756.42857)
+--- testing: 4294967295 / 9 ---
+float(477218588.33333)
+--- testing: 4294967295 / 65 ---
+float(66076419.923077)
+--- testing: 4294967295 / -44 ---
+float(-97612893.068182)
+--- testing: 4294967295 / 2147483647 ---
+float(2.0000000004657)
+--- testing: 4294967295 / 9223372036854775807 ---
+float(4.6566128719932E-10)
+--- testing: 4294967293 / 0 ---
+float(INF)
+--- testing: 4294967293 / 1 ---
+int(4294967293)
+--- testing: 4294967293 / -1 ---
+int(-4294967293)
+--- testing: 4294967293 / 7 ---
+float(613566756.14286)
+--- testing: 4294967293 / 9 ---
+float(477218588.11111)
+--- testing: 4294967293 / 65 ---
+float(66076419.892308)
+--- testing: 4294967293 / -44 ---
+float(-97612893.022727)
+--- testing: 4294967293 / 2147483647 ---
+float(1.9999999995343)
+--- testing: 4294967293 / 9223372036854775807 ---
+float(4.6566128698248E-10)
+--- testing: 9223372036854775806 / 0 ---
+float(INF)
+--- testing: 9223372036854775806 / 1 ---
+int(9223372036854775806)
+--- testing: 9223372036854775806 / -1 ---
+int(-9223372036854775806)
+--- testing: 9223372036854775806 / 7 ---
+float(1.3176245766935E+18)
+--- testing: 9223372036854775806 / 9 ---
+float(1.0248191152061E+18)
+--- testing: 9223372036854775806 / 65 ---
+float(1.4189803133623E+17)
+--- testing: 9223372036854775806 / -44 ---
+float(-2.096220917467E+17)
+--- testing: 9223372036854775806 / 2147483647 ---
+int(4294967298)
+--- testing: 9223372036854775806 / 9223372036854775807 ---
+float(1)
+--- testing: 9.2233720368548E+18 / 0 ---
+float(INF)
+--- testing: 9.2233720368548E+18 / 1 ---
+float(9.2233720368548E+18)
+--- testing: 9.2233720368548E+18 / -1 ---
+float(-9.2233720368548E+18)
+--- testing: 9.2233720368548E+18 / 7 ---
+float(1.3176245766935E+18)
+--- testing: 9.2233720368548E+18 / 9 ---
+float(1.0248191152061E+18)
+--- testing: 9.2233720368548E+18 / 65 ---
+float(1.4189803133623E+17)
+--- testing: 9.2233720368548E+18 / -44 ---
+float(-2.096220917467E+17)
+--- testing: 9.2233720368548E+18 / 2147483647 ---
+float(4294967298)
+--- testing: 9.2233720368548E+18 / 9223372036854775807 ---
+float(1)
+--- testing: -9223372036854775807 / 0 ---
+float(-INF)
+--- testing: -9223372036854775807 / 1 ---
+int(-9223372036854775807)
+--- testing: -9223372036854775807 / -1 ---
+int(9223372036854775807)
+--- testing: -9223372036854775807 / 7 ---
+int(-1317624576693539401)
+--- testing: -9223372036854775807 / 9 ---
+float(-1.0248191152061E+18)
+--- testing: -9223372036854775807 / 65 ---
+float(-1.4189803133623E+17)
+--- testing: -9223372036854775807 / -44 ---
+float(2.096220917467E+17)
+--- testing: -9223372036854775807 / 2147483647 ---
+float(-4294967298)
+--- testing: -9223372036854775807 / 9223372036854775807 ---
+int(-1)
+--- testing: -9.2233720368548E+18 / 0 ---
+float(-INF)
+--- testing: -9.2233720368548E+18 / 1 ---
+float(-9.2233720368548E+18)
+--- testing: -9.2233720368548E+18 / -1 ---
+float(9.2233720368548E+18)
+--- testing: -9.2233720368548E+18 / 7 ---
+float(-1.3176245766935E+18)
+--- testing: -9.2233720368548E+18 / 9 ---
+float(-1.0248191152061E+18)
+--- testing: -9.2233720368548E+18 / 65 ---
+float(-1.4189803133623E+17)
+--- testing: -9.2233720368548E+18 / -44 ---
+float(2.096220917467E+17)
+--- testing: -9.2233720368548E+18 / 2147483647 ---
+float(-4294967298)
+--- testing: -9.2233720368548E+18 / 9223372036854775807 ---
+float(-1)
+--- testing: 0 / 9223372036854775807 ---
+int(0)
+--- testing: 0 / -9223372036854775808 ---
+int(0)
+--- testing: 0 / 2147483647 ---
+int(0)
+--- testing: 0 / -2147483648 ---
+int(0)
+--- testing: 0 / 9223372034707292160 ---
+int(0)
+--- testing: 0 / -9223372034707292160 ---
+int(0)
+--- testing: 0 / 2147483648 ---
+int(0)
+--- testing: 0 / -2147483649 ---
+int(0)
+--- testing: 0 / 4294967294 ---
+int(0)
+--- testing: 0 / 4294967295 ---
+int(0)
+--- testing: 0 / 4294967293 ---
+int(0)
+--- testing: 0 / 9223372036854775806 ---
+int(0)
+--- testing: 0 / 9.2233720368548E+18 ---
+float(0)
+--- testing: 0 / -9223372036854775807 ---
+int(0)
+--- testing: 0 / -9.2233720368548E+18 ---
+float(-0)
+--- testing: 1 / 9223372036854775807 ---
+float(1.0842021724855E-19)
+--- testing: 1 / -9223372036854775808 ---
+float(-1.0842021724855E-19)
+--- testing: 1 / 2147483647 ---
+float(4.6566128752458E-10)
+--- testing: 1 / -2147483648 ---
+float(-4.6566128730774E-10)
+--- testing: 1 / 9223372034707292160 ---
+float(1.0842021727379E-19)
+--- testing: 1 / -9223372034707292160 ---
+float(-1.0842021727379E-19)
+--- testing: 1 / 2147483648 ---
+float(4.6566128730774E-10)
+--- testing: 1 / -2147483649 ---
+float(-4.656612870909E-10)
+--- testing: 1 / 4294967294 ---
+float(2.3283064376229E-10)
+--- testing: 1 / 4294967295 ---
+float(2.3283064370808E-10)
+--- testing: 1 / 4294967293 ---
+float(2.328306438165E-10)
+--- testing: 1 / 9223372036854775806 ---
+float(1.0842021724855E-19)
+--- testing: 1 / 9.2233720368548E+18 ---
+float(1.0842021724855E-19)
+--- testing: 1 / -9223372036854775807 ---
+float(-1.0842021724855E-19)
+--- testing: 1 / -9.2233720368548E+18 ---
+float(-1.0842021724855E-19)
+--- testing: -1 / 9223372036854775807 ---
+float(-1.0842021724855E-19)
+--- testing: -1 / -9223372036854775808 ---
+float(1.0842021724855E-19)
+--- testing: -1 / 2147483647 ---
+float(-4.6566128752458E-10)
+--- testing: -1 / -2147483648 ---
+float(4.6566128730774E-10)
+--- testing: -1 / 9223372034707292160 ---
+float(-1.0842021727379E-19)
+--- testing: -1 / -9223372034707292160 ---
+float(1.0842021727379E-19)
+--- testing: -1 / 2147483648 ---
+float(-4.6566128730774E-10)
+--- testing: -1 / -2147483649 ---
+float(4.656612870909E-10)
+--- testing: -1 / 4294967294 ---
+float(-2.3283064376229E-10)
+--- testing: -1 / 4294967295 ---
+float(-2.3283064370808E-10)
+--- testing: -1 / 4294967293 ---
+float(-2.328306438165E-10)
+--- testing: -1 / 9223372036854775806 ---
+float(-1.0842021724855E-19)
+--- testing: -1 / 9.2233720368548E+18 ---
+float(-1.0842021724855E-19)
+--- testing: -1 / -9223372036854775807 ---
+float(1.0842021724855E-19)
+--- testing: -1 / -9.2233720368548E+18 ---
+float(1.0842021724855E-19)
+--- testing: 7 / 9223372036854775807 ---
+float(7.5894152073985E-19)
+--- testing: 7 / -9223372036854775808 ---
+float(-7.5894152073985E-19)
+--- testing: 7 / 2147483647 ---
+float(3.2596290126721E-9)
+--- testing: 7 / -2147483648 ---
+float(-3.2596290111542E-9)
+--- testing: 7 / 9223372034707292160 ---
+float(7.5894152091656E-19)
+--- testing: 7 / -9223372034707292160 ---
+float(-7.5894152091656E-19)
+--- testing: 7 / 2147483648 ---
+float(3.2596290111542E-9)
+--- testing: 7 / -2147483649 ---
+float(-3.2596290096363E-9)
+--- testing: 7 / 4294967294 ---
+float(1.629814506336E-9)
+--- testing: 7 / 4294967295 ---
+float(1.6298145059566E-9)
+--- testing: 7 / 4294967293 ---
+float(1.6298145067155E-9)
+--- testing: 7 / 9223372036854775806 ---
+float(7.5894152073985E-19)
+--- testing: 7 / 9.2233720368548E+18 ---
+float(7.5894152073985E-19)
+--- testing: 7 / -9223372036854775807 ---
+float(-7.5894152073985E-19)
+--- testing: 7 / -9.2233720368548E+18 ---
+float(-7.5894152073985E-19)
+--- testing: 9 / 9223372036854775807 ---
+float(9.7578195523695E-19)
+--- testing: 9 / -9223372036854775808 ---
+float(-9.7578195523695E-19)
+--- testing: 9 / 2147483647 ---
+float(4.1909515877212E-9)
+--- testing: 9 / -2147483648 ---
+float(-4.1909515857697E-9)
+--- testing: 9 / 9223372034707292160 ---
+float(9.7578195546415E-19)
+--- testing: 9 / -9223372034707292160 ---
+float(-9.7578195546415E-19)
+--- testing: 9 / 2147483648 ---
+float(4.1909515857697E-9)
+--- testing: 9 / -2147483649 ---
+float(-4.1909515838181E-9)
+--- testing: 9 / 4294967294 ---
+float(2.0954757938606E-9)
+--- testing: 9 / 4294967295 ---
+float(2.0954757933727E-9)
+--- testing: 9 / 4294967293 ---
+float(2.0954757943485E-9)
+--- testing: 9 / 9223372036854775806 ---
+float(9.7578195523695E-19)
+--- testing: 9 / 9.2233720368548E+18 ---
+float(9.7578195523695E-19)
+--- testing: 9 / -9223372036854775807 ---
+float(-9.7578195523695E-19)
+--- testing: 9 / -9.2233720368548E+18 ---
+float(-9.7578195523695E-19)
+--- testing: 65 / 9223372036854775807 ---
+float(7.0473141211558E-18)
+--- testing: 65 / -9223372036854775808 ---
+float(-7.0473141211558E-18)
+--- testing: 65 / 2147483647 ---
+float(3.0267983689098E-8)
+--- testing: 65 / -2147483648 ---
+float(-3.0267983675003E-8)
+--- testing: 65 / 9223372034707292160 ---
+float(7.0473141227966E-18)
+--- testing: 65 / -9223372034707292160 ---
+float(-7.0473141227966E-18)
+--- testing: 65 / 2147483648 ---
+float(3.0267983675003E-8)
+--- testing: 65 / -2147483649 ---
+float(-3.0267983660908E-8)
+--- testing: 65 / 4294967294 ---
+float(1.5133991844549E-8)
+--- testing: 65 / 4294967295 ---
+float(1.5133991841025E-8)
+--- testing: 65 / 4294967293 ---
+float(1.5133991848072E-8)
+--- testing: 65 / 9223372036854775806 ---
+float(7.0473141211558E-18)
+--- testing: 65 / 9.2233720368548E+18 ---
+float(7.0473141211558E-18)
+--- testing: 65 / -9223372036854775807 ---
+float(-7.0473141211558E-18)
+--- testing: 65 / -9.2233720368548E+18 ---
+float(-7.0473141211558E-18)
+--- testing: -44 / 9223372036854775807 ---
+float(-4.7704895589362E-18)
+--- testing: -44 / -9223372036854775808 ---
+float(4.7704895589362E-18)
+--- testing: -44 / 2147483647 ---
+float(-2.0489096651082E-8)
+--- testing: -44 / -2147483648 ---
+float(2.0489096641541E-8)
+--- testing: -44 / 9223372034707292160 ---
+float(-4.7704895600469E-18)
+--- testing: -44 / -9223372034707292160 ---
+float(4.7704895600469E-18)
+--- testing: -44 / 2147483648 ---
+float(-2.0489096641541E-8)
+--- testing: -44 / -2147483649 ---
+float(2.0489096632E-8)
+--- testing: -44 / 4294967294 ---
+float(-1.0244548325541E-8)
+--- testing: -44 / 4294967295 ---
+float(-1.0244548323156E-8)
+--- testing: -44 / 4294967293 ---
+float(-1.0244548327926E-8)
+--- testing: -44 / 9223372036854775806 ---
+float(-4.7704895589362E-18)
+--- testing: -44 / 9.2233720368548E+18 ---
+float(-4.7704895589362E-18)
+--- testing: -44 / -9223372036854775807 ---
+float(4.7704895589362E-18)
+--- testing: -44 / -9.2233720368548E+18 ---
+float(4.7704895589362E-18)
+--- testing: 2147483647 / 9223372036854775807 ---
+float(2.3283064354545E-10)
+--- testing: 2147483647 / -9223372036854775808 ---
+float(-2.3283064354545E-10)
+--- testing: 2147483647 / 2147483647 ---
+int(1)
+--- testing: 2147483647 / -2147483648 ---
+float(-0.99999999953434)
+--- testing: 2147483647 / 9223372034707292160 ---
+float(2.3283064359966E-10)
+--- testing: 2147483647 / -9223372034707292160 ---
+float(-2.3283064359966E-10)
+--- testing: 2147483647 / 2147483648 ---
+float(0.99999999953434)
+--- testing: 2147483647 / -2147483649 ---
+float(-0.99999999906868)
+--- testing: 2147483647 / 4294967294 ---
+float(0.5)
+--- testing: 2147483647 / 4294967295 ---
+float(0.49999999988358)
+--- testing: 2147483647 / 4294967293 ---
+float(0.50000000011642)
+--- testing: 2147483647 / 9223372036854775806 ---
+float(2.3283064354545E-10)
+--- testing: 2147483647 / 9.2233720368548E+18 ---
+float(2.3283064354545E-10)
+--- testing: 2147483647 / -9223372036854775807 ---
+float(-2.3283064354545E-10)
+--- testing: 2147483647 / -9.2233720368548E+18 ---
+float(-2.3283064354545E-10)
+--- testing: 9223372036854775807 / 9223372036854775807 ---
+int(1)
+--- testing: 9223372036854775807 / -9223372036854775808 ---
+float(-1)
+--- testing: 9223372036854775807 / 2147483647 ---
+float(4294967298)
+--- testing: 9223372036854775807 / -2147483648 ---
+float(-4294967296)
+--- testing: 9223372036854775807 / 9223372034707292160 ---
+float(1.0000000002328)
+--- testing: 9223372036854775807 / -9223372034707292160 ---
+float(-1.0000000002328)
+--- testing: 9223372036854775807 / 2147483648 ---
+float(4294967296)
+--- testing: 9223372036854775807 / -2147483649 ---
+float(-4294967294)
+--- testing: 9223372036854775807 / 4294967294 ---
+float(2147483649)
+--- testing: 9223372036854775807 / 4294967295 ---
+float(2147483648.5)
+--- testing: 9223372036854775807 / 4294967293 ---
+float(2147483649.5)
+--- testing: 9223372036854775807 / 9223372036854775806 ---
+float(1)
+--- testing: 9223372036854775807 / 9.2233720368548E+18 ---
+float(1)
+--- testing: 9223372036854775807 / -9223372036854775807 ---
+int(-1)
+--- testing: 9223372036854775807 / -9.2233720368548E+18 ---
float(-1)\r
===DONE===\r
--FILE--\r
<?php\r
\r
-$strVals = ["65","-44", "1.2", "-7.7", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a"];\r
+$strVals = array(\r
+ "0","65","-44", "1.2", "-7.7", "abc", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a",\r
+ "a5.9"\r
+);\r
\r
-foreach (array_merge(["0", "abc"], $strVals) as $strVal) {\r
+error_reporting(E_ERROR);\r
+\r
+foreach ($strVals as $strVal) {\r
foreach($strVals as $otherVal) {\r
echo "--- testing: '$strVal' / '$otherVal' ---\n"; \r
var_dump($strVal/$otherVal);\r
?>\r
===DONE===\r
--EXPECT--\r
---- testing: '0' / '65' ---\r
-int(0)\r
---- testing: '0' / '-44' ---\r
-int(0)\r
---- testing: '0' / '1.2' ---\r
-float(0)\r
---- testing: '0' / '-7.7' ---\r
-float(-0)\r
---- testing: '0' / '123abc' ---\r
-int(0)\r
---- testing: '0' / '123e5' ---\r
-float(0)\r
---- testing: '0' / '123e5xyz' ---\r
-float(0)\r
---- testing: '0' / ' 123abc' ---\r
-int(0)\r
---- testing: '0' / '123 abc' ---\r
-int(0)\r
---- testing: '0' / '123abc ' ---\r
-int(0)\r
---- testing: '0' / '3.4a' ---\r
-float(0)\r
---- testing: 'abc' / '65' ---\r
-int(0)\r
---- testing: 'abc' / '-44' ---\r
-int(0)\r
---- testing: 'abc' / '1.2' ---\r
-float(0)\r
---- testing: 'abc' / '-7.7' ---\r
-float(-0)\r
---- testing: 'abc' / '123abc' ---\r
-int(0)\r
---- testing: 'abc' / '123e5' ---\r
-float(0)\r
---- testing: 'abc' / '123e5xyz' ---\r
-float(0)\r
---- testing: 'abc' / ' 123abc' ---\r
-int(0)\r
---- testing: 'abc' / '123 abc' ---\r
-int(0)\r
---- testing: 'abc' / '123abc ' ---\r
-int(0)\r
---- testing: 'abc' / '3.4a' ---\r
-float(0)\r
---- testing: '65' / '65' ---\r
-int(1)\r
---- testing: '65' / '-44' ---\r
-float(-1.4772727272727)\r
---- testing: '65' / '1.2' ---\r
-float(54.166666666667)\r
---- testing: '65' / '-7.7' ---\r
-float(-8.4415584415584)\r
---- testing: '65' / '123abc' ---\r
-float(0.52845528455285)\r
---- testing: '65' / '123e5' ---\r
-float(5.2845528455285E-6)\r
---- testing: '65' / '123e5xyz' ---\r
-float(5.2845528455285E-6)\r
---- testing: '65' / ' 123abc' ---\r
-float(0.52845528455285)\r
---- testing: '65' / '123 abc' ---\r
-float(0.52845528455285)\r
---- testing: '65' / '123abc ' ---\r
-float(0.52845528455285)\r
---- testing: '65' / '3.4a' ---\r
-float(19.117647058824)\r
---- testing: '-44' / '65' ---\r
-float(-0.67692307692308)\r
---- testing: '-44' / '-44' ---\r
-int(1)\r
---- testing: '-44' / '1.2' ---\r
-float(-36.666666666667)\r
---- testing: '-44' / '-7.7' ---\r
-float(5.7142857142857)\r
---- testing: '-44' / '123abc' ---\r
-float(-0.35772357723577)\r
---- testing: '-44' / '123e5' ---\r
-float(-3.5772357723577E-6)\r
---- testing: '-44' / '123e5xyz' ---\r
-float(-3.5772357723577E-6)\r
---- testing: '-44' / ' 123abc' ---\r
-float(-0.35772357723577)\r
---- testing: '-44' / '123 abc' ---\r
-float(-0.35772357723577)\r
---- testing: '-44' / '123abc ' ---\r
-float(-0.35772357723577)\r
---- testing: '-44' / '3.4a' ---\r
-float(-12.941176470588)\r
---- testing: '1.2' / '65' ---\r
-float(0.018461538461538)\r
---- testing: '1.2' / '-44' ---\r
-float(-0.027272727272727)\r
---- testing: '1.2' / '1.2' ---\r
-float(1)\r
---- testing: '1.2' / '-7.7' ---\r
-float(-0.15584415584416)\r
---- testing: '1.2' / '123abc' ---\r
-float(0.0097560975609756)\r
---- testing: '1.2' / '123e5' ---\r
-float(9.7560975609756E-8)\r
---- testing: '1.2' / '123e5xyz' ---\r
-float(9.7560975609756E-8)\r
---- testing: '1.2' / ' 123abc' ---\r
-float(0.0097560975609756)\r
---- testing: '1.2' / '123 abc' ---\r
-float(0.0097560975609756)\r
---- testing: '1.2' / '123abc ' ---\r
-float(0.0097560975609756)\r
---- testing: '1.2' / '3.4a' ---\r
-float(0.35294117647059)\r
---- testing: '-7.7' / '65' ---\r
-float(-0.11846153846154)\r
---- testing: '-7.7' / '-44' ---\r
-float(0.175)\r
---- testing: '-7.7' / '1.2' ---\r
-float(-6.4166666666667)\r
---- testing: '-7.7' / '-7.7' ---\r
-float(1)\r
---- testing: '-7.7' / '123abc' ---\r
-float(-0.06260162601626)\r
---- testing: '-7.7' / '123e5' ---\r
-float(-6.260162601626E-7)\r
---- testing: '-7.7' / '123e5xyz' ---\r
-float(-6.260162601626E-7)\r
---- testing: '-7.7' / ' 123abc' ---\r
-float(-0.06260162601626)\r
---- testing: '-7.7' / '123 abc' ---\r
-float(-0.06260162601626)\r
---- testing: '-7.7' / '123abc ' ---\r
-float(-0.06260162601626)\r
---- testing: '-7.7' / '3.4a' ---\r
-float(-2.2647058823529)\r
---- testing: '123abc' / '65' ---\r
-float(1.8923076923077)\r
---- testing: '123abc' / '-44' ---\r
-float(-2.7954545454545)\r
---- testing: '123abc' / '1.2' ---\r
-float(102.5)\r
---- testing: '123abc' / '-7.7' ---\r
-float(-15.974025974026)\r
---- testing: '123abc' / '123abc' ---\r
-int(1)\r
---- testing: '123abc' / '123e5' ---\r
-float(1.0E-5)\r
---- testing: '123abc' / '123e5xyz' ---\r
-float(1.0E-5)\r
---- testing: '123abc' / ' 123abc' ---\r
-int(1)\r
---- testing: '123abc' / '123 abc' ---\r
-int(1)\r
---- testing: '123abc' / '123abc ' ---\r
-int(1)\r
---- testing: '123abc' / '3.4a' ---\r
-float(36.176470588235)\r
---- testing: '123e5' / '65' ---\r
-float(189230.76923077)\r
---- testing: '123e5' / '-44' ---\r
-float(-279545.45454545)\r
---- testing: '123e5' / '1.2' ---\r
-float(10250000)\r
---- testing: '123e5' / '-7.7' ---\r
-float(-1597402.5974026)\r
---- testing: '123e5' / '123abc' ---\r
-float(100000)\r
---- testing: '123e5' / '123e5' ---\r
-float(1)\r
---- testing: '123e5' / '123e5xyz' ---\r
-float(1)\r
---- testing: '123e5' / ' 123abc' ---\r
-float(100000)\r
---- testing: '123e5' / '123 abc' ---\r
-float(100000)\r
---- testing: '123e5' / '123abc ' ---\r
-float(100000)\r
---- testing: '123e5' / '3.4a' ---\r
-float(3617647.0588235)\r
---- testing: '123e5xyz' / '65' ---\r
-float(189230.76923077)\r
---- testing: '123e5xyz' / '-44' ---\r
-float(-279545.45454545)\r
---- testing: '123e5xyz' / '1.2' ---\r
-float(10250000)\r
---- testing: '123e5xyz' / '-7.7' ---\r
-float(-1597402.5974026)\r
---- testing: '123e5xyz' / '123abc' ---\r
-float(100000)\r
---- testing: '123e5xyz' / '123e5' ---\r
-float(1)\r
---- testing: '123e5xyz' / '123e5xyz' ---\r
-float(1)\r
---- testing: '123e5xyz' / ' 123abc' ---\r
-float(100000)\r
---- testing: '123e5xyz' / '123 abc' ---\r
-float(100000)\r
---- testing: '123e5xyz' / '123abc ' ---\r
-float(100000)\r
---- testing: '123e5xyz' / '3.4a' ---\r
-float(3617647.0588235)\r
---- testing: ' 123abc' / '65' ---\r
-float(1.8923076923077)\r
---- testing: ' 123abc' / '-44' ---\r
-float(-2.7954545454545)\r
---- testing: ' 123abc' / '1.2' ---\r
-float(102.5)\r
---- testing: ' 123abc' / '-7.7' ---\r
-float(-15.974025974026)\r
---- testing: ' 123abc' / '123abc' ---\r
-int(1)\r
---- testing: ' 123abc' / '123e5' ---\r
-float(1.0E-5)\r
---- testing: ' 123abc' / '123e5xyz' ---\r
-float(1.0E-5)\r
---- testing: ' 123abc' / ' 123abc' ---\r
-int(1)\r
---- testing: ' 123abc' / '123 abc' ---\r
-int(1)\r
---- testing: ' 123abc' / '123abc ' ---\r
-int(1)\r
---- testing: ' 123abc' / '3.4a' ---\r
-float(36.176470588235)\r
---- testing: '123 abc' / '65' ---\r
-float(1.8923076923077)\r
---- testing: '123 abc' / '-44' ---\r
-float(-2.7954545454545)\r
---- testing: '123 abc' / '1.2' ---\r
-float(102.5)\r
---- testing: '123 abc' / '-7.7' ---\r
-float(-15.974025974026)\r
---- testing: '123 abc' / '123abc' ---\r
-int(1)\r
---- testing: '123 abc' / '123e5' ---\r
-float(1.0E-5)\r
---- testing: '123 abc' / '123e5xyz' ---\r
-float(1.0E-5)\r
---- testing: '123 abc' / ' 123abc' ---\r
-int(1)\r
---- testing: '123 abc' / '123 abc' ---\r
-int(1)\r
---- testing: '123 abc' / '123abc ' ---\r
-int(1)\r
---- testing: '123 abc' / '3.4a' ---\r
-float(36.176470588235)\r
---- testing: '123abc ' / '65' ---\r
-float(1.8923076923077)\r
---- testing: '123abc ' / '-44' ---\r
-float(-2.7954545454545)\r
---- testing: '123abc ' / '1.2' ---\r
-float(102.5)\r
---- testing: '123abc ' / '-7.7' ---\r
-float(-15.974025974026)\r
---- testing: '123abc ' / '123abc' ---\r
-int(1)\r
---- testing: '123abc ' / '123e5' ---\r
-float(1.0E-5)\r
---- testing: '123abc ' / '123e5xyz' ---\r
-float(1.0E-5)\r
---- testing: '123abc ' / ' 123abc' ---\r
-int(1)\r
---- testing: '123abc ' / '123 abc' ---\r
-int(1)\r
---- testing: '123abc ' / '123abc ' ---\r
-int(1)\r
---- testing: '123abc ' / '3.4a' ---\r
-float(36.176470588235)\r
---- testing: '3.4a' / '65' ---\r
-float(0.052307692307692)\r
---- testing: '3.4a' / '-44' ---\r
-float(-0.077272727272727)\r
---- testing: '3.4a' / '1.2' ---\r
-float(2.8333333333333)\r
---- testing: '3.4a' / '-7.7' ---\r
-float(-0.44155844155844)\r
---- testing: '3.4a' / '123abc' ---\r
-float(0.027642276422764)\r
---- testing: '3.4a' / '123e5' ---\r
-float(2.7642276422764E-7)\r
---- testing: '3.4a' / '123e5xyz' ---\r
-float(2.7642276422764E-7)\r
---- testing: '3.4a' / ' 123abc' ---\r
-float(0.027642276422764)\r
---- testing: '3.4a' / '123 abc' ---\r
-float(0.027642276422764)\r
---- testing: '3.4a' / '123abc ' ---\r
-float(0.027642276422764)\r
---- testing: '3.4a' / '3.4a' ---\r
-float(1)\r
+--- testing: '0' / '0' ---
+float(NAN)
+--- testing: '0' / '65' ---
+int(0)
+--- testing: '0' / '-44' ---
+int(0)
+--- testing: '0' / '1.2' ---
+float(0)
+--- testing: '0' / '-7.7' ---
+float(-0)
+--- testing: '0' / 'abc' ---
+float(NAN)
+--- testing: '0' / '123abc' ---
+int(0)
+--- testing: '0' / '123e5' ---
+float(0)
+--- testing: '0' / '123e5xyz' ---
+float(0)
+--- testing: '0' / ' 123abc' ---
+int(0)
+--- testing: '0' / '123 abc' ---
+int(0)
+--- testing: '0' / '123abc ' ---
+int(0)
+--- testing: '0' / '3.4a' ---
+float(0)
+--- testing: '0' / 'a5.9' ---
+float(NAN)
+--- testing: '65' / '0' ---
+float(INF)
+--- testing: '65' / '65' ---
+int(1)
+--- testing: '65' / '-44' ---
+float(-1.4772727272727)
+--- testing: '65' / '1.2' ---
+float(54.166666666667)
+--- testing: '65' / '-7.7' ---
+float(-8.4415584415584)
+--- testing: '65' / 'abc' ---
+float(INF)
+--- testing: '65' / '123abc' ---
+float(0.52845528455285)
+--- testing: '65' / '123e5' ---
+float(5.2845528455285E-6)
+--- testing: '65' / '123e5xyz' ---
+float(5.2845528455285E-6)
+--- testing: '65' / ' 123abc' ---
+float(0.52845528455285)
+--- testing: '65' / '123 abc' ---
+float(0.52845528455285)
+--- testing: '65' / '123abc ' ---
+float(0.52845528455285)
+--- testing: '65' / '3.4a' ---
+float(19.117647058824)
+--- testing: '65' / 'a5.9' ---
+float(INF)
+--- testing: '-44' / '0' ---
+float(-INF)
+--- testing: '-44' / '65' ---
+float(-0.67692307692308)
+--- testing: '-44' / '-44' ---
+int(1)
+--- testing: '-44' / '1.2' ---
+float(-36.666666666667)
+--- testing: '-44' / '-7.7' ---
+float(5.7142857142857)
+--- testing: '-44' / 'abc' ---
+float(-INF)
+--- testing: '-44' / '123abc' ---
+float(-0.35772357723577)
+--- testing: '-44' / '123e5' ---
+float(-3.5772357723577E-6)
+--- testing: '-44' / '123e5xyz' ---
+float(-3.5772357723577E-6)
+--- testing: '-44' / ' 123abc' ---
+float(-0.35772357723577)
+--- testing: '-44' / '123 abc' ---
+float(-0.35772357723577)
+--- testing: '-44' / '123abc ' ---
+float(-0.35772357723577)
+--- testing: '-44' / '3.4a' ---
+float(-12.941176470588)
+--- testing: '-44' / 'a5.9' ---
+float(-INF)
+--- testing: '1.2' / '0' ---
+float(INF)
+--- testing: '1.2' / '65' ---
+float(0.018461538461538)
+--- testing: '1.2' / '-44' ---
+float(-0.027272727272727)
+--- testing: '1.2' / '1.2' ---
+float(1)
+--- testing: '1.2' / '-7.7' ---
+float(-0.15584415584416)
+--- testing: '1.2' / 'abc' ---
+float(INF)
+--- testing: '1.2' / '123abc' ---
+float(0.0097560975609756)
+--- testing: '1.2' / '123e5' ---
+float(9.7560975609756E-8)
+--- testing: '1.2' / '123e5xyz' ---
+float(9.7560975609756E-8)
+--- testing: '1.2' / ' 123abc' ---
+float(0.0097560975609756)
+--- testing: '1.2' / '123 abc' ---
+float(0.0097560975609756)
+--- testing: '1.2' / '123abc ' ---
+float(0.0097560975609756)
+--- testing: '1.2' / '3.4a' ---
+float(0.35294117647059)
+--- testing: '1.2' / 'a5.9' ---
+float(INF)
+--- testing: '-7.7' / '0' ---
+float(-INF)
+--- testing: '-7.7' / '65' ---
+float(-0.11846153846154)
+--- testing: '-7.7' / '-44' ---
+float(0.175)
+--- testing: '-7.7' / '1.2' ---
+float(-6.4166666666667)
+--- testing: '-7.7' / '-7.7' ---
+float(1)
+--- testing: '-7.7' / 'abc' ---
+float(-INF)
+--- testing: '-7.7' / '123abc' ---
+float(-0.06260162601626)
+--- testing: '-7.7' / '123e5' ---
+float(-6.260162601626E-7)
+--- testing: '-7.7' / '123e5xyz' ---
+float(-6.260162601626E-7)
+--- testing: '-7.7' / ' 123abc' ---
+float(-0.06260162601626)
+--- testing: '-7.7' / '123 abc' ---
+float(-0.06260162601626)
+--- testing: '-7.7' / '123abc ' ---
+float(-0.06260162601626)
+--- testing: '-7.7' / '3.4a' ---
+float(-2.2647058823529)
+--- testing: '-7.7' / 'a5.9' ---
+float(-INF)
+--- testing: 'abc' / '0' ---
+float(NAN)
+--- testing: 'abc' / '65' ---
+int(0)
+--- testing: 'abc' / '-44' ---
+int(0)
+--- testing: 'abc' / '1.2' ---
+float(0)
+--- testing: 'abc' / '-7.7' ---
+float(-0)
+--- testing: 'abc' / 'abc' ---
+float(NAN)
+--- testing: 'abc' / '123abc' ---
+int(0)
+--- testing: 'abc' / '123e5' ---
+float(0)
+--- testing: 'abc' / '123e5xyz' ---
+float(0)
+--- testing: 'abc' / ' 123abc' ---
+int(0)
+--- testing: 'abc' / '123 abc' ---
+int(0)
+--- testing: 'abc' / '123abc ' ---
+int(0)
+--- testing: 'abc' / '3.4a' ---
+float(0)
+--- testing: 'abc' / 'a5.9' ---
+float(NAN)
+--- testing: '123abc' / '0' ---
+float(INF)
+--- testing: '123abc' / '65' ---
+float(1.8923076923077)
+--- testing: '123abc' / '-44' ---
+float(-2.7954545454545)
+--- testing: '123abc' / '1.2' ---
+float(102.5)
+--- testing: '123abc' / '-7.7' ---
+float(-15.974025974026)
+--- testing: '123abc' / 'abc' ---
+float(INF)
+--- testing: '123abc' / '123abc' ---
+int(1)
+--- testing: '123abc' / '123e5' ---
+float(1.0E-5)
+--- testing: '123abc' / '123e5xyz' ---
+float(1.0E-5)
+--- testing: '123abc' / ' 123abc' ---
+int(1)
+--- testing: '123abc' / '123 abc' ---
+int(1)
+--- testing: '123abc' / '123abc ' ---
+int(1)
+--- testing: '123abc' / '3.4a' ---
+float(36.176470588235)
+--- testing: '123abc' / 'a5.9' ---
+float(INF)
+--- testing: '123e5' / '0' ---
+float(INF)
+--- testing: '123e5' / '65' ---
+float(189230.76923077)
+--- testing: '123e5' / '-44' ---
+float(-279545.45454545)
+--- testing: '123e5' / '1.2' ---
+float(10250000)
+--- testing: '123e5' / '-7.7' ---
+float(-1597402.5974026)
+--- testing: '123e5' / 'abc' ---
+float(INF)
+--- testing: '123e5' / '123abc' ---
+float(100000)
+--- testing: '123e5' / '123e5' ---
+float(1)
+--- testing: '123e5' / '123e5xyz' ---
+float(1)
+--- testing: '123e5' / ' 123abc' ---
+float(100000)
+--- testing: '123e5' / '123 abc' ---
+float(100000)
+--- testing: '123e5' / '123abc ' ---
+float(100000)
+--- testing: '123e5' / '3.4a' ---
+float(3617647.0588235)
+--- testing: '123e5' / 'a5.9' ---
+float(INF)
+--- testing: '123e5xyz' / '0' ---
+float(INF)
+--- testing: '123e5xyz' / '65' ---
+float(189230.76923077)
+--- testing: '123e5xyz' / '-44' ---
+float(-279545.45454545)
+--- testing: '123e5xyz' / '1.2' ---
+float(10250000)
+--- testing: '123e5xyz' / '-7.7' ---
+float(-1597402.5974026)
+--- testing: '123e5xyz' / 'abc' ---
+float(INF)
+--- testing: '123e5xyz' / '123abc' ---
+float(100000)
+--- testing: '123e5xyz' / '123e5' ---
+float(1)
+--- testing: '123e5xyz' / '123e5xyz' ---
+float(1)
+--- testing: '123e5xyz' / ' 123abc' ---
+float(100000)
+--- testing: '123e5xyz' / '123 abc' ---
+float(100000)
+--- testing: '123e5xyz' / '123abc ' ---
+float(100000)
+--- testing: '123e5xyz' / '3.4a' ---
+float(3617647.0588235)
+--- testing: '123e5xyz' / 'a5.9' ---
+float(INF)
+--- testing: ' 123abc' / '0' ---
+float(INF)
+--- testing: ' 123abc' / '65' ---
+float(1.8923076923077)
+--- testing: ' 123abc' / '-44' ---
+float(-2.7954545454545)
+--- testing: ' 123abc' / '1.2' ---
+float(102.5)
+--- testing: ' 123abc' / '-7.7' ---
+float(-15.974025974026)
+--- testing: ' 123abc' / 'abc' ---
+float(INF)
+--- testing: ' 123abc' / '123abc' ---
+int(1)
+--- testing: ' 123abc' / '123e5' ---
+float(1.0E-5)
+--- testing: ' 123abc' / '123e5xyz' ---
+float(1.0E-5)
+--- testing: ' 123abc' / ' 123abc' ---
+int(1)
+--- testing: ' 123abc' / '123 abc' ---
+int(1)
+--- testing: ' 123abc' / '123abc ' ---
+int(1)
+--- testing: ' 123abc' / '3.4a' ---
+float(36.176470588235)
+--- testing: ' 123abc' / 'a5.9' ---
+float(INF)
+--- testing: '123 abc' / '0' ---
+float(INF)
+--- testing: '123 abc' / '65' ---
+float(1.8923076923077)
+--- testing: '123 abc' / '-44' ---
+float(-2.7954545454545)
+--- testing: '123 abc' / '1.2' ---
+float(102.5)
+--- testing: '123 abc' / '-7.7' ---
+float(-15.974025974026)
+--- testing: '123 abc' / 'abc' ---
+float(INF)
+--- testing: '123 abc' / '123abc' ---
+int(1)
+--- testing: '123 abc' / '123e5' ---
+float(1.0E-5)
+--- testing: '123 abc' / '123e5xyz' ---
+float(1.0E-5)
+--- testing: '123 abc' / ' 123abc' ---
+int(1)
+--- testing: '123 abc' / '123 abc' ---
+int(1)
+--- testing: '123 abc' / '123abc ' ---
+int(1)
+--- testing: '123 abc' / '3.4a' ---
+float(36.176470588235)
+--- testing: '123 abc' / 'a5.9' ---
+float(INF)
+--- testing: '123abc ' / '0' ---
+float(INF)
+--- testing: '123abc ' / '65' ---
+float(1.8923076923077)
+--- testing: '123abc ' / '-44' ---
+float(-2.7954545454545)
+--- testing: '123abc ' / '1.2' ---
+float(102.5)
+--- testing: '123abc ' / '-7.7' ---
+float(-15.974025974026)
+--- testing: '123abc ' / 'abc' ---
+float(INF)
+--- testing: '123abc ' / '123abc' ---
+int(1)
+--- testing: '123abc ' / '123e5' ---
+float(1.0E-5)
+--- testing: '123abc ' / '123e5xyz' ---
+float(1.0E-5)
+--- testing: '123abc ' / ' 123abc' ---
+int(1)
+--- testing: '123abc ' / '123 abc' ---
+int(1)
+--- testing: '123abc ' / '123abc ' ---
+int(1)
+--- testing: '123abc ' / '3.4a' ---
+float(36.176470588235)
+--- testing: '123abc ' / 'a5.9' ---
+float(INF)
+--- testing: '3.4a' / '0' ---
+float(INF)
+--- testing: '3.4a' / '65' ---
+float(0.052307692307692)
+--- testing: '3.4a' / '-44' ---
+float(-0.077272727272727)
+--- testing: '3.4a' / '1.2' ---
+float(2.8333333333333)
+--- testing: '3.4a' / '-7.7' ---
+float(-0.44155844155844)
+--- testing: '3.4a' / 'abc' ---
+float(INF)
+--- testing: '3.4a' / '123abc' ---
+float(0.027642276422764)
+--- testing: '3.4a' / '123e5' ---
+float(2.7642276422764E-7)
+--- testing: '3.4a' / '123e5xyz' ---
+float(2.7642276422764E-7)
+--- testing: '3.4a' / ' 123abc' ---
+float(0.027642276422764)
+--- testing: '3.4a' / '123 abc' ---
+float(0.027642276422764)
+--- testing: '3.4a' / '123abc ' ---
+float(0.027642276422764)
+--- testing: '3.4a' / '3.4a' ---
+float(1)
+--- testing: '3.4a' / 'a5.9' ---
+float(INF)
+--- testing: 'a5.9' / '0' ---
+float(NAN)
+--- testing: 'a5.9' / '65' ---
+int(0)
+--- testing: 'a5.9' / '-44' ---
+int(0)
+--- testing: 'a5.9' / '1.2' ---
+float(0)
+--- testing: 'a5.9' / '-7.7' ---
+float(-0)
+--- testing: 'a5.9' / 'abc' ---
+float(NAN)
+--- testing: 'a5.9' / '123abc' ---
+int(0)
+--- testing: 'a5.9' / '123e5' ---
+float(0)
+--- testing: 'a5.9' / '123e5xyz' ---
+float(0)
+--- testing: 'a5.9' / ' 123abc' ---
+int(0)
+--- testing: 'a5.9' / '123 abc' ---
+int(0)
+--- testing: 'a5.9' / '123abc ' ---
+int(0)
+--- testing: 'a5.9' / '3.4a' ---
+float(0)
+--- testing: 'a5.9' / 'a5.9' ---
+float(NAN)\r
===DONE===\r
MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
);
-$otherVals = array(1, -1, 7, 9, 65, -44, MAX_32Bit, MAX_64Bit);
+$otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MAX_64Bit);
+
+error_reporting(E_ERROR);
foreach ($longVals as $longVal) {
foreach($otherVals as $otherVal) {
}
}
-foreach (array_merge([0], $otherVals) as $otherVal) {
+foreach ($otherVals as $otherVal) {
foreach($longVals as $longVal) {
echo "--- testing: $otherVal % $longVal ---\n";
try {
?>
===DONE===
--EXPECT--
+--- testing: 9223372036854775807 % 0 ---
+Exception: Division by zero
--- testing: 9223372036854775807 % 1 ---
int(0)
--- testing: 9223372036854775807 % -1 ---
int(1)
--- testing: 9223372036854775807 % 9223372036854775807 ---
int(0)
+--- testing: -9223372036854775808 % 0 ---
+Exception: Division by zero
--- testing: -9223372036854775808 % 1 ---
int(0)
--- testing: -9223372036854775808 % -1 ---
int(-2)
--- testing: -9223372036854775808 % 9223372036854775807 ---
int(-1)
+--- testing: 2147483647 % 0 ---
+Exception: Division by zero
--- testing: 2147483647 % 1 ---
int(0)
--- testing: 2147483647 % -1 ---
int(0)
--- testing: 2147483647 % 9223372036854775807 ---
int(2147483647)
+--- testing: -2147483648 % 0 ---
+Exception: Division by zero
--- testing: -2147483648 % 1 ---
int(0)
--- testing: -2147483648 % -1 ---
int(-1)
--- testing: -2147483648 % 9223372036854775807 ---
int(-2147483648)
+--- testing: 9223372034707292160 % 0 ---
+Exception: Division by zero
--- testing: 9223372034707292160 % 1 ---
int(0)
--- testing: 9223372034707292160 % -1 ---
int(1)
--- testing: 9223372034707292160 % 9223372036854775807 ---
int(9223372034707292160)
+--- testing: -9223372034707292160 % 0 ---
+Exception: Division by zero
--- testing: -9223372034707292160 % 1 ---
int(0)
--- testing: -9223372034707292160 % -1 ---
int(-1)
--- testing: -9223372034707292160 % 9223372036854775807 ---
int(-9223372034707292160)
+--- testing: 2147483648 % 0 ---
+Exception: Division by zero
--- testing: 2147483648 % 1 ---
int(0)
--- testing: 2147483648 % -1 ---
int(1)
--- testing: 2147483648 % 9223372036854775807 ---
int(2147483648)
+--- testing: -2147483649 % 0 ---
+Exception: Division by zero
--- testing: -2147483649 % 1 ---
int(0)
--- testing: -2147483649 % -1 ---
int(-2)
--- testing: -2147483649 % 9223372036854775807 ---
int(-2147483649)
+--- testing: 4294967294 % 0 ---
+Exception: Division by zero
--- testing: 4294967294 % 1 ---
int(0)
--- testing: 4294967294 % -1 ---
int(0)
--- testing: 4294967294 % 9223372036854775807 ---
int(4294967294)
+--- testing: 4294967295 % 0 ---
+Exception: Division by zero
--- testing: 4294967295 % 1 ---
int(0)
--- testing: 4294967295 % -1 ---
int(1)
--- testing: 4294967295 % 9223372036854775807 ---
int(4294967295)
+--- testing: 4294967293 % 0 ---
+Exception: Division by zero
--- testing: 4294967293 % 1 ---
int(0)
--- testing: 4294967293 % -1 ---
int(2147483646)
--- testing: 4294967293 % 9223372036854775807 ---
int(4294967293)
+--- testing: 9223372036854775806 % 0 ---
+Exception: Division by zero
--- testing: 9223372036854775806 % 1 ---
int(0)
--- testing: 9223372036854775806 % -1 ---
int(0)
--- testing: 9223372036854775806 % 9223372036854775807 ---
int(9223372036854775806)
+--- testing: 9.2233720368548E+18 % 0 ---
+Exception: Division by zero
--- testing: 9.2233720368548E+18 % 1 ---
int(0)
--- testing: 9.2233720368548E+18 % -1 ---
int(-2)
--- testing: 9.2233720368548E+18 % 9223372036854775807 ---
int(-1)
+--- testing: -9223372036854775807 % 0 ---
+Exception: Division by zero
--- testing: -9223372036854775807 % 1 ---
int(0)
--- testing: -9223372036854775807 % -1 ---
int(-1)
--- testing: -9223372036854775807 % 9223372036854775807 ---
int(0)
+--- testing: -9.2233720368548E+18 % 0 ---
+Exception: Division by zero
--- testing: -9.2233720368548E+18 % 1 ---
int(0)
--- testing: -9.2233720368548E+18 % -1 ---
--FILE--\r
<?php\r
\r
-$strVals = ["65", "-44", "1.2", "-7.7", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a"];\r
+$strVals = array(\r
+ "0","65","-44", "1.2", "-7.7", "abc", "123abc", "123e5", "123e5xyz", " 123abc", "123 abc", "123abc ", "3.4a",\r
+ "a5.9"\r
+);\r
\r
error_reporting(E_ERROR);\r
\r
-foreach (array_merge(["0", "abc"], $strVals) as $strVal) {\r
+foreach ($strVals as $strVal) {\r
foreach($strVals as $otherVal) {\r
echo "--- testing: '$strVal' % '$otherVal' ---\n";\r
try {\r
?>\r
===DONE===\r
--EXPECT--\r
---- testing: '0' % '65' ---\r
-int(0)\r
---- testing: '0' % '-44' ---\r
-int(0)\r
---- testing: '0' % '1.2' ---\r
-int(0)\r
---- testing: '0' % '-7.7' ---\r
-int(0)\r
---- testing: '0' % '123abc' ---\r
-int(0)\r
---- testing: '0' % '123e5' ---\r
-int(0)\r
---- testing: '0' % '123e5xyz' ---\r
-int(0)\r
---- testing: '0' % ' 123abc' ---\r
-int(0)\r
---- testing: '0' % '123 abc' ---\r
-int(0)\r
---- testing: '0' % '123abc ' ---\r
-int(0)\r
---- testing: '0' % '3.4a' ---\r
-int(0)\r
---- testing: 'abc' % '65' ---\r
-int(0)\r
---- testing: 'abc' % '-44' ---\r
-int(0)\r
---- testing: 'abc' % '1.2' ---\r
-int(0)\r
---- testing: 'abc' % '-7.7' ---\r
-int(0)\r
---- testing: 'abc' % '123abc' ---\r
-int(0)\r
---- testing: 'abc' % '123e5' ---\r
-int(0)\r
---- testing: 'abc' % '123e5xyz' ---\r
-int(0)\r
---- testing: 'abc' % ' 123abc' ---\r
-int(0)\r
---- testing: 'abc' % '123 abc' ---\r
-int(0)\r
---- testing: 'abc' % '123abc ' ---\r
-int(0)\r
---- testing: 'abc' % '3.4a' ---\r
-int(0)\r
---- testing: '65' % '65' ---\r
-int(0)\r
---- testing: '65' % '-44' ---\r
-int(21)\r
---- testing: '65' % '1.2' ---\r
-int(0)\r
---- testing: '65' % '-7.7' ---\r
-int(2)\r
---- testing: '65' % '123abc' ---\r
-int(65)\r
---- testing: '65' % '123e5' ---\r
-int(65)\r
---- testing: '65' % '123e5xyz' ---\r
-int(65)\r
---- testing: '65' % ' 123abc' ---\r
-int(65)\r
---- testing: '65' % '123 abc' ---\r
-int(65)\r
---- testing: '65' % '123abc ' ---\r
-int(65)\r
---- testing: '65' % '3.4a' ---\r
-int(2)\r
---- testing: '-44' % '65' ---\r
-int(-44)\r
---- testing: '-44' % '-44' ---\r
-int(0)\r
---- testing: '-44' % '1.2' ---\r
-int(0)\r
---- testing: '-44' % '-7.7' ---\r
-int(-2)\r
---- testing: '-44' % '123abc' ---\r
-int(-44)\r
---- testing: '-44' % '123e5' ---\r
-int(-44)\r
---- testing: '-44' % '123e5xyz' ---\r
-int(-44)\r
---- testing: '-44' % ' 123abc' ---\r
-int(-44)\r
---- testing: '-44' % '123 abc' ---\r
-int(-44)\r
---- testing: '-44' % '123abc ' ---\r
-int(-44)\r
---- testing: '-44' % '3.4a' ---\r
-int(-2)\r
---- testing: '1.2' % '65' ---\r
-int(1)\r
---- testing: '1.2' % '-44' ---\r
-int(1)\r
---- testing: '1.2' % '1.2' ---\r
-int(0)\r
---- testing: '1.2' % '-7.7' ---\r
-int(1)\r
---- testing: '1.2' % '123abc' ---\r
-int(1)\r
---- testing: '1.2' % '123e5' ---\r
-int(1)\r
---- testing: '1.2' % '123e5xyz' ---\r
-int(1)\r
---- testing: '1.2' % ' 123abc' ---\r
-int(1)\r
---- testing: '1.2' % '123 abc' ---\r
-int(1)\r
---- testing: '1.2' % '123abc ' ---\r
-int(1)\r
---- testing: '1.2' % '3.4a' ---\r
-int(1)\r
---- testing: '-7.7' % '65' ---\r
-int(-7)\r
---- testing: '-7.7' % '-44' ---\r
-int(-7)\r
---- testing: '-7.7' % '1.2' ---\r
-int(0)\r
---- testing: '-7.7' % '-7.7' ---\r
-int(0)\r
---- testing: '-7.7' % '123abc' ---\r
-int(-7)\r
---- testing: '-7.7' % '123e5' ---\r
-int(-7)\r
---- testing: '-7.7' % '123e5xyz' ---\r
-int(-7)\r
---- testing: '-7.7' % ' 123abc' ---\r
-int(-7)\r
---- testing: '-7.7' % '123 abc' ---\r
-int(-7)\r
---- testing: '-7.7' % '123abc ' ---\r
-int(-7)\r
---- testing: '-7.7' % '3.4a' ---\r
-int(-1)\r
---- testing: '123abc' % '65' ---\r
-int(58)\r
---- testing: '123abc' % '-44' ---\r
-int(35)\r
---- testing: '123abc' % '1.2' ---\r
-int(0)\r
---- testing: '123abc' % '-7.7' ---\r
-int(4)\r
---- testing: '123abc' % '123abc' ---\r
-int(0)\r
---- testing: '123abc' % '123e5' ---\r
-int(0)\r
---- testing: '123abc' % '123e5xyz' ---\r
-int(0)\r
---- testing: '123abc' % ' 123abc' ---\r
-int(0)\r
---- testing: '123abc' % '123 abc' ---\r
-int(0)\r
---- testing: '123abc' % '123abc ' ---\r
-int(0)\r
---- testing: '123abc' % '3.4a' ---\r
-int(0)\r
---- testing: '123e5' % '65' ---\r
-int(58)\r
---- testing: '123e5' % '-44' ---\r
-int(35)\r
---- testing: '123e5' % '1.2' ---\r
-int(0)\r
---- testing: '123e5' % '-7.7' ---\r
-int(4)\r
---- testing: '123e5' % '123abc' ---\r
-int(0)\r
---- testing: '123e5' % '123e5' ---\r
-int(0)\r
---- testing: '123e5' % '123e5xyz' ---\r
-int(0)\r
---- testing: '123e5' % ' 123abc' ---\r
-int(0)\r
---- testing: '123e5' % '123 abc' ---\r
-int(0)\r
---- testing: '123e5' % '123abc ' ---\r
-int(0)\r
---- testing: '123e5' % '3.4a' ---\r
-int(0)\r
---- testing: '123e5xyz' % '65' ---\r
-int(58)\r
---- testing: '123e5xyz' % '-44' ---\r
-int(35)\r
---- testing: '123e5xyz' % '1.2' ---\r
-int(0)\r
---- testing: '123e5xyz' % '-7.7' ---\r
-int(4)\r
---- testing: '123e5xyz' % '123abc' ---\r
-int(0)\r
---- testing: '123e5xyz' % '123e5' ---\r
-int(0)\r
---- testing: '123e5xyz' % '123e5xyz' ---\r
-int(0)\r
---- testing: '123e5xyz' % ' 123abc' ---\r
-int(0)\r
---- testing: '123e5xyz' % '123 abc' ---\r
-int(0)\r
---- testing: '123e5xyz' % '123abc ' ---\r
-int(0)\r
---- testing: '123e5xyz' % '3.4a' ---\r
-int(0)\r
---- testing: ' 123abc' % '65' ---\r
-int(58)\r
---- testing: ' 123abc' % '-44' ---\r
-int(35)\r
---- testing: ' 123abc' % '1.2' ---\r
-int(0)\r
---- testing: ' 123abc' % '-7.7' ---\r
-int(4)\r
---- testing: ' 123abc' % '123abc' ---\r
-int(0)\r
---- testing: ' 123abc' % '123e5' ---\r
-int(0)\r
---- testing: ' 123abc' % '123e5xyz' ---\r
-int(0)\r
---- testing: ' 123abc' % ' 123abc' ---\r
-int(0)\r
---- testing: ' 123abc' % '123 abc' ---\r
-int(0)\r
---- testing: ' 123abc' % '123abc ' ---\r
-int(0)\r
---- testing: ' 123abc' % '3.4a' ---\r
-int(0)\r
---- testing: '123 abc' % '65' ---\r
-int(58)\r
---- testing: '123 abc' % '-44' ---\r
-int(35)\r
---- testing: '123 abc' % '1.2' ---\r
-int(0)\r
---- testing: '123 abc' % '-7.7' ---\r
-int(4)\r
---- testing: '123 abc' % '123abc' ---\r
-int(0)\r
---- testing: '123 abc' % '123e5' ---\r
-int(0)\r
---- testing: '123 abc' % '123e5xyz' ---\r
-int(0)\r
---- testing: '123 abc' % ' 123abc' ---\r
-int(0)\r
---- testing: '123 abc' % '123 abc' ---\r
-int(0)\r
---- testing: '123 abc' % '123abc ' ---\r
-int(0)\r
---- testing: '123 abc' % '3.4a' ---\r
-int(0)\r
---- testing: '123abc ' % '65' ---\r
-int(58)\r
---- testing: '123abc ' % '-44' ---\r
-int(35)\r
---- testing: '123abc ' % '1.2' ---\r
-int(0)\r
---- testing: '123abc ' % '-7.7' ---\r
-int(4)\r
---- testing: '123abc ' % '123abc' ---\r
-int(0)\r
---- testing: '123abc ' % '123e5' ---\r
-int(0)\r
---- testing: '123abc ' % '123e5xyz' ---\r
-int(0)\r
---- testing: '123abc ' % ' 123abc' ---\r
-int(0)\r
---- testing: '123abc ' % '123 abc' ---\r
-int(0)\r
---- testing: '123abc ' % '123abc ' ---\r
-int(0)\r
---- testing: '123abc ' % '3.4a' ---\r
-int(0)\r
---- testing: '3.4a' % '65' ---\r
-int(3)\r
---- testing: '3.4a' % '-44' ---\r
-int(3)\r
---- testing: '3.4a' % '1.2' ---\r
-int(0)\r
---- testing: '3.4a' % '-7.7' ---\r
-int(3)\r
---- testing: '3.4a' % '123abc' ---\r
-int(3)\r
---- testing: '3.4a' % '123e5' ---\r
-int(3)\r
---- testing: '3.4a' % '123e5xyz' ---\r
-int(3)\r
---- testing: '3.4a' % ' 123abc' ---\r
-int(3)\r
---- testing: '3.4a' % '123 abc' ---\r
-int(3)\r
---- testing: '3.4a' % '123abc ' ---\r
-int(3)\r
---- testing: '3.4a' % '3.4a' ---\r
-int(0)\r
+--- testing: '0' % '0' ---
+Exception: Division by zero
+--- testing: '0' % '65' ---
+int(0)
+--- testing: '0' % '-44' ---
+int(0)
+--- testing: '0' % '1.2' ---
+int(0)
+--- testing: '0' % '-7.7' ---
+int(0)
+--- testing: '0' % 'abc' ---
+Exception: Division by zero
+--- testing: '0' % '123abc' ---
+int(0)
+--- testing: '0' % '123e5' ---
+int(0)
+--- testing: '0' % '123e5xyz' ---
+int(0)
+--- testing: '0' % ' 123abc' ---
+int(0)
+--- testing: '0' % '123 abc' ---
+int(0)
+--- testing: '0' % '123abc ' ---
+int(0)
+--- testing: '0' % '3.4a' ---
+int(0)
+--- testing: '0' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '65' % '0' ---
+Exception: Division by zero
+--- testing: '65' % '65' ---
+int(0)
+--- testing: '65' % '-44' ---
+int(21)
+--- testing: '65' % '1.2' ---
+int(0)
+--- testing: '65' % '-7.7' ---
+int(2)
+--- testing: '65' % 'abc' ---
+Exception: Division by zero
+--- testing: '65' % '123abc' ---
+int(65)
+--- testing: '65' % '123e5' ---
+int(65)
+--- testing: '65' % '123e5xyz' ---
+int(65)
+--- testing: '65' % ' 123abc' ---
+int(65)
+--- testing: '65' % '123 abc' ---
+int(65)
+--- testing: '65' % '123abc ' ---
+int(65)
+--- testing: '65' % '3.4a' ---
+int(2)
+--- testing: '65' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '-44' % '0' ---
+Exception: Division by zero
+--- testing: '-44' % '65' ---
+int(-44)
+--- testing: '-44' % '-44' ---
+int(0)
+--- testing: '-44' % '1.2' ---
+int(0)
+--- testing: '-44' % '-7.7' ---
+int(-2)
+--- testing: '-44' % 'abc' ---
+Exception: Division by zero
+--- testing: '-44' % '123abc' ---
+int(-44)
+--- testing: '-44' % '123e5' ---
+int(-44)
+--- testing: '-44' % '123e5xyz' ---
+int(-44)
+--- testing: '-44' % ' 123abc' ---
+int(-44)
+--- testing: '-44' % '123 abc' ---
+int(-44)
+--- testing: '-44' % '123abc ' ---
+int(-44)
+--- testing: '-44' % '3.4a' ---
+int(-2)
+--- testing: '-44' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '1.2' % '0' ---
+Exception: Division by zero
+--- testing: '1.2' % '65' ---
+int(1)
+--- testing: '1.2' % '-44' ---
+int(1)
+--- testing: '1.2' % '1.2' ---
+int(0)
+--- testing: '1.2' % '-7.7' ---
+int(1)
+--- testing: '1.2' % 'abc' ---
+Exception: Division by zero
+--- testing: '1.2' % '123abc' ---
+int(1)
+--- testing: '1.2' % '123e5' ---
+int(1)
+--- testing: '1.2' % '123e5xyz' ---
+int(1)
+--- testing: '1.2' % ' 123abc' ---
+int(1)
+--- testing: '1.2' % '123 abc' ---
+int(1)
+--- testing: '1.2' % '123abc ' ---
+int(1)
+--- testing: '1.2' % '3.4a' ---
+int(1)
+--- testing: '1.2' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '-7.7' % '0' ---
+Exception: Division by zero
+--- testing: '-7.7' % '65' ---
+int(-7)
+--- testing: '-7.7' % '-44' ---
+int(-7)
+--- testing: '-7.7' % '1.2' ---
+int(0)
+--- testing: '-7.7' % '-7.7' ---
+int(0)
+--- testing: '-7.7' % 'abc' ---
+Exception: Division by zero
+--- testing: '-7.7' % '123abc' ---
+int(-7)
+--- testing: '-7.7' % '123e5' ---
+int(-7)
+--- testing: '-7.7' % '123e5xyz' ---
+int(-7)
+--- testing: '-7.7' % ' 123abc' ---
+int(-7)
+--- testing: '-7.7' % '123 abc' ---
+int(-7)
+--- testing: '-7.7' % '123abc ' ---
+int(-7)
+--- testing: '-7.7' % '3.4a' ---
+int(-1)
+--- testing: '-7.7' % 'a5.9' ---
+Exception: Division by zero
+--- testing: 'abc' % '0' ---
+Exception: Division by zero
+--- testing: 'abc' % '65' ---
+int(0)
+--- testing: 'abc' % '-44' ---
+int(0)
+--- testing: 'abc' % '1.2' ---
+int(0)
+--- testing: 'abc' % '-7.7' ---
+int(0)
+--- testing: 'abc' % 'abc' ---
+Exception: Division by zero
+--- testing: 'abc' % '123abc' ---
+int(0)
+--- testing: 'abc' % '123e5' ---
+int(0)
+--- testing: 'abc' % '123e5xyz' ---
+int(0)
+--- testing: 'abc' % ' 123abc' ---
+int(0)
+--- testing: 'abc' % '123 abc' ---
+int(0)
+--- testing: 'abc' % '123abc ' ---
+int(0)
+--- testing: 'abc' % '3.4a' ---
+int(0)
+--- testing: 'abc' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '123abc' % '0' ---
+Exception: Division by zero
+--- testing: '123abc' % '65' ---
+int(58)
+--- testing: '123abc' % '-44' ---
+int(35)
+--- testing: '123abc' % '1.2' ---
+int(0)
+--- testing: '123abc' % '-7.7' ---
+int(4)
+--- testing: '123abc' % 'abc' ---
+Exception: Division by zero
+--- testing: '123abc' % '123abc' ---
+int(0)
+--- testing: '123abc' % '123e5' ---
+int(0)
+--- testing: '123abc' % '123e5xyz' ---
+int(0)
+--- testing: '123abc' % ' 123abc' ---
+int(0)
+--- testing: '123abc' % '123 abc' ---
+int(0)
+--- testing: '123abc' % '123abc ' ---
+int(0)
+--- testing: '123abc' % '3.4a' ---
+int(0)
+--- testing: '123abc' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '123e5' % '0' ---
+Exception: Division by zero
+--- testing: '123e5' % '65' ---
+int(58)
+--- testing: '123e5' % '-44' ---
+int(35)
+--- testing: '123e5' % '1.2' ---
+int(0)
+--- testing: '123e5' % '-7.7' ---
+int(4)
+--- testing: '123e5' % 'abc' ---
+Exception: Division by zero
+--- testing: '123e5' % '123abc' ---
+int(0)
+--- testing: '123e5' % '123e5' ---
+int(0)
+--- testing: '123e5' % '123e5xyz' ---
+int(0)
+--- testing: '123e5' % ' 123abc' ---
+int(0)
+--- testing: '123e5' % '123 abc' ---
+int(0)
+--- testing: '123e5' % '123abc ' ---
+int(0)
+--- testing: '123e5' % '3.4a' ---
+int(0)
+--- testing: '123e5' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '123e5xyz' % '0' ---
+Exception: Division by zero
+--- testing: '123e5xyz' % '65' ---
+int(58)
+--- testing: '123e5xyz' % '-44' ---
+int(35)
+--- testing: '123e5xyz' % '1.2' ---
+int(0)
+--- testing: '123e5xyz' % '-7.7' ---
+int(4)
+--- testing: '123e5xyz' % 'abc' ---
+Exception: Division by zero
+--- testing: '123e5xyz' % '123abc' ---
+int(0)
+--- testing: '123e5xyz' % '123e5' ---
+int(0)
+--- testing: '123e5xyz' % '123e5xyz' ---
+int(0)
+--- testing: '123e5xyz' % ' 123abc' ---
+int(0)
+--- testing: '123e5xyz' % '123 abc' ---
+int(0)
+--- testing: '123e5xyz' % '123abc ' ---
+int(0)
+--- testing: '123e5xyz' % '3.4a' ---
+int(0)
+--- testing: '123e5xyz' % 'a5.9' ---
+Exception: Division by zero
+--- testing: ' 123abc' % '0' ---
+Exception: Division by zero
+--- testing: ' 123abc' % '65' ---
+int(58)
+--- testing: ' 123abc' % '-44' ---
+int(35)
+--- testing: ' 123abc' % '1.2' ---
+int(0)
+--- testing: ' 123abc' % '-7.7' ---
+int(4)
+--- testing: ' 123abc' % 'abc' ---
+Exception: Division by zero
+--- testing: ' 123abc' % '123abc' ---
+int(0)
+--- testing: ' 123abc' % '123e5' ---
+int(0)
+--- testing: ' 123abc' % '123e5xyz' ---
+int(0)
+--- testing: ' 123abc' % ' 123abc' ---
+int(0)
+--- testing: ' 123abc' % '123 abc' ---
+int(0)
+--- testing: ' 123abc' % '123abc ' ---
+int(0)
+--- testing: ' 123abc' % '3.4a' ---
+int(0)
+--- testing: ' 123abc' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '123 abc' % '0' ---
+Exception: Division by zero
+--- testing: '123 abc' % '65' ---
+int(58)
+--- testing: '123 abc' % '-44' ---
+int(35)
+--- testing: '123 abc' % '1.2' ---
+int(0)
+--- testing: '123 abc' % '-7.7' ---
+int(4)
+--- testing: '123 abc' % 'abc' ---
+Exception: Division by zero
+--- testing: '123 abc' % '123abc' ---
+int(0)
+--- testing: '123 abc' % '123e5' ---
+int(0)
+--- testing: '123 abc' % '123e5xyz' ---
+int(0)
+--- testing: '123 abc' % ' 123abc' ---
+int(0)
+--- testing: '123 abc' % '123 abc' ---
+int(0)
+--- testing: '123 abc' % '123abc ' ---
+int(0)
+--- testing: '123 abc' % '3.4a' ---
+int(0)
+--- testing: '123 abc' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '123abc ' % '0' ---
+Exception: Division by zero
+--- testing: '123abc ' % '65' ---
+int(58)
+--- testing: '123abc ' % '-44' ---
+int(35)
+--- testing: '123abc ' % '1.2' ---
+int(0)
+--- testing: '123abc ' % '-7.7' ---
+int(4)
+--- testing: '123abc ' % 'abc' ---
+Exception: Division by zero
+--- testing: '123abc ' % '123abc' ---
+int(0)
+--- testing: '123abc ' % '123e5' ---
+int(0)
+--- testing: '123abc ' % '123e5xyz' ---
+int(0)
+--- testing: '123abc ' % ' 123abc' ---
+int(0)
+--- testing: '123abc ' % '123 abc' ---
+int(0)
+--- testing: '123abc ' % '123abc ' ---
+int(0)
+--- testing: '123abc ' % '3.4a' ---
+int(0)
+--- testing: '123abc ' % 'a5.9' ---
+Exception: Division by zero
+--- testing: '3.4a' % '0' ---
+Exception: Division by zero
+--- testing: '3.4a' % '65' ---
+int(3)
+--- testing: '3.4a' % '-44' ---
+int(3)
+--- testing: '3.4a' % '1.2' ---
+int(0)
+--- testing: '3.4a' % '-7.7' ---
+int(3)
+--- testing: '3.4a' % 'abc' ---
+Exception: Division by zero
+--- testing: '3.4a' % '123abc' ---
+int(3)
+--- testing: '3.4a' % '123e5' ---
+int(3)
+--- testing: '3.4a' % '123e5xyz' ---
+int(3)
+--- testing: '3.4a' % ' 123abc' ---
+int(3)
+--- testing: '3.4a' % '123 abc' ---
+int(3)
+--- testing: '3.4a' % '123abc ' ---
+int(3)
+--- testing: '3.4a' % '3.4a' ---
+int(0)
+--- testing: '3.4a' % 'a5.9' ---
+Exception: Division by zero
+--- testing: 'a5.9' % '0' ---
+Exception: Division by zero
+--- testing: 'a5.9' % '65' ---
+int(0)
+--- testing: 'a5.9' % '-44' ---
+int(0)
+--- testing: 'a5.9' % '1.2' ---
+int(0)
+--- testing: 'a5.9' % '-7.7' ---
+int(0)
+--- testing: 'a5.9' % 'abc' ---
+Exception: Division by zero
+--- testing: 'a5.9' % '123abc' ---
+int(0)
+--- testing: 'a5.9' % '123e5' ---
+int(0)
+--- testing: 'a5.9' % '123e5xyz' ---
+int(0)
+--- testing: 'a5.9' % ' 123abc' ---
+int(0)
+--- testing: 'a5.9' % '123 abc' ---
+int(0)
+--- testing: 'a5.9' % '123abc ' ---
+int(0)
+--- testing: 'a5.9' % '3.4a' ---
+int(0)
+--- testing: 'a5.9' % 'a5.9' ---
+Exception: Division by zero\r
===DONE===\r
ini_set('display_errors', 0);
var_dump(ini_get('display_errors'));
var_dump($php_errormsg);
-ini_set("zend.assertions", -1);
+$zero = 0;
+$error = 1 / $zero;
var_dump($php_errormsg);
?>
--EXPECTF--
string(1) "1"
string(1) "0"
NULL
-string(%d) "%senabled or disabled%s"
+string(%d) "%sivision by zer%s"
ini_set('display_errors', 0);
var_dump(ini_get('display_errors'));
var_dump($php_errormsg);
-ini_set("zend.assertions", -1);
+$zero = 0;
+$error = 1 / $zero;
var_dump($php_errormsg);
?>
--EXPECTF--
string(1) "1"
string(1) "0"
NULL
-string(%d) "%senabled or disabled%s"
+string(%d) "%sivision by zer%s"