From 0662b8e16d6e4dbd54af68393d3a2e98f1476796 Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Fri, 22 Dec 2023 23:24:18 +0100 Subject: [PATCH 1/8] Improve pow() tests --- ext/standard/tests/math/pow_variation1.phpt | 2 ++ .../tests/math/pow_variation1_64bit.phpt | 14 +++++++++++--- ext/standard/tests/math/pow_variation2.phpt | 16 ++++++++++++---- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index a4283a4ac9464..bfb38431cd9e8 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -62,6 +62,8 @@ $inputs = array( /*20*/ "abcxyz", 'abcxyz', $heredoc, + '10.5', + '2', // object data /*23*/ new classA(), diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index 5869e905f067c..06156da99127f 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -62,6 +62,8 @@ $inputs = array( /*20*/ "abcxyz", 'abcxyz', $heredoc, + '10.5', + '2', // object data /*23*/ new classA(), @@ -159,13 +161,19 @@ Unsupported operand types: string ** int Unsupported operand types: string ** int -- Iteration 23 -- -Unsupported operand types: classA ** int +float(1157.625) -- Iteration 24 -- -int(0) +int(8) -- Iteration 25 -- -int(0) +Unsupported operand types: classA ** int -- Iteration 26 -- +int(0) + +-- Iteration 27 -- +int(0) + +-- Iteration 28 -- 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..a7443e42eaec8 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -30,7 +30,7 @@ $inputs = array( 1, 12345, -2345, - 2147483647, + PHP_INT_MAX, // float data /*6*/ 2.5, @@ -58,6 +58,8 @@ $inputs = array( /*20*/ "abcxyz", 'abcxyz', $heredoc, + '10.5', + '2', // object data /*23*/ new classA(), @@ -155,13 +157,19 @@ Unsupported operand types: float ** string Unsupported operand types: float ** string -- Iteration 23 -- -Unsupported operand types: float ** classA +float(53543702391195) -- Iteration 24 -- -float(1) +float(412.09) -- Iteration 25 -- -float(1) +Unsupported operand types: float ** classA -- Iteration 26 -- +float(1) + +-- Iteration 27 -- +float(1) + +-- Iteration 28 -- Unsupported operand types: float ** resource From 18bc695f8d1691bad54dfe876b086ed38568ff7c Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Fri, 22 Dec 2023 23:27:32 +0100 Subject: [PATCH 2/8] Change the exponent for float string in tests --- ext/standard/tests/math/pow_variation1.phpt | 16 +++++++++++----- ext/standard/tests/math/pow_variation2.phpt | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index bfb38431cd9e8..08afaecb6cb2f 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -62,7 +62,7 @@ $inputs = array( /*20*/ "abcxyz", 'abcxyz', $heredoc, - '10.5', + '5.5', '2', // object data @@ -161,13 +161,19 @@ Unsupported operand types: string ** int Unsupported operand types: string ** int -- Iteration 23 -- -Unsupported operand types: classA ** int +float(15532029.564086) -- Iteration 24 -- -int(0) +float(412.09) -- Iteration 25 -- -int(0) +Unsupported operand types: float ** classA -- Iteration 26 -- -Unsupported operand types: resource ** int +float(1) + +-- Iteration 27 -- +float(1) + +-- Iteration 28 -- +Unsupported operand types: float ** resource diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index a7443e42eaec8..438fb12cb204c 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -58,7 +58,7 @@ $inputs = array( /*20*/ "abcxyz", 'abcxyz', $heredoc, - '10.5', + '5.5', '2', // object data @@ -157,7 +157,7 @@ Unsupported operand types: float ** string Unsupported operand types: float ** string -- Iteration 23 -- -float(53543702391195) +float(15532029.564086) -- Iteration 24 -- float(412.09) From fdbf780fdba3dc97b32b8015ecbe99fe30bcccbd Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Sat, 23 Dec 2023 15:45:25 +0100 Subject: [PATCH 3/8] Changed the enumeration of test cases in tests --- ext/standard/tests/math/pow_variation1.phpt | 8 ++++---- ext/standard/tests/math/pow_variation1_64bit.phpt | 8 ++++---- ext/standard/tests/math/pow_variation2.phpt | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index 08afaecb6cb2f..5311e4377919c 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -66,16 +66,16 @@ $inputs = array( '2', // object data -/*23*/ new classA(), +/*25*/ new classA(), // undefined data -/*24*/ @$undefined_var, +/*26*/ @$undefined_var, // unset data -/*25*/ @$unset_var, +/*27*/ @$unset_var, // resource variable -/*26*/ $fp +/*28*/ $fp ); // loop through each element of $inputs to check the behaviour of pow() diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index 06156da99127f..3cc26a174d6fd 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -66,16 +66,16 @@ $inputs = array( '2', // object data -/*23*/ new classA(), +/*25*/ new classA(), // undefined data -/*24*/ @$undefined_var, +/*26*/ @$undefined_var, // unset data -/*25*/ @$unset_var, +/*27*/ @$unset_var, // resource variable -/*26*/ $fp +/*28*/ $fp ); // loop through each element of $inputs to check the behaviour of pow() diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index 438fb12cb204c..46594d419a42e 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -62,16 +62,16 @@ $inputs = array( '2', // object data -/*23*/ new classA(), +/*25*/ new classA(), // undefined data -/*24*/ @$undefined_var, +/*26*/ @$undefined_var, // unset data -/*25*/ @$unset_var, +/*27*/ @$unset_var, // resource variable -/*26*/ $fp +/*28*/ $fp ); // loop through each element of $inputs to check the behaviour of pow() From 0c245d962150f4056f240940e90534917e49dbd0 Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Sat, 23 Dec 2023 18:08:53 +0100 Subject: [PATCH 4/8] pow() tests content beautified --- ext/standard/tests/math/pow_variation1.phpt | 105 +++++++++--------- .../tests/math/pow_variation1_64bit.phpt | 104 ++++++++--------- ext/standard/tests/math/pow_variation2.phpt | 104 ++++++++--------- 3 files changed, 157 insertions(+), 156 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index 5311e4377919c..cfb3a530f21b7 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -12,7 +12,7 @@ echo "*** Testing pow() : usage variations ***\n"; //get an unset variable $unset_var = 10; -unset ($unset_var); +unset($unset_var); // heredoc string $heredoc = <<getMessage(), "\n"; } $iterator++; -}; +} fclose($fp); + ?> --EXPECTF-- *** Testing pow() : usage variations *** diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index 3cc26a174d6fd..fdc474be2955f 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -12,7 +12,7 @@ echo "*** Testing pow() : usage variations ***\n"; //get an unset variable $unset_var = 10; -unset ($unset_var); +unset($unset_var); // heredoc string $heredoc = <<getMessage(), "\n"; } $iterator++; -}; +} fclose($fp); ?> --EXPECT-- diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index 46594d419a42e..d8888439764e5 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -8,7 +8,7 @@ echo "*** Testing pow() : usage variations ***\n"; //get an unset variable $unset_var = 10; -unset ($unset_var); +unset($unset_var); // heredoc string $heredoc = <<getMessage(), "\n"; } $iterator++; -}; +} fclose($fp); ?> --EXPECT-- From 02a08cefc8e97f2d2642dd6ec6a7e007dd8e3178 Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Sat, 23 Dec 2023 18:18:49 +0100 Subject: [PATCH 5/8] Removed redundant test cases --- ext/standard/tests/math/pow_variation1.phpt | 56 +++++-------------- .../tests/math/pow_variation1_64bit.phpt | 56 +++++-------------- ext/standard/tests/math/pow_variation2.phpt | 56 +++++-------------- 3 files changed, 45 insertions(+), 123 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index cfb3a530f21b7..f0dd4aa822577 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -45,37 +45,29 @@ $inputs = [ // null data /*11*/ null, - null, // boolean data - /*13*/ true, - false, - true, + /*12*/ true, false, // empty data - /*17*/ "", - "", + /*14*/ "", [], // string data - /*20*/ "abcxyz", - "abcxyz", + /*16*/ "abcxyz", $heredoc, "5.5", "2", // object data - /*25*/ new classA(), + /*20*/ new classA(), // undefined data - /*26*/ @$undefined_var, - - // unset data - /*27*/ @$unset_var, + /*21*/ @$undefined_var, // resource variable - /*28*/ $fp, + /*22*/ $fp, ]; // loop through each element of $inputs to check the behaviour of pow() @@ -129,52 +121,34 @@ float(0.125) int(0) -- Iteration 12 -- -int(0) +int(1) -- Iteration 13 -- -int(1) +int(0) -- Iteration 14 -- -int(0) +Unsupported operand types: string ** int -- Iteration 15 -- -int(1) +Unsupported operand types: array ** int -- Iteration 16 -- -int(0) +Unsupported operand types: string ** int -- 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(15532029.564086) --- Iteration 24 -- +-- Iteration 19 -- float(412.09) --- Iteration 25 -- +-- Iteration 20 -- Unsupported operand types: float ** classA --- Iteration 26 -- -float(1) - --- Iteration 27 -- +-- Iteration 21 -- float(1) --- Iteration 28 -- +-- Iteration 22 -- Unsupported operand types: float ** resource diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index fdc474be2955f..750fad644905d 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -45,37 +45,29 @@ $inputs = [ // null data /*11*/ null, - null, // boolean data - /*13*/ true, - false, - true, + /*12*/ true, false, // empty data - /*17*/ "", - "", + /*14*/ "", [], // string data - /*20*/ "abcxyz", - "abcxyz", + /*16*/ "abcxyz", $heredoc, "10.5", "2", // object data - /*25*/ new classA(), + /*20*/ new classA(), // undefined data - /*26*/ @$undefined_var, - - // unset data - /*27*/ @$unset_var, + /*21*/ @$undefined_var, // resource variable - /*28*/ $fp, + /*22*/ $fp, ]; // loop through each element of $inputs to check the behaviour of pow() @@ -128,52 +120,34 @@ float(0.125) int(0) -- Iteration 12 -- -int(0) +int(1) -- Iteration 13 -- -int(1) +int(0) -- Iteration 14 -- -int(0) +Unsupported operand types: string ** int -- Iteration 15 -- -int(1) +Unsupported operand types: array ** int -- Iteration 16 -- -int(0) +Unsupported operand types: string ** int -- 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) --- Iteration 24 -- +-- Iteration 19 -- int(8) --- Iteration 25 -- +-- Iteration 20 -- Unsupported operand types: classA ** int --- Iteration 26 -- -int(0) - --- Iteration 27 -- +-- Iteration 21 -- int(0) --- Iteration 28 -- +-- Iteration 22 -- Unsupported operand types: resource ** int diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index d8888439764e5..050d086f5ff20 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -41,37 +41,29 @@ $inputs = [ // null data /*11*/ null, - null, // boolean data - /*13*/ true, - false, - true, + /*12*/ true, false, // empty data - /*17*/ "", - "", + /*14*/ "", [], // string data - /*20*/ "abcxyz", - "abcxyz", + /*16*/ "abcxyz", $heredoc, "5.5", "2", // object data - /*25*/ new classA(), + /*20*/ new classA(), // undefined data - /*26*/ @$undefined_var, - - // unset data - /*27*/ @$unset_var, + /*21*/ @$undefined_var, // resource variable - /*28*/ $fp, + /*22*/ $fp, ]; // loop through each element of $inputs to check the behaviour of pow() @@ -124,52 +116,34 @@ float(4.5055521304275) float(1) -- Iteration 12 -- -float(1) +float(20.3) -- Iteration 13 -- -float(20.3) +float(1) -- Iteration 14 -- -float(1) +Unsupported operand types: float ** string -- Iteration 15 -- -float(20.3) +Unsupported operand types: float ** array -- Iteration 16 -- -float(1) +Unsupported operand types: float ** string -- 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) --- Iteration 24 -- +-- Iteration 19 -- float(412.09) --- Iteration 25 -- +-- Iteration 20 -- Unsupported operand types: float ** classA --- Iteration 26 -- -float(1) - --- Iteration 27 -- +-- Iteration 21 -- float(1) --- Iteration 28 -- +-- Iteration 22 -- Unsupported operand types: float ** resource From 0cc845f634d865b880e987f2b513498cc5779aec Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Sat, 23 Dec 2023 18:29:30 +0100 Subject: [PATCH 6/8] Clean up unnecessary comments to the tests --- ext/standard/tests/math/pow_variation1.phpt | 73 ++---------------- .../tests/math/pow_variation1_64bit.phpt | 74 ++----------------- ext/standard/tests/math/pow_variation2.phpt | 74 ++----------------- 3 files changed, 24 insertions(+), 197 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index f0dd4aa822577..c40e0d15ab7ab 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -8,12 +8,6 @@ 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(1) - --- Iteration 13 -- int(0) - --- Iteration 14 -- Unsupported operand types: string ** int - --- Iteration 15 -- Unsupported operand types: array ** int - --- Iteration 16 -- Unsupported operand types: string ** int - --- Iteration 17 -- Unsupported operand types: string ** int - --- Iteration 18 -- float(15532029.564086) - --- Iteration 19 -- float(412.09) - --- Iteration 20 -- Unsupported operand types: float ** classA - --- Iteration 21 -- float(1) - --- Iteration 22 -- Unsupported operand types: float ** resource diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index 750fad644905d..25654253560c3 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -8,12 +8,6 @@ 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(1) - --- Iteration 13 -- int(0) - --- Iteration 14 -- Unsupported operand types: string ** int - --- Iteration 15 -- Unsupported operand types: array ** int - --- Iteration 16 -- Unsupported operand types: string ** int - --- Iteration 17 -- Unsupported operand types: string ** int - --- Iteration 18 -- float(1157.625) - --- Iteration 19 -- int(8) - --- Iteration 20 -- Unsupported operand types: classA ** int - --- Iteration 21 -- -int(0) - --- Iteration 22 -- Unsupported operand types: resource ** int diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index 050d086f5ff20..268a282f34cfd 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -4,12 +4,6 @@ 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(20.3) - --- Iteration 13 -- float(1) - --- Iteration 14 -- Unsupported operand types: float ** string - --- Iteration 15 -- Unsupported operand types: float ** array - --- Iteration 16 -- Unsupported operand types: float ** string - --- Iteration 17 -- Unsupported operand types: float ** string - --- Iteration 18 -- float(15532029.564086) - --- Iteration 19 -- float(412.09) - --- Iteration 20 -- Unsupported operand types: float ** classA - --- Iteration 21 -- -float(1) - --- Iteration 22 -- Unsupported operand types: float ** resource From 02bc2e84adff8285b94c890198ec3e7054f4c632 Mon Sep 17 00:00:00 2001 From: Jorg Sowa Date: Mon, 25 Dec 2023 22:16:39 +0100 Subject: [PATCH 7/8] Removed heredoc string case --- ext/standard/tests/math/pow_variation1.phpt | 10 +--------- ext/standard/tests/math/pow_variation1_64bit.phpt | 11 +---------- ext/standard/tests/math/pow_variation2.phpt | 11 +---------- 3 files changed, 3 insertions(+), 29 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index c40e0d15ab7ab..e8c6f4aa63820 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -8,18 +8,12 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?> --FILE-- --FILE-- Date: Mon, 25 Dec 2023 22:24:12 +0100 Subject: [PATCH 8/8] Added numeric string in scientific notation --- ext/standard/tests/math/pow_variation1.phpt | 11 ++++++----- ext/standard/tests/math/pow_variation1_64bit.phpt | 2 ++ ext/standard/tests/math/pow_variation2.phpt | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index e8c6f4aa63820..cdb876f034ad8 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -46,6 +46,7 @@ $inputs = [ "abcxyz", "5.5", "2", + "6.3e-2", // object data new classA(), @@ -82,8 +83,8 @@ int(0) Unsupported operand types: string ** int Unsupported operand types: array ** int Unsupported operand types: string ** int -float(15532029.564086) -float(412.09) -Unsupported operand types: float ** classA -float(1) -Unsupported operand types: float ** resource +float(166.375) +int(8) +float(0.000250047) +Unsupported operand types: classA ** int +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 1b814c6dc9346..debc8b16d2b03 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -45,6 +45,7 @@ $inputs = [ "abcxyz", "10.5", "2", + "6.3e-2", // object data new classA(), @@ -82,5 +83,6 @@ Unsupported operand types: array ** int Unsupported operand types: string ** int float(1157.625) int(8) +float(0.000250047) Unsupported operand types: classA ** int Unsupported operand types: resource ** int diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index 1e930254a5df1..47a4845faade4 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -41,6 +41,7 @@ $inputs = [ "abcxyz", "5.5", "2", + "6.3e-2", // object data new classA(), @@ -78,5 +79,6 @@ Unsupported operand types: float ** array Unsupported operand types: float ** string float(15532029.564086) float(412.09) +float(1.2088495422866) Unsupported operand types: float ** classA Unsupported operand types: float ** resource