diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index a4283a4ac9464..cdb876f034ad8 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -8,164 +8,83 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- getMessage(), "\n"; } - $iterator++; -}; +} fclose($fp); + ?> --EXPECTF-- -*** Testing pow() : usage variations *** - --- Iteration 1 -- int(0) - --- Iteration 2 -- int(1) - --- Iteration 3 -- float(1881365963625) - --- Iteration 4 -- float(-12895213625) - --- Iteration 5 -- float(9.903520300448E+27) - --- Iteration 6 -- float(1157.625) - --- Iteration 7 -- float(-1157.625) - --- Iteration 8 -- float(1.881676371789%dE+33) - --- Iteration 9 -- float(1.881676371789%dE-27) - --- Iteration 10 -- float(0.125) - --- Iteration 11 -- int(0) - --- Iteration 12 -- -int(0) - --- Iteration 13 -- -int(1) - --- Iteration 14 -- -int(0) - --- Iteration 15 -- int(1) - --- Iteration 16 -- int(0) - --- Iteration 17 -- Unsupported operand types: string ** int - --- Iteration 18 -- -Unsupported operand types: string ** int - --- Iteration 19 -- Unsupported operand types: array ** int - --- Iteration 20 -- -Unsupported operand types: string ** int - --- Iteration 21 -- Unsupported operand types: string ** int - --- Iteration 22 -- -Unsupported operand types: string ** int - --- Iteration 23 -- +float(166.375) +int(8) +float(0.000250047) Unsupported operand types: classA ** int - --- Iteration 24 -- -int(0) - --- Iteration 25 -- -int(0) - --- Iteration 26 -- Unsupported operand types: resource ** int diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index 5869e905f067c..debc8b16d2b03 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -8,164 +8,81 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?> --FILE-- getMessage(), "\n"; } - $iterator++; -}; +} fclose($fp); ?> --EXPECT-- -*** Testing pow() : usage variations *** - --- Iteration 1 -- int(0) - --- Iteration 2 -- int(1) - --- Iteration 3 -- int(1881365963625) - --- Iteration 4 -- int(-12895213625) - --- Iteration 5 -- float(7.846377169233351E+56) - --- Iteration 6 -- float(1157.625) - --- Iteration 7 -- float(-1157.625) - --- Iteration 8 -- float(1.8816763717891549E+33) - --- Iteration 9 -- float(1.8816763717891545E-27) - --- Iteration 10 -- float(0.125) - --- Iteration 11 -- int(0) - --- Iteration 12 -- -int(0) - --- Iteration 13 -- -int(1) - --- Iteration 14 -- -int(0) - --- Iteration 15 -- int(1) - --- Iteration 16 -- int(0) - --- Iteration 17 -- Unsupported operand types: string ** int - --- Iteration 18 -- -Unsupported operand types: string ** int - --- Iteration 19 -- Unsupported operand types: array ** int - --- Iteration 20 -- -Unsupported operand types: string ** int - --- Iteration 21 -- Unsupported operand types: string ** int - --- Iteration 22 -- -Unsupported operand types: string ** int - --- Iteration 23 -- +float(1157.625) +int(8) +float(0.000250047) Unsupported operand types: classA ** int - --- Iteration 24 -- -int(0) - --- Iteration 25 -- -int(0) - --- Iteration 26 -- Unsupported operand types: resource ** int diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index 9351dbd4ce738..47a4845faade4 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -4,164 +4,81 @@ Test pow() function : usage variations - different data types as $exp argument serialize_precision = 14 --FILE-- getMessage(), "\n"; } - $iterator++; -}; +} fclose($fp); ?> --EXPECT-- -*** Testing pow() : usage variations *** - --- Iteration 1 -- float(1) - --- Iteration 2 -- float(20.3) - --- Iteration 3 -- float(INF) - --- Iteration 4 -- float(0) - --- Iteration 5 -- float(INF) - --- Iteration 6 -- float(1856.6929774279) - --- Iteration 7 -- float(0.00053859200856424) - --- Iteration 8 -- float(INF) - --- Iteration 9 -- float(1.0000000037168) - --- Iteration 10 -- float(4.5055521304275) - --- Iteration 11 -- float(1) - --- Iteration 12 -- -float(1) - --- Iteration 13 -- -float(20.3) - --- Iteration 14 -- -float(1) - --- Iteration 15 -- float(20.3) - --- Iteration 16 -- float(1) - --- Iteration 17 -- Unsupported operand types: float ** string - --- Iteration 18 -- -Unsupported operand types: float ** string - --- Iteration 19 -- Unsupported operand types: float ** array - --- Iteration 20 -- -Unsupported operand types: float ** string - --- Iteration 21 -- Unsupported operand types: float ** string - --- Iteration 22 -- -Unsupported operand types: float ** string - --- Iteration 23 -- +float(15532029.564086) +float(412.09) +float(1.2088495422866) Unsupported operand types: float ** classA - --- Iteration 24 -- -float(1) - --- Iteration 25 -- -float(1) - --- Iteration 26 -- Unsupported operand types: float ** resource