diff --git a/Zend/tests/add_006.phpt b/Zend/tests/add_006.phpt index 09945f3fce6c1..f122eada9f677 100644 --- a/Zend/tests/add_006.phpt +++ b/Zend/tests/add_006.phpt @@ -45,13 +45,13 @@ var_dump($c); echo "Done\n"; ?> --EXPECTF-- -Unsupported operand types: int + string +Unsupported operand types: int + non-numeric-string Warning: A non-numeric value encountered in %s on line %d int(951858) int(48550510) float(75661.68) -Unsupported operand types: string + int +Unsupported operand types: non-numeric-string + int Warning: A non-numeric value encountered in %s on line %d int(951858) diff --git a/Zend/tests/add_007.phpt b/Zend/tests/add_007.phpt index a2beddfaed41f..f1e057598264d 100644 --- a/Zend/tests/add_007.phpt +++ b/Zend/tests/add_007.phpt @@ -19,9 +19,9 @@ var_dump($c); echo "Done\n"; ?> --EXPECTF-- -Exception: Unsupported operand types: array + string +Exception: Unsupported operand types: array + non-numeric-string -Fatal error: Uncaught TypeError: Unsupported operand types: array + string in %s:%d +Fatal error: Uncaught TypeError: Unsupported operand types: array + non-numeric-string in %s:%d Stack trace: #0 {main} thrown in %s on line %d diff --git a/Zend/tests/arrow_functions/006.phpt b/Zend/tests/arrow_functions/006.phpt index 6f61b3c817d9e..4260aa7b82be5 100644 --- a/Zend/tests/arrow_functions/006.phpt +++ b/Zend/tests/arrow_functions/006.phpt @@ -32,7 +32,7 @@ try { --EXPECTF-- int(2) int(10) -{closure:%s:%d}(): Argument #1 ($x) must be of type int, string given, called in %s on line %d +{closure:%s:%d}(): Argument #1 ($x) must be of type int, non-numeric-string given, called in %s on line %d array(3) { [0]=> int(20) @@ -41,4 +41,4 @@ array(3) { [2]=> int(30) } -{closure:%s:%d}(): Argument #2 must be of type ?int, string given, called in %s on line %d +{closure:%s:%d}(): Argument #2 must be of type ?int, non-numeric-string given, called in %s on line %d diff --git a/Zend/tests/exceptions/exception_017.phpt b/Zend/tests/exceptions/exception_017.phpt index f2f5f964ce8f0..f1629e1972186 100644 --- a/Zend/tests/exceptions/exception_017.phpt +++ b/Zend/tests/exceptions/exception_017.phpt @@ -28,7 +28,7 @@ Error: Cannot call abstract method C::foo() in %s:%d Stack trace: #0 {main} -TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d +TypeError: foo(): Argument #1 ($x) must be of type callable, non-numeric-string given, called in %s:%d Stack trace: #0 %s(%d): foo('C::foo') #1 {main} diff --git a/Zend/tests/fibers/start-arguments.phpt b/Zend/tests/fibers/start-arguments.phpt index 6f22eb401762e..42b51b395a399 100644 --- a/Zend/tests/fibers/start-arguments.phpt +++ b/Zend/tests/fibers/start-arguments.phpt @@ -21,7 +21,7 @@ $fiber->start('test'); --EXPECTF-- int(1) -Fatal error: Uncaught TypeError: {closure:%s:%d}(): Argument #1 ($x) must be of type int, string given in %s:%d +Fatal error: Uncaught TypeError: {closure:%s:%d}(): Argument #1 ($x) must be of type int, non-numeric-string given in %s:%d Stack trace: #0 [internal function]: {closure:%s:%d}('test') #1 %sstart-arguments.php(%d): Fiber->start('test') diff --git a/Zend/tests/non_numarix_string_operand_error.phpt b/Zend/tests/non_numarix_string_operand_error.phpt new file mode 100644 index 0000000000000..8c5063e23dacb --- /dev/null +++ b/Zend/tests/non_numarix_string_operand_error.phpt @@ -0,0 +1,35 @@ +--TEST-- +Error message for non-numaric strings in arithmetic contexts +--FILE-- +getMessage(), 2); + return $split[0]; +} + +var_dump(1 + "1"); +try { var_dump(1 + "hello"); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } +try { var_dump(1 + ""); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } +try { var_dump("hello" + 1); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } +try { var_dump("" + 1); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } + +foo("1"); +echo "\n"; +try { foo("hello"); } catch (TypeError $e) { echo msg($e), "\n"; } +try { foo(""); } catch (TypeError $e) { echo msg($e), "\n"; } +?> +===DONE=== +--EXPECT-- +int(2) +Unsupported operand types: int + non-numeric-string +Unsupported operand types: int + empty-string +Unsupported operand types: non-numeric-string + int +Unsupported operand types: empty-string + int +1 +foo(): Argument #1 ($a) must be of type int, non-numeric-string given +foo(): Argument #1 ($a) must be of type int, empty-string given +===DONE=== diff --git a/Zend/tests/numeric_strings/invalid_numeric_string_must_generate_warning_assign.phpt b/Zend/tests/numeric_strings/invalid_numeric_string_must_generate_warning_assign.phpt index 51df22634869c..d5a2e5cc66902 100644 --- a/Zend/tests/numeric_strings/invalid_numeric_string_must_generate_warning_assign.phpt +++ b/Zend/tests/numeric_strings/invalid_numeric_string_must_generate_warning_assign.phpt @@ -164,49 +164,49 @@ Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(5) -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(-2) -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(143) -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d float(0.8947368421052632) -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d float(3.0910586430935376E+39) -Unsupported operand types: string ** string +Unsupported operand types: non-numeric-string ** non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(31) -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(%d) -Unsupported operand types: string << string +Unsupported operand types: non-numeric-string << non-numeric-string string(4) "quis" --- @@ -214,7 +214,7 @@ Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(0) -Unsupported operand types: string >> string +Unsupported operand types: non-numeric-string >> non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d @@ -222,8 +222,8 @@ int(63) Warning: A non-numeric value encountered in %s on line %d int(71) -Unsupported operand types: string | int -Unsupported operand types: int | string +Unsupported operand types: non-numeric-string | int +Unsupported operand types: int | non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d @@ -231,8 +231,8 @@ int(81) Warning: A non-numeric value encountered in %s on line %d int(97) -Unsupported operand types: string & int -Unsupported operand types: int & string +Unsupported operand types: non-numeric-string & int +Unsupported operand types: int & non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d @@ -240,5 +240,5 @@ int(28) Warning: A non-numeric value encountered in %s on line %d int(252) -Unsupported operand types: string ^ int -Unsupported operand types: int ^ string +Unsupported operand types: non-numeric-string ^ int +Unsupported operand types: int ^ non-numeric-string diff --git a/Zend/tests/numeric_strings/invalid_numeric_strings_must_generate_warning.phpt b/Zend/tests/numeric_strings/invalid_numeric_strings_must_generate_warning.phpt index 2b76f538f46ed..e2dd2a9b915be 100644 --- a/Zend/tests/numeric_strings/invalid_numeric_strings_must_generate_warning.phpt +++ b/Zend/tests/numeric_strings/invalid_numeric_strings_must_generate_warning.phpt @@ -117,56 +117,56 @@ Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(5) -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(-2) -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(143) -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d float(0.8947368421052632) -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d float(3.0910586430935376E+39) -Unsupported operand types: string ** string +Unsupported operand types: non-numeric-string ** non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(31) -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(%d) -Unsupported operand types: string << string +Unsupported operand types: non-numeric-string << non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d Warning: A non-numeric value encountered in %s on line %d int(0) -Unsupported operand types: string >> string +Unsupported operand types: non-numeric-string >> non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d @@ -174,8 +174,8 @@ int(63) Warning: A non-numeric value encountered in %s on line %d int(71) -Unsupported operand types: string | int -Unsupported operand types: int | string +Unsupported operand types: non-numeric-string | int +Unsupported operand types: int | non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d @@ -183,8 +183,8 @@ int(81) Warning: A non-numeric value encountered in %s on line %d int(97) -Unsupported operand types: string & int -Unsupported operand types: int & string +Unsupported operand types: non-numeric-string & int +Unsupported operand types: int & non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d @@ -192,15 +192,15 @@ int(28) Warning: A non-numeric value encountered in %s on line %d int(252) -Unsupported operand types: string ^ int -Unsupported operand types: int ^ string +Unsupported operand types: non-numeric-string ^ int +Unsupported operand types: int ^ non-numeric-string --- Warning: A non-numeric value encountered in %s on line %d int(149) -Unsupported operand types: string * int +Unsupported operand types: non-numeric-string * int --- Warning: A non-numeric value encountered in %s on line %d int(-151) -Unsupported operand types: string * int +Unsupported operand types: non-numeric-string * int diff --git a/Zend/tests/operator_unsupported_types.phpt b/Zend/tests/operator_unsupported_types.phpt index a08032226e5db..c0867dc62ddc6 100644 --- a/Zend/tests/operator_unsupported_types.phpt +++ b/Zend/tests/operator_unsupported_types.phpt @@ -129,19 +129,19 @@ BINARY OP: No error for [] + [] Unsupported operand types: array + stdClass Unsupported operand types: array + resource -Unsupported operand types: array + string +Unsupported operand types: array + non-numeric-string Unsupported operand types: stdClass + array Unsupported operand types: stdClass + stdClass Unsupported operand types: stdClass + resource -Unsupported operand types: stdClass + string +Unsupported operand types: stdClass + non-numeric-string Unsupported operand types: resource + array Unsupported operand types: resource + stdClass Unsupported operand types: resource + resource -Unsupported operand types: resource + string -Unsupported operand types: string + array -Unsupported operand types: string + stdClass -Unsupported operand types: string + resource -Unsupported operand types: string + string +Unsupported operand types: resource + non-numeric-string +Unsupported operand types: non-numeric-string + array +Unsupported operand types: non-numeric-string + stdClass +Unsupported operand types: non-numeric-string + resource +Unsupported operand types: non-numeric-string + non-numeric-string Unsupported operand types: array + null Unsupported operand types: null + array Unsupported operand types: array + bool @@ -154,9 +154,9 @@ Unsupported operand types: array + float Unsupported operand types: float + array Unsupported operand types: array + string Unsupported operand types: string + array -Unsupported operand types: array + string +Unsupported operand types: array + non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string + array +Unsupported operand types: non-numeric-string + array Unsupported operand types: stdClass + null Unsupported operand types: null + stdClass Unsupported operand types: stdClass + bool @@ -169,9 +169,9 @@ Unsupported operand types: stdClass + float Unsupported operand types: float + stdClass Unsupported operand types: stdClass + string Unsupported operand types: string + stdClass -Unsupported operand types: stdClass + string +Unsupported operand types: stdClass + non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string + stdClass +Unsupported operand types: non-numeric-string + stdClass Unsupported operand types: resource + null Unsupported operand types: null + resource Unsupported operand types: resource + bool @@ -184,40 +184,40 @@ Unsupported operand types: resource + float Unsupported operand types: float + resource Unsupported operand types: resource + string Unsupported operand types: string + resource -Unsupported operand types: resource + string -Warning: A non-numeric value encountered -Unsupported operand types: string + resource -Unsupported operand types: string + null -Unsupported operand types: null + string -Unsupported operand types: string + bool -Unsupported operand types: bool + string -Unsupported operand types: string + bool -Unsupported operand types: bool + string -Unsupported operand types: string + int -Unsupported operand types: int + string -Unsupported operand types: string + float -Unsupported operand types: float + string -Unsupported operand types: string + string -Unsupported operand types: string + string -Unsupported operand types: string + string -Warning: A non-numeric value encountered -Unsupported operand types: string + string +Unsupported operand types: resource + non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string + resource +Unsupported operand types: non-numeric-string + null +Unsupported operand types: null + non-numeric-string +Unsupported operand types: non-numeric-string + bool +Unsupported operand types: bool + non-numeric-string +Unsupported operand types: non-numeric-string + bool +Unsupported operand types: bool + non-numeric-string +Unsupported operand types: non-numeric-string + int +Unsupported operand types: int + non-numeric-string +Unsupported operand types: non-numeric-string + float +Unsupported operand types: float + non-numeric-string +Unsupported operand types: non-numeric-string + string +Unsupported operand types: string + non-numeric-string +Unsupported operand types: non-numeric-string + non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string + non-numeric-string Unsupported operand types: array - array Unsupported operand types: array - stdClass Unsupported operand types: array - resource -Unsupported operand types: array - string +Unsupported operand types: array - non-numeric-string Unsupported operand types: stdClass - array Unsupported operand types: stdClass - stdClass Unsupported operand types: stdClass - resource -Unsupported operand types: stdClass - string +Unsupported operand types: stdClass - non-numeric-string Unsupported operand types: resource - array Unsupported operand types: resource - stdClass Unsupported operand types: resource - resource -Unsupported operand types: resource - string -Unsupported operand types: string - array -Unsupported operand types: string - stdClass -Unsupported operand types: string - resource -Unsupported operand types: string - string +Unsupported operand types: resource - non-numeric-string +Unsupported operand types: non-numeric-string - array +Unsupported operand types: non-numeric-string - stdClass +Unsupported operand types: non-numeric-string - resource +Unsupported operand types: non-numeric-string - non-numeric-string Unsupported operand types: array - null Unsupported operand types: null - array Unsupported operand types: array - bool @@ -230,9 +230,9 @@ Unsupported operand types: array - float Unsupported operand types: float - array Unsupported operand types: array - string Unsupported operand types: string - array -Unsupported operand types: array - string +Unsupported operand types: array - non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string - array +Unsupported operand types: non-numeric-string - array Unsupported operand types: stdClass - null Unsupported operand types: null - stdClass Unsupported operand types: stdClass - bool @@ -245,9 +245,9 @@ Unsupported operand types: stdClass - float Unsupported operand types: float - stdClass Unsupported operand types: stdClass - string Unsupported operand types: string - stdClass -Unsupported operand types: stdClass - string +Unsupported operand types: stdClass - non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string - stdClass +Unsupported operand types: non-numeric-string - stdClass Unsupported operand types: resource - null Unsupported operand types: null - resource Unsupported operand types: resource - bool @@ -260,40 +260,40 @@ Unsupported operand types: resource - float Unsupported operand types: float - resource Unsupported operand types: resource - string Unsupported operand types: string - resource -Unsupported operand types: resource - string -Warning: A non-numeric value encountered -Unsupported operand types: string - resource -Unsupported operand types: string - null -Unsupported operand types: null - string -Unsupported operand types: string - bool -Unsupported operand types: bool - string -Unsupported operand types: string - bool -Unsupported operand types: bool - string -Unsupported operand types: string - int -Unsupported operand types: int - string -Unsupported operand types: string - float -Unsupported operand types: float - string -Unsupported operand types: string - string -Unsupported operand types: string - string -Unsupported operand types: string - string -Warning: A non-numeric value encountered -Unsupported operand types: string - string +Unsupported operand types: resource - non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string - resource +Unsupported operand types: non-numeric-string - null +Unsupported operand types: null - non-numeric-string +Unsupported operand types: non-numeric-string - bool +Unsupported operand types: bool - non-numeric-string +Unsupported operand types: non-numeric-string - bool +Unsupported operand types: bool - non-numeric-string +Unsupported operand types: non-numeric-string - int +Unsupported operand types: int - non-numeric-string +Unsupported operand types: non-numeric-string - float +Unsupported operand types: float - non-numeric-string +Unsupported operand types: non-numeric-string - string +Unsupported operand types: string - non-numeric-string +Unsupported operand types: non-numeric-string - non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string - non-numeric-string Unsupported operand types: array * array Unsupported operand types: stdClass * array Unsupported operand types: resource * array -Unsupported operand types: array * string +Unsupported operand types: array * non-numeric-string Unsupported operand types: stdClass * array Unsupported operand types: stdClass * stdClass Unsupported operand types: stdClass * resource -Unsupported operand types: stdClass * string +Unsupported operand types: stdClass * non-numeric-string Unsupported operand types: resource * array Unsupported operand types: stdClass * resource Unsupported operand types: resource * resource -Unsupported operand types: resource * string -Unsupported operand types: string * array -Unsupported operand types: stdClass * string -Unsupported operand types: resource * string -Unsupported operand types: string * string +Unsupported operand types: resource * non-numeric-string +Unsupported operand types: non-numeric-string * array +Unsupported operand types: stdClass * non-numeric-string +Unsupported operand types: resource * non-numeric-string +Unsupported operand types: non-numeric-string * non-numeric-string Unsupported operand types: array * null Unsupported operand types: null * array Unsupported operand types: array * bool @@ -306,9 +306,9 @@ Unsupported operand types: array * float Unsupported operand types: float * array Unsupported operand types: array * string Unsupported operand types: string * array -Unsupported operand types: array * string +Unsupported operand types: array * non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string * array +Unsupported operand types: non-numeric-string * array Unsupported operand types: stdClass * null Unsupported operand types: stdClass * null Unsupported operand types: stdClass * bool @@ -321,8 +321,8 @@ Unsupported operand types: stdClass * float Unsupported operand types: stdClass * float Unsupported operand types: stdClass * string Unsupported operand types: stdClass * string -Unsupported operand types: stdClass * string -Unsupported operand types: stdClass * string +Unsupported operand types: stdClass * non-numeric-string +Unsupported operand types: stdClass * non-numeric-string Unsupported operand types: resource * null Unsupported operand types: resource * null Unsupported operand types: resource * bool @@ -335,39 +335,39 @@ Unsupported operand types: resource * float Unsupported operand types: resource * float Unsupported operand types: resource * string Unsupported operand types: resource * string -Unsupported operand types: resource * string -Unsupported operand types: resource * string -Unsupported operand types: string * null -Unsupported operand types: null * string -Unsupported operand types: string * bool -Unsupported operand types: bool * string -Unsupported operand types: string * bool -Unsupported operand types: bool * string -Unsupported operand types: string * int -Unsupported operand types: int * string -Unsupported operand types: string * float -Unsupported operand types: float * string -Unsupported operand types: string * string -Unsupported operand types: string * string -Unsupported operand types: string * string -Warning: A non-numeric value encountered -Unsupported operand types: string * string +Unsupported operand types: resource * non-numeric-string +Unsupported operand types: resource * non-numeric-string +Unsupported operand types: non-numeric-string * null +Unsupported operand types: null * non-numeric-string +Unsupported operand types: non-numeric-string * bool +Unsupported operand types: bool * non-numeric-string +Unsupported operand types: non-numeric-string * bool +Unsupported operand types: bool * non-numeric-string +Unsupported operand types: non-numeric-string * int +Unsupported operand types: int * non-numeric-string +Unsupported operand types: non-numeric-string * float +Unsupported operand types: float * non-numeric-string +Unsupported operand types: non-numeric-string * string +Unsupported operand types: string * non-numeric-string +Unsupported operand types: non-numeric-string * non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string * non-numeric-string Unsupported operand types: array / array Unsupported operand types: array / stdClass Unsupported operand types: array / resource -Unsupported operand types: array / string +Unsupported operand types: array / non-numeric-string Unsupported operand types: stdClass / array Unsupported operand types: stdClass / stdClass Unsupported operand types: stdClass / resource -Unsupported operand types: stdClass / string +Unsupported operand types: stdClass / non-numeric-string Unsupported operand types: resource / array Unsupported operand types: resource / stdClass Unsupported operand types: resource / resource -Unsupported operand types: resource / string -Unsupported operand types: string / array -Unsupported operand types: string / stdClass -Unsupported operand types: string / resource -Unsupported operand types: string / string +Unsupported operand types: resource / non-numeric-string +Unsupported operand types: non-numeric-string / array +Unsupported operand types: non-numeric-string / stdClass +Unsupported operand types: non-numeric-string / resource +Unsupported operand types: non-numeric-string / non-numeric-string Unsupported operand types: array / null Unsupported operand types: null / array Unsupported operand types: array / bool @@ -380,9 +380,9 @@ Unsupported operand types: array / float Unsupported operand types: float / array Unsupported operand types: array / string Unsupported operand types: string / array -Unsupported operand types: array / string +Unsupported operand types: array / non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string / array +Unsupported operand types: non-numeric-string / array Unsupported operand types: stdClass / null Unsupported operand types: null / stdClass Unsupported operand types: stdClass / bool @@ -395,9 +395,9 @@ Unsupported operand types: stdClass / float Unsupported operand types: float / stdClass Unsupported operand types: stdClass / string Unsupported operand types: string / stdClass -Unsupported operand types: stdClass / string +Unsupported operand types: stdClass / non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string / stdClass +Unsupported operand types: non-numeric-string / stdClass Unsupported operand types: resource / null Unsupported operand types: null / resource Unsupported operand types: resource / bool @@ -410,40 +410,40 @@ Unsupported operand types: resource / float Unsupported operand types: float / resource Unsupported operand types: resource / string Unsupported operand types: string / resource -Unsupported operand types: resource / string -Warning: A non-numeric value encountered -Unsupported operand types: string / resource -Unsupported operand types: string / null -Unsupported operand types: null / string -Unsupported operand types: string / bool -Unsupported operand types: bool / string -Unsupported operand types: string / bool -Unsupported operand types: bool / string -Unsupported operand types: string / int -Unsupported operand types: int / string -Unsupported operand types: string / float -Unsupported operand types: float / string -Unsupported operand types: string / string -Unsupported operand types: string / string -Unsupported operand types: string / string -Warning: A non-numeric value encountered -Unsupported operand types: string / string +Unsupported operand types: resource / non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string / resource +Unsupported operand types: non-numeric-string / null +Unsupported operand types: null / non-numeric-string +Unsupported operand types: non-numeric-string / bool +Unsupported operand types: bool / non-numeric-string +Unsupported operand types: non-numeric-string / bool +Unsupported operand types: bool / non-numeric-string +Unsupported operand types: non-numeric-string / int +Unsupported operand types: int / non-numeric-string +Unsupported operand types: non-numeric-string / float +Unsupported operand types: float / non-numeric-string +Unsupported operand types: non-numeric-string / string +Unsupported operand types: string / non-numeric-string +Unsupported operand types: non-numeric-string / non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string / non-numeric-string Unsupported operand types: array % array Unsupported operand types: array % stdClass Unsupported operand types: array % resource -Unsupported operand types: array % string +Unsupported operand types: array % non-numeric-string Unsupported operand types: stdClass % array Unsupported operand types: stdClass % stdClass Unsupported operand types: stdClass % resource -Unsupported operand types: stdClass % string +Unsupported operand types: stdClass % non-numeric-string Unsupported operand types: resource % array Unsupported operand types: resource % stdClass Unsupported operand types: resource % resource -Unsupported operand types: resource % string -Unsupported operand types: string % array -Unsupported operand types: string % stdClass -Unsupported operand types: string % resource -Unsupported operand types: string % string +Unsupported operand types: resource % non-numeric-string +Unsupported operand types: non-numeric-string % array +Unsupported operand types: non-numeric-string % stdClass +Unsupported operand types: non-numeric-string % resource +Unsupported operand types: non-numeric-string % non-numeric-string Unsupported operand types: array % null Unsupported operand types: null % array Unsupported operand types: array % bool @@ -457,9 +457,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float % array Unsupported operand types: array % string Unsupported operand types: string % array -Unsupported operand types: array % string +Unsupported operand types: array % non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string % array +Unsupported operand types: non-numeric-string % array Unsupported operand types: stdClass % null Unsupported operand types: null % stdClass Unsupported operand types: stdClass % bool @@ -473,9 +473,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float % stdClass Unsupported operand types: stdClass % string Unsupported operand types: string % stdClass -Unsupported operand types: stdClass % string +Unsupported operand types: stdClass % non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string % stdClass +Unsupported operand types: non-numeric-string % stdClass Unsupported operand types: resource % null Unsupported operand types: null % resource Unsupported operand types: resource % bool @@ -489,41 +489,41 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float % resource Unsupported operand types: resource % string Unsupported operand types: string % resource -Unsupported operand types: resource % string -Warning: A non-numeric value encountered -Unsupported operand types: string % resource -Unsupported operand types: string % null -Unsupported operand types: null % string -Unsupported operand types: string % bool -Unsupported operand types: bool % string -Unsupported operand types: string % bool -Unsupported operand types: bool % string -Unsupported operand types: string % int -Unsupported operand types: int % string -Unsupported operand types: string % float +Unsupported operand types: resource % non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string % resource +Unsupported operand types: non-numeric-string % null +Unsupported operand types: null % non-numeric-string +Unsupported operand types: non-numeric-string % bool +Unsupported operand types: bool % non-numeric-string +Unsupported operand types: non-numeric-string % bool +Unsupported operand types: bool % non-numeric-string +Unsupported operand types: non-numeric-string % int +Unsupported operand types: int % non-numeric-string +Unsupported operand types: non-numeric-string % float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float % string -Unsupported operand types: string % string -Unsupported operand types: string % string -Unsupported operand types: string % string +Unsupported operand types: float % non-numeric-string +Unsupported operand types: non-numeric-string % string +Unsupported operand types: string % non-numeric-string +Unsupported operand types: non-numeric-string % non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string % string +Unsupported operand types: non-numeric-string % non-numeric-string Unsupported operand types: array ** array Unsupported operand types: array ** stdClass Unsupported operand types: array ** resource -Unsupported operand types: array ** string +Unsupported operand types: array ** non-numeric-string Unsupported operand types: stdClass ** array Unsupported operand types: stdClass ** stdClass Unsupported operand types: stdClass ** resource -Unsupported operand types: stdClass ** string +Unsupported operand types: stdClass ** non-numeric-string Unsupported operand types: resource ** array Unsupported operand types: resource ** stdClass Unsupported operand types: resource ** resource -Unsupported operand types: resource ** string -Unsupported operand types: string ** array -Unsupported operand types: string ** stdClass -Unsupported operand types: string ** resource -Unsupported operand types: string ** string +Unsupported operand types: resource ** non-numeric-string +Unsupported operand types: non-numeric-string ** array +Unsupported operand types: non-numeric-string ** stdClass +Unsupported operand types: non-numeric-string ** resource +Unsupported operand types: non-numeric-string ** non-numeric-string Unsupported operand types: array ** null Unsupported operand types: null ** array Unsupported operand types: array ** bool @@ -536,9 +536,9 @@ Unsupported operand types: array ** float Unsupported operand types: float ** array Unsupported operand types: array ** string Unsupported operand types: string ** array -Unsupported operand types: array ** string +Unsupported operand types: array ** non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ** array +Unsupported operand types: non-numeric-string ** array Unsupported operand types: stdClass ** null Unsupported operand types: null ** stdClass Unsupported operand types: stdClass ** bool @@ -551,9 +551,9 @@ Unsupported operand types: stdClass ** float Unsupported operand types: float ** stdClass Unsupported operand types: stdClass ** string Unsupported operand types: string ** stdClass -Unsupported operand types: stdClass ** string +Unsupported operand types: stdClass ** non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ** stdClass +Unsupported operand types: non-numeric-string ** stdClass Unsupported operand types: resource ** null Unsupported operand types: null ** resource Unsupported operand types: resource ** bool @@ -566,40 +566,40 @@ Unsupported operand types: resource ** float Unsupported operand types: float ** resource Unsupported operand types: resource ** string Unsupported operand types: string ** resource -Unsupported operand types: resource ** string -Warning: A non-numeric value encountered -Unsupported operand types: string ** resource -Unsupported operand types: string ** null -Unsupported operand types: null ** string -Unsupported operand types: string ** bool -Unsupported operand types: bool ** string -Unsupported operand types: string ** bool -Unsupported operand types: bool ** string -Unsupported operand types: string ** int -Unsupported operand types: int ** string -Unsupported operand types: string ** float -Unsupported operand types: float ** string -Unsupported operand types: string ** string -Unsupported operand types: string ** string -Unsupported operand types: string ** string -Warning: A non-numeric value encountered -Unsupported operand types: string ** string +Unsupported operand types: resource ** non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string ** resource +Unsupported operand types: non-numeric-string ** null +Unsupported operand types: null ** non-numeric-string +Unsupported operand types: non-numeric-string ** bool +Unsupported operand types: bool ** non-numeric-string +Unsupported operand types: non-numeric-string ** bool +Unsupported operand types: bool ** non-numeric-string +Unsupported operand types: non-numeric-string ** int +Unsupported operand types: int ** non-numeric-string +Unsupported operand types: non-numeric-string ** float +Unsupported operand types: float ** non-numeric-string +Unsupported operand types: non-numeric-string ** string +Unsupported operand types: string ** non-numeric-string +Unsupported operand types: non-numeric-string ** non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string ** non-numeric-string Unsupported operand types: array << array Unsupported operand types: array << stdClass Unsupported operand types: array << resource -Unsupported operand types: array << string +Unsupported operand types: array << non-numeric-string Unsupported operand types: stdClass << array Unsupported operand types: stdClass << stdClass Unsupported operand types: stdClass << resource -Unsupported operand types: stdClass << string +Unsupported operand types: stdClass << non-numeric-string Unsupported operand types: resource << array Unsupported operand types: resource << stdClass Unsupported operand types: resource << resource -Unsupported operand types: resource << string -Unsupported operand types: string << array -Unsupported operand types: string << stdClass -Unsupported operand types: string << resource -Unsupported operand types: string << string +Unsupported operand types: resource << non-numeric-string +Unsupported operand types: non-numeric-string << array +Unsupported operand types: non-numeric-string << stdClass +Unsupported operand types: non-numeric-string << resource +Unsupported operand types: non-numeric-string << non-numeric-string Unsupported operand types: array << null Unsupported operand types: null << array Unsupported operand types: array << bool @@ -613,9 +613,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float << array Unsupported operand types: array << string Unsupported operand types: string << array -Unsupported operand types: array << string +Unsupported operand types: array << non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string << array +Unsupported operand types: non-numeric-string << array Unsupported operand types: stdClass << null Unsupported operand types: null << stdClass Unsupported operand types: stdClass << bool @@ -629,9 +629,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float << stdClass Unsupported operand types: stdClass << string Unsupported operand types: string << stdClass -Unsupported operand types: stdClass << string +Unsupported operand types: stdClass << non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string << stdClass +Unsupported operand types: non-numeric-string << stdClass Unsupported operand types: resource << null Unsupported operand types: null << resource Unsupported operand types: resource << bool @@ -645,41 +645,41 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float << resource Unsupported operand types: resource << string Unsupported operand types: string << resource -Unsupported operand types: resource << string -Warning: A non-numeric value encountered -Unsupported operand types: string << resource -Unsupported operand types: string << null -Unsupported operand types: null << string -Unsupported operand types: string << bool -Unsupported operand types: bool << string -Unsupported operand types: string << bool -Unsupported operand types: bool << string -Unsupported operand types: string << int -Unsupported operand types: int << string -Unsupported operand types: string << float +Unsupported operand types: resource << non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string << resource +Unsupported operand types: non-numeric-string << null +Unsupported operand types: null << non-numeric-string +Unsupported operand types: non-numeric-string << bool +Unsupported operand types: bool << non-numeric-string +Unsupported operand types: non-numeric-string << bool +Unsupported operand types: bool << non-numeric-string +Unsupported operand types: non-numeric-string << int +Unsupported operand types: int << non-numeric-string +Unsupported operand types: non-numeric-string << float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float << string -Unsupported operand types: string << string -Unsupported operand types: string << string -Unsupported operand types: string << string +Unsupported operand types: float << non-numeric-string +Unsupported operand types: non-numeric-string << string +Unsupported operand types: string << non-numeric-string +Unsupported operand types: non-numeric-string << non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string << string +Unsupported operand types: non-numeric-string << non-numeric-string Unsupported operand types: array >> array Unsupported operand types: array >> stdClass Unsupported operand types: array >> resource -Unsupported operand types: array >> string +Unsupported operand types: array >> non-numeric-string Unsupported operand types: stdClass >> array Unsupported operand types: stdClass >> stdClass Unsupported operand types: stdClass >> resource -Unsupported operand types: stdClass >> string +Unsupported operand types: stdClass >> non-numeric-string Unsupported operand types: resource >> array Unsupported operand types: resource >> stdClass Unsupported operand types: resource >> resource -Unsupported operand types: resource >> string -Unsupported operand types: string >> array -Unsupported operand types: string >> stdClass -Unsupported operand types: string >> resource -Unsupported operand types: string >> string +Unsupported operand types: resource >> non-numeric-string +Unsupported operand types: non-numeric-string >> array +Unsupported operand types: non-numeric-string >> stdClass +Unsupported operand types: non-numeric-string >> resource +Unsupported operand types: non-numeric-string >> non-numeric-string Unsupported operand types: array >> null Unsupported operand types: null >> array Unsupported operand types: array >> bool @@ -693,9 +693,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float >> array Unsupported operand types: array >> string Unsupported operand types: string >> array -Unsupported operand types: array >> string +Unsupported operand types: array >> non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string >> array +Unsupported operand types: non-numeric-string >> array Unsupported operand types: stdClass >> null Unsupported operand types: null >> stdClass Unsupported operand types: stdClass >> bool @@ -709,9 +709,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float >> stdClass Unsupported operand types: stdClass >> string Unsupported operand types: string >> stdClass -Unsupported operand types: stdClass >> string +Unsupported operand types: stdClass >> non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string >> stdClass +Unsupported operand types: non-numeric-string >> stdClass Unsupported operand types: resource >> null Unsupported operand types: null >> resource Unsupported operand types: resource >> bool @@ -725,40 +725,40 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float >> resource Unsupported operand types: resource >> string Unsupported operand types: string >> resource -Unsupported operand types: resource >> string -Warning: A non-numeric value encountered -Unsupported operand types: string >> resource -Unsupported operand types: string >> null -Unsupported operand types: null >> string -Unsupported operand types: string >> bool -Unsupported operand types: bool >> string -Unsupported operand types: string >> bool -Unsupported operand types: bool >> string -Unsupported operand types: string >> int -Unsupported operand types: int >> string -Unsupported operand types: string >> float +Unsupported operand types: resource >> non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string >> resource +Unsupported operand types: non-numeric-string >> null +Unsupported operand types: null >> non-numeric-string +Unsupported operand types: non-numeric-string >> bool +Unsupported operand types: bool >> non-numeric-string +Unsupported operand types: non-numeric-string >> bool +Unsupported operand types: bool >> non-numeric-string +Unsupported operand types: non-numeric-string >> int +Unsupported operand types: int >> non-numeric-string +Unsupported operand types: non-numeric-string >> float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float >> string -Unsupported operand types: string >> string -Unsupported operand types: string >> string -Unsupported operand types: string >> string +Unsupported operand types: float >> non-numeric-string +Unsupported operand types: non-numeric-string >> string +Unsupported operand types: string >> non-numeric-string +Unsupported operand types: non-numeric-string >> non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string >> string +Unsupported operand types: non-numeric-string >> non-numeric-string Unsupported operand types: array & array Unsupported operand types: stdClass & array Unsupported operand types: resource & array -Unsupported operand types: array & string +Unsupported operand types: array & non-numeric-string Unsupported operand types: stdClass & array Unsupported operand types: stdClass & stdClass Unsupported operand types: stdClass & resource -Unsupported operand types: stdClass & string +Unsupported operand types: stdClass & non-numeric-string Unsupported operand types: resource & array Unsupported operand types: stdClass & resource Unsupported operand types: resource & resource -Unsupported operand types: resource & string -Unsupported operand types: string & array -Unsupported operand types: stdClass & string -Unsupported operand types: resource & string +Unsupported operand types: resource & non-numeric-string +Unsupported operand types: non-numeric-string & array +Unsupported operand types: stdClass & non-numeric-string +Unsupported operand types: resource & non-numeric-string No error for "foo" & "foo" Unsupported operand types: array & null Unsupported operand types: null & array @@ -773,9 +773,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float & array Unsupported operand types: array & string Unsupported operand types: string & array -Unsupported operand types: array & string +Unsupported operand types: array & non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string & array +Unsupported operand types: non-numeric-string & array Unsupported operand types: stdClass & null Unsupported operand types: stdClass & null Unsupported operand types: stdClass & bool @@ -788,8 +788,8 @@ Unsupported operand types: stdClass & float Unsupported operand types: stdClass & float Unsupported operand types: stdClass & string Unsupported operand types: stdClass & string -Unsupported operand types: stdClass & string -Unsupported operand types: stdClass & string +Unsupported operand types: stdClass & non-numeric-string +Unsupported operand types: stdClass & non-numeric-string Unsupported operand types: resource & null Unsupported operand types: resource & null Unsupported operand types: resource & bool @@ -802,19 +802,19 @@ Unsupported operand types: resource & float Unsupported operand types: resource & float Unsupported operand types: resource & string Unsupported operand types: resource & string -Unsupported operand types: resource & string -Unsupported operand types: resource & string -Unsupported operand types: string & null -Unsupported operand types: null & string -Unsupported operand types: string & bool -Unsupported operand types: bool & string -Unsupported operand types: string & bool -Unsupported operand types: bool & string -Unsupported operand types: string & int -Unsupported operand types: int & string -Unsupported operand types: string & float +Unsupported operand types: resource & non-numeric-string +Unsupported operand types: resource & non-numeric-string +Unsupported operand types: non-numeric-string & null +Unsupported operand types: null & non-numeric-string +Unsupported operand types: non-numeric-string & bool +Unsupported operand types: bool & non-numeric-string +Unsupported operand types: non-numeric-string & bool +Unsupported operand types: bool & non-numeric-string +Unsupported operand types: non-numeric-string & int +Unsupported operand types: int & non-numeric-string +Unsupported operand types: non-numeric-string & float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float & string +Unsupported operand types: float & non-numeric-string No error for "foo" & "123" No error for "123" & "foo" No error for "foo" & "123foo" @@ -822,18 +822,18 @@ No error for "123foo" & "foo" Unsupported operand types: array | array Unsupported operand types: stdClass | array Unsupported operand types: resource | array -Unsupported operand types: array | string +Unsupported operand types: array | non-numeric-string Unsupported operand types: stdClass | array Unsupported operand types: stdClass | stdClass Unsupported operand types: stdClass | resource -Unsupported operand types: stdClass | string +Unsupported operand types: stdClass | non-numeric-string Unsupported operand types: resource | array Unsupported operand types: stdClass | resource Unsupported operand types: resource | resource -Unsupported operand types: resource | string -Unsupported operand types: string | array -Unsupported operand types: stdClass | string -Unsupported operand types: resource | string +Unsupported operand types: resource | non-numeric-string +Unsupported operand types: non-numeric-string | array +Unsupported operand types: stdClass | non-numeric-string +Unsupported operand types: resource | non-numeric-string No error for "foo" | "foo" Unsupported operand types: array | null Unsupported operand types: null | array @@ -848,9 +848,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float | array Unsupported operand types: array | string Unsupported operand types: string | array -Unsupported operand types: array | string +Unsupported operand types: array | non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string | array +Unsupported operand types: non-numeric-string | array Unsupported operand types: stdClass | null Unsupported operand types: stdClass | null Unsupported operand types: stdClass | bool @@ -863,8 +863,8 @@ Unsupported operand types: stdClass | float Unsupported operand types: stdClass | float Unsupported operand types: stdClass | string Unsupported operand types: stdClass | string -Unsupported operand types: stdClass | string -Unsupported operand types: stdClass | string +Unsupported operand types: stdClass | non-numeric-string +Unsupported operand types: stdClass | non-numeric-string Unsupported operand types: resource | null Unsupported operand types: resource | null Unsupported operand types: resource | bool @@ -877,19 +877,19 @@ Unsupported operand types: resource | float Unsupported operand types: resource | float Unsupported operand types: resource | string Unsupported operand types: resource | string -Unsupported operand types: resource | string -Unsupported operand types: resource | string -Unsupported operand types: string | null -Unsupported operand types: null | string -Unsupported operand types: string | bool -Unsupported operand types: bool | string -Unsupported operand types: string | bool -Unsupported operand types: bool | string -Unsupported operand types: string | int -Unsupported operand types: int | string -Unsupported operand types: string | float +Unsupported operand types: resource | non-numeric-string +Unsupported operand types: resource | non-numeric-string +Unsupported operand types: non-numeric-string | null +Unsupported operand types: null | non-numeric-string +Unsupported operand types: non-numeric-string | bool +Unsupported operand types: bool | non-numeric-string +Unsupported operand types: non-numeric-string | bool +Unsupported operand types: bool | non-numeric-string +Unsupported operand types: non-numeric-string | int +Unsupported operand types: int | non-numeric-string +Unsupported operand types: non-numeric-string | float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float | string +Unsupported operand types: float | non-numeric-string No error for "foo" | "123" No error for "123" | "foo" No error for "foo" | "123foo" @@ -897,18 +897,18 @@ No error for "123foo" | "foo" Unsupported operand types: array ^ array Unsupported operand types: stdClass ^ array Unsupported operand types: resource ^ array -Unsupported operand types: array ^ string +Unsupported operand types: array ^ non-numeric-string Unsupported operand types: stdClass ^ array Unsupported operand types: stdClass ^ stdClass Unsupported operand types: stdClass ^ resource -Unsupported operand types: stdClass ^ string +Unsupported operand types: stdClass ^ non-numeric-string Unsupported operand types: resource ^ array Unsupported operand types: stdClass ^ resource Unsupported operand types: resource ^ resource -Unsupported operand types: resource ^ string -Unsupported operand types: string ^ array -Unsupported operand types: stdClass ^ string -Unsupported operand types: resource ^ string +Unsupported operand types: resource ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ array +Unsupported operand types: stdClass ^ non-numeric-string +Unsupported operand types: resource ^ non-numeric-string No error for "foo" ^ "foo" Unsupported operand types: array ^ null Unsupported operand types: null ^ array @@ -923,9 +923,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float ^ array Unsupported operand types: array ^ string Unsupported operand types: string ^ array -Unsupported operand types: array ^ string +Unsupported operand types: array ^ non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ^ array +Unsupported operand types: non-numeric-string ^ array Unsupported operand types: stdClass ^ null Unsupported operand types: stdClass ^ null Unsupported operand types: stdClass ^ bool @@ -938,8 +938,8 @@ Unsupported operand types: stdClass ^ float Unsupported operand types: stdClass ^ float Unsupported operand types: stdClass ^ string Unsupported operand types: stdClass ^ string -Unsupported operand types: stdClass ^ string -Unsupported operand types: stdClass ^ string +Unsupported operand types: stdClass ^ non-numeric-string +Unsupported operand types: stdClass ^ non-numeric-string Unsupported operand types: resource ^ null Unsupported operand types: resource ^ null Unsupported operand types: resource ^ bool @@ -952,19 +952,19 @@ Unsupported operand types: resource ^ float Unsupported operand types: resource ^ float Unsupported operand types: resource ^ string Unsupported operand types: resource ^ string -Unsupported operand types: resource ^ string -Unsupported operand types: resource ^ string -Unsupported operand types: string ^ null -Unsupported operand types: null ^ string -Unsupported operand types: string ^ bool -Unsupported operand types: bool ^ string -Unsupported operand types: string ^ bool -Unsupported operand types: bool ^ string -Unsupported operand types: string ^ int -Unsupported operand types: int ^ string -Unsupported operand types: string ^ float +Unsupported operand types: resource ^ non-numeric-string +Unsupported operand types: resource ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ null +Unsupported operand types: null ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ bool +Unsupported operand types: bool ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ bool +Unsupported operand types: bool ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ int +Unsupported operand types: int ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float ^ string +Unsupported operand types: float ^ non-numeric-string No error for "foo" ^ "123" No error for "123" ^ "foo" No error for "foo" ^ "123foo" @@ -1141,19 +1141,19 @@ ASSIGN OP: No error for [] += [] Unsupported operand types: array + stdClass Unsupported operand types: array + resource -Unsupported operand types: array + string +Unsupported operand types: array + non-numeric-string Unsupported operand types: stdClass + array Unsupported operand types: stdClass + stdClass Unsupported operand types: stdClass + resource -Unsupported operand types: stdClass + string +Unsupported operand types: stdClass + non-numeric-string Unsupported operand types: resource + array Unsupported operand types: resource + stdClass Unsupported operand types: resource + resource -Unsupported operand types: resource + string -Unsupported operand types: string + array -Unsupported operand types: string + stdClass -Unsupported operand types: string + resource -Unsupported operand types: string + string +Unsupported operand types: resource + non-numeric-string +Unsupported operand types: non-numeric-string + array +Unsupported operand types: non-numeric-string + stdClass +Unsupported operand types: non-numeric-string + resource +Unsupported operand types: non-numeric-string + non-numeric-string Unsupported operand types: array + null Unsupported operand types: null + array Unsupported operand types: array + bool @@ -1166,9 +1166,9 @@ Unsupported operand types: array + float Unsupported operand types: float + array Unsupported operand types: array + string Unsupported operand types: string + array -Unsupported operand types: array + string +Unsupported operand types: array + non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string + array +Unsupported operand types: non-numeric-string + array Unsupported operand types: stdClass + null Unsupported operand types: null + stdClass Unsupported operand types: stdClass + bool @@ -1181,9 +1181,9 @@ Unsupported operand types: stdClass + float Unsupported operand types: float + stdClass Unsupported operand types: stdClass + string Unsupported operand types: string + stdClass -Unsupported operand types: stdClass + string +Unsupported operand types: stdClass + non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string + stdClass +Unsupported operand types: non-numeric-string + stdClass Unsupported operand types: resource + null Unsupported operand types: null + resource Unsupported operand types: resource + bool @@ -1196,40 +1196,40 @@ Unsupported operand types: resource + float Unsupported operand types: float + resource Unsupported operand types: resource + string Unsupported operand types: string + resource -Unsupported operand types: resource + string -Warning: A non-numeric value encountered -Unsupported operand types: string + resource -Unsupported operand types: string + null -Unsupported operand types: null + string -Unsupported operand types: string + bool -Unsupported operand types: bool + string -Unsupported operand types: string + bool -Unsupported operand types: bool + string -Unsupported operand types: string + int -Unsupported operand types: int + string -Unsupported operand types: string + float -Unsupported operand types: float + string -Unsupported operand types: string + string -Unsupported operand types: string + string -Unsupported operand types: string + string -Warning: A non-numeric value encountered -Unsupported operand types: string + string +Unsupported operand types: resource + non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string + resource +Unsupported operand types: non-numeric-string + null +Unsupported operand types: null + non-numeric-string +Unsupported operand types: non-numeric-string + bool +Unsupported operand types: bool + non-numeric-string +Unsupported operand types: non-numeric-string + bool +Unsupported operand types: bool + non-numeric-string +Unsupported operand types: non-numeric-string + int +Unsupported operand types: int + non-numeric-string +Unsupported operand types: non-numeric-string + float +Unsupported operand types: float + non-numeric-string +Unsupported operand types: non-numeric-string + string +Unsupported operand types: string + non-numeric-string +Unsupported operand types: non-numeric-string + non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string + non-numeric-string Unsupported operand types: array - array Unsupported operand types: array - stdClass Unsupported operand types: array - resource -Unsupported operand types: array - string +Unsupported operand types: array - non-numeric-string Unsupported operand types: stdClass - array Unsupported operand types: stdClass - stdClass Unsupported operand types: stdClass - resource -Unsupported operand types: stdClass - string +Unsupported operand types: stdClass - non-numeric-string Unsupported operand types: resource - array Unsupported operand types: resource - stdClass Unsupported operand types: resource - resource -Unsupported operand types: resource - string -Unsupported operand types: string - array -Unsupported operand types: string - stdClass -Unsupported operand types: string - resource -Unsupported operand types: string - string +Unsupported operand types: resource - non-numeric-string +Unsupported operand types: non-numeric-string - array +Unsupported operand types: non-numeric-string - stdClass +Unsupported operand types: non-numeric-string - resource +Unsupported operand types: non-numeric-string - non-numeric-string Unsupported operand types: array - null Unsupported operand types: null - array Unsupported operand types: array - bool @@ -1242,9 +1242,9 @@ Unsupported operand types: array - float Unsupported operand types: float - array Unsupported operand types: array - string Unsupported operand types: string - array -Unsupported operand types: array - string +Unsupported operand types: array - non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string - array +Unsupported operand types: non-numeric-string - array Unsupported operand types: stdClass - null Unsupported operand types: null - stdClass Unsupported operand types: stdClass - bool @@ -1257,9 +1257,9 @@ Unsupported operand types: stdClass - float Unsupported operand types: float - stdClass Unsupported operand types: stdClass - string Unsupported operand types: string - stdClass -Unsupported operand types: stdClass - string +Unsupported operand types: stdClass - non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string - stdClass +Unsupported operand types: non-numeric-string - stdClass Unsupported operand types: resource - null Unsupported operand types: null - resource Unsupported operand types: resource - bool @@ -1272,40 +1272,40 @@ Unsupported operand types: resource - float Unsupported operand types: float - resource Unsupported operand types: resource - string Unsupported operand types: string - resource -Unsupported operand types: resource - string -Warning: A non-numeric value encountered -Unsupported operand types: string - resource -Unsupported operand types: string - null -Unsupported operand types: null - string -Unsupported operand types: string - bool -Unsupported operand types: bool - string -Unsupported operand types: string - bool -Unsupported operand types: bool - string -Unsupported operand types: string - int -Unsupported operand types: int - string -Unsupported operand types: string - float -Unsupported operand types: float - string -Unsupported operand types: string - string -Unsupported operand types: string - string -Unsupported operand types: string - string -Warning: A non-numeric value encountered -Unsupported operand types: string - string +Unsupported operand types: resource - non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string - resource +Unsupported operand types: non-numeric-string - null +Unsupported operand types: null - non-numeric-string +Unsupported operand types: non-numeric-string - bool +Unsupported operand types: bool - non-numeric-string +Unsupported operand types: non-numeric-string - bool +Unsupported operand types: bool - non-numeric-string +Unsupported operand types: non-numeric-string - int +Unsupported operand types: int - non-numeric-string +Unsupported operand types: non-numeric-string - float +Unsupported operand types: float - non-numeric-string +Unsupported operand types: non-numeric-string - string +Unsupported operand types: string - non-numeric-string +Unsupported operand types: non-numeric-string - non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string - non-numeric-string Unsupported operand types: array * array Unsupported operand types: array * stdClass Unsupported operand types: array * resource -Unsupported operand types: array * string +Unsupported operand types: array * non-numeric-string Unsupported operand types: stdClass * array Unsupported operand types: stdClass * stdClass Unsupported operand types: stdClass * resource -Unsupported operand types: stdClass * string +Unsupported operand types: stdClass * non-numeric-string Unsupported operand types: resource * array Unsupported operand types: resource * stdClass Unsupported operand types: resource * resource -Unsupported operand types: resource * string -Unsupported operand types: string * array -Unsupported operand types: string * stdClass -Unsupported operand types: string * resource -Unsupported operand types: string * string +Unsupported operand types: resource * non-numeric-string +Unsupported operand types: non-numeric-string * array +Unsupported operand types: non-numeric-string * stdClass +Unsupported operand types: non-numeric-string * resource +Unsupported operand types: non-numeric-string * non-numeric-string Unsupported operand types: array * null Unsupported operand types: null * array Unsupported operand types: array * bool @@ -1318,9 +1318,9 @@ Unsupported operand types: array * float Unsupported operand types: float * array Unsupported operand types: array * string Unsupported operand types: string * array -Unsupported operand types: array * string +Unsupported operand types: array * non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string * array +Unsupported operand types: non-numeric-string * array Unsupported operand types: stdClass * null Unsupported operand types: null * stdClass Unsupported operand types: stdClass * bool @@ -1333,9 +1333,9 @@ Unsupported operand types: stdClass * float Unsupported operand types: float * stdClass Unsupported operand types: stdClass * string Unsupported operand types: string * stdClass -Unsupported operand types: stdClass * string +Unsupported operand types: stdClass * non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string * stdClass +Unsupported operand types: non-numeric-string * stdClass Unsupported operand types: resource * null Unsupported operand types: null * resource Unsupported operand types: resource * bool @@ -1348,40 +1348,40 @@ Unsupported operand types: resource * float Unsupported operand types: float * resource Unsupported operand types: resource * string Unsupported operand types: string * resource -Unsupported operand types: resource * string -Warning: A non-numeric value encountered -Unsupported operand types: string * resource -Unsupported operand types: string * null -Unsupported operand types: null * string -Unsupported operand types: string * bool -Unsupported operand types: bool * string -Unsupported operand types: string * bool -Unsupported operand types: bool * string -Unsupported operand types: string * int -Unsupported operand types: int * string -Unsupported operand types: string * float -Unsupported operand types: float * string -Unsupported operand types: string * string -Unsupported operand types: string * string -Unsupported operand types: string * string -Warning: A non-numeric value encountered -Unsupported operand types: string * string +Unsupported operand types: resource * non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string * resource +Unsupported operand types: non-numeric-string * null +Unsupported operand types: null * non-numeric-string +Unsupported operand types: non-numeric-string * bool +Unsupported operand types: bool * non-numeric-string +Unsupported operand types: non-numeric-string * bool +Unsupported operand types: bool * non-numeric-string +Unsupported operand types: non-numeric-string * int +Unsupported operand types: int * non-numeric-string +Unsupported operand types: non-numeric-string * float +Unsupported operand types: float * non-numeric-string +Unsupported operand types: non-numeric-string * string +Unsupported operand types: string * non-numeric-string +Unsupported operand types: non-numeric-string * non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string * non-numeric-string Unsupported operand types: array / array Unsupported operand types: array / stdClass Unsupported operand types: array / resource -Unsupported operand types: array / string +Unsupported operand types: array / non-numeric-string Unsupported operand types: stdClass / array Unsupported operand types: stdClass / stdClass Unsupported operand types: stdClass / resource -Unsupported operand types: stdClass / string +Unsupported operand types: stdClass / non-numeric-string Unsupported operand types: resource / array Unsupported operand types: resource / stdClass Unsupported operand types: resource / resource -Unsupported operand types: resource / string -Unsupported operand types: string / array -Unsupported operand types: string / stdClass -Unsupported operand types: string / resource -Unsupported operand types: string / string +Unsupported operand types: resource / non-numeric-string +Unsupported operand types: non-numeric-string / array +Unsupported operand types: non-numeric-string / stdClass +Unsupported operand types: non-numeric-string / resource +Unsupported operand types: non-numeric-string / non-numeric-string Unsupported operand types: array / null Unsupported operand types: null / array Unsupported operand types: array / bool @@ -1394,9 +1394,9 @@ Unsupported operand types: array / float Unsupported operand types: float / array Unsupported operand types: array / string Unsupported operand types: string / array -Unsupported operand types: array / string +Unsupported operand types: array / non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string / array +Unsupported operand types: non-numeric-string / array Unsupported operand types: stdClass / null Unsupported operand types: null / stdClass Unsupported operand types: stdClass / bool @@ -1409,9 +1409,9 @@ Unsupported operand types: stdClass / float Unsupported operand types: float / stdClass Unsupported operand types: stdClass / string Unsupported operand types: string / stdClass -Unsupported operand types: stdClass / string +Unsupported operand types: stdClass / non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string / stdClass +Unsupported operand types: non-numeric-string / stdClass Unsupported operand types: resource / null Unsupported operand types: null / resource Unsupported operand types: resource / bool @@ -1424,40 +1424,40 @@ Unsupported operand types: resource / float Unsupported operand types: float / resource Unsupported operand types: resource / string Unsupported operand types: string / resource -Unsupported operand types: resource / string -Warning: A non-numeric value encountered -Unsupported operand types: string / resource -Unsupported operand types: string / null -Unsupported operand types: null / string -Unsupported operand types: string / bool -Unsupported operand types: bool / string -Unsupported operand types: string / bool -Unsupported operand types: bool / string -Unsupported operand types: string / int -Unsupported operand types: int / string -Unsupported operand types: string / float -Unsupported operand types: float / string -Unsupported operand types: string / string -Unsupported operand types: string / string -Unsupported operand types: string / string -Warning: A non-numeric value encountered -Unsupported operand types: string / string +Unsupported operand types: resource / non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string / resource +Unsupported operand types: non-numeric-string / null +Unsupported operand types: null / non-numeric-string +Unsupported operand types: non-numeric-string / bool +Unsupported operand types: bool / non-numeric-string +Unsupported operand types: non-numeric-string / bool +Unsupported operand types: bool / non-numeric-string +Unsupported operand types: non-numeric-string / int +Unsupported operand types: int / non-numeric-string +Unsupported operand types: non-numeric-string / float +Unsupported operand types: float / non-numeric-string +Unsupported operand types: non-numeric-string / string +Unsupported operand types: string / non-numeric-string +Unsupported operand types: non-numeric-string / non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string / non-numeric-string Unsupported operand types: array % array Unsupported operand types: array % stdClass Unsupported operand types: array % resource -Unsupported operand types: array % string +Unsupported operand types: array % non-numeric-string Unsupported operand types: stdClass % array Unsupported operand types: stdClass % stdClass Unsupported operand types: stdClass % resource -Unsupported operand types: stdClass % string +Unsupported operand types: stdClass % non-numeric-string Unsupported operand types: resource % array Unsupported operand types: resource % stdClass Unsupported operand types: resource % resource -Unsupported operand types: resource % string -Unsupported operand types: string % array -Unsupported operand types: string % stdClass -Unsupported operand types: string % resource -Unsupported operand types: string % string +Unsupported operand types: resource % non-numeric-string +Unsupported operand types: non-numeric-string % array +Unsupported operand types: non-numeric-string % stdClass +Unsupported operand types: non-numeric-string % resource +Unsupported operand types: non-numeric-string % non-numeric-string Unsupported operand types: array % null Unsupported operand types: null % array Unsupported operand types: array % bool @@ -1471,9 +1471,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float % array Unsupported operand types: array % string Unsupported operand types: string % array -Unsupported operand types: array % string +Unsupported operand types: array % non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string % array +Unsupported operand types: non-numeric-string % array Unsupported operand types: stdClass % null Unsupported operand types: null % stdClass Unsupported operand types: stdClass % bool @@ -1487,9 +1487,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float % stdClass Unsupported operand types: stdClass % string Unsupported operand types: string % stdClass -Unsupported operand types: stdClass % string +Unsupported operand types: stdClass % non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string % stdClass +Unsupported operand types: non-numeric-string % stdClass Unsupported operand types: resource % null Unsupported operand types: null % resource Unsupported operand types: resource % bool @@ -1503,41 +1503,41 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float % resource Unsupported operand types: resource % string Unsupported operand types: string % resource -Unsupported operand types: resource % string -Warning: A non-numeric value encountered -Unsupported operand types: string % resource -Unsupported operand types: string % null -Unsupported operand types: null % string -Unsupported operand types: string % bool -Unsupported operand types: bool % string -Unsupported operand types: string % bool -Unsupported operand types: bool % string -Unsupported operand types: string % int -Unsupported operand types: int % string -Unsupported operand types: string % float +Unsupported operand types: resource % non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string % resource +Unsupported operand types: non-numeric-string % null +Unsupported operand types: null % non-numeric-string +Unsupported operand types: non-numeric-string % bool +Unsupported operand types: bool % non-numeric-string +Unsupported operand types: non-numeric-string % bool +Unsupported operand types: bool % non-numeric-string +Unsupported operand types: non-numeric-string % int +Unsupported operand types: int % non-numeric-string +Unsupported operand types: non-numeric-string % float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float % string -Unsupported operand types: string % string -Unsupported operand types: string % string -Unsupported operand types: string % string +Unsupported operand types: float % non-numeric-string +Unsupported operand types: non-numeric-string % string +Unsupported operand types: string % non-numeric-string +Unsupported operand types: non-numeric-string % non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string % string +Unsupported operand types: non-numeric-string % non-numeric-string Unsupported operand types: array ** array Unsupported operand types: array ** stdClass Unsupported operand types: array ** resource -Unsupported operand types: array ** string +Unsupported operand types: array ** non-numeric-string Unsupported operand types: stdClass ** array Unsupported operand types: stdClass ** stdClass Unsupported operand types: stdClass ** resource -Unsupported operand types: stdClass ** string +Unsupported operand types: stdClass ** non-numeric-string Unsupported operand types: resource ** array Unsupported operand types: resource ** stdClass Unsupported operand types: resource ** resource -Unsupported operand types: resource ** string -Unsupported operand types: string ** array -Unsupported operand types: string ** stdClass -Unsupported operand types: string ** resource -Unsupported operand types: string ** string +Unsupported operand types: resource ** non-numeric-string +Unsupported operand types: non-numeric-string ** array +Unsupported operand types: non-numeric-string ** stdClass +Unsupported operand types: non-numeric-string ** resource +Unsupported operand types: non-numeric-string ** non-numeric-string Unsupported operand types: array ** null Unsupported operand types: null ** array Unsupported operand types: array ** bool @@ -1550,9 +1550,9 @@ Unsupported operand types: array ** float Unsupported operand types: float ** array Unsupported operand types: array ** string Unsupported operand types: string ** array -Unsupported operand types: array ** string +Unsupported operand types: array ** non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ** array +Unsupported operand types: non-numeric-string ** array Unsupported operand types: stdClass ** null Unsupported operand types: null ** stdClass Unsupported operand types: stdClass ** bool @@ -1565,9 +1565,9 @@ Unsupported operand types: stdClass ** float Unsupported operand types: float ** stdClass Unsupported operand types: stdClass ** string Unsupported operand types: string ** stdClass -Unsupported operand types: stdClass ** string +Unsupported operand types: stdClass ** non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ** stdClass +Unsupported operand types: non-numeric-string ** stdClass Unsupported operand types: resource ** null Unsupported operand types: null ** resource Unsupported operand types: resource ** bool @@ -1580,40 +1580,40 @@ Unsupported operand types: resource ** float Unsupported operand types: float ** resource Unsupported operand types: resource ** string Unsupported operand types: string ** resource -Unsupported operand types: resource ** string -Warning: A non-numeric value encountered -Unsupported operand types: string ** resource -Unsupported operand types: string ** null -Unsupported operand types: null ** string -Unsupported operand types: string ** bool -Unsupported operand types: bool ** string -Unsupported operand types: string ** bool -Unsupported operand types: bool ** string -Unsupported operand types: string ** int -Unsupported operand types: int ** string -Unsupported operand types: string ** float -Unsupported operand types: float ** string -Unsupported operand types: string ** string -Unsupported operand types: string ** string -Unsupported operand types: string ** string -Warning: A non-numeric value encountered -Unsupported operand types: string ** string +Unsupported operand types: resource ** non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string ** resource +Unsupported operand types: non-numeric-string ** null +Unsupported operand types: null ** non-numeric-string +Unsupported operand types: non-numeric-string ** bool +Unsupported operand types: bool ** non-numeric-string +Unsupported operand types: non-numeric-string ** bool +Unsupported operand types: bool ** non-numeric-string +Unsupported operand types: non-numeric-string ** int +Unsupported operand types: int ** non-numeric-string +Unsupported operand types: non-numeric-string ** float +Unsupported operand types: float ** non-numeric-string +Unsupported operand types: non-numeric-string ** string +Unsupported operand types: string ** non-numeric-string +Unsupported operand types: non-numeric-string ** non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string ** non-numeric-string Unsupported operand types: array << array Unsupported operand types: array << stdClass Unsupported operand types: array << resource -Unsupported operand types: array << string +Unsupported operand types: array << non-numeric-string Unsupported operand types: stdClass << array Unsupported operand types: stdClass << stdClass Unsupported operand types: stdClass << resource -Unsupported operand types: stdClass << string +Unsupported operand types: stdClass << non-numeric-string Unsupported operand types: resource << array Unsupported operand types: resource << stdClass Unsupported operand types: resource << resource -Unsupported operand types: resource << string -Unsupported operand types: string << array -Unsupported operand types: string << stdClass -Unsupported operand types: string << resource -Unsupported operand types: string << string +Unsupported operand types: resource << non-numeric-string +Unsupported operand types: non-numeric-string << array +Unsupported operand types: non-numeric-string << stdClass +Unsupported operand types: non-numeric-string << resource +Unsupported operand types: non-numeric-string << non-numeric-string Unsupported operand types: array << null Unsupported operand types: null << array Unsupported operand types: array << bool @@ -1627,9 +1627,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float << array Unsupported operand types: array << string Unsupported operand types: string << array -Unsupported operand types: array << string +Unsupported operand types: array << non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string << array +Unsupported operand types: non-numeric-string << array Unsupported operand types: stdClass << null Unsupported operand types: null << stdClass Unsupported operand types: stdClass << bool @@ -1643,9 +1643,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float << stdClass Unsupported operand types: stdClass << string Unsupported operand types: string << stdClass -Unsupported operand types: stdClass << string +Unsupported operand types: stdClass << non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string << stdClass +Unsupported operand types: non-numeric-string << stdClass Unsupported operand types: resource << null Unsupported operand types: null << resource Unsupported operand types: resource << bool @@ -1659,41 +1659,41 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float << resource Unsupported operand types: resource << string Unsupported operand types: string << resource -Unsupported operand types: resource << string -Warning: A non-numeric value encountered -Unsupported operand types: string << resource -Unsupported operand types: string << null -Unsupported operand types: null << string -Unsupported operand types: string << bool -Unsupported operand types: bool << string -Unsupported operand types: string << bool -Unsupported operand types: bool << string -Unsupported operand types: string << int -Unsupported operand types: int << string -Unsupported operand types: string << float +Unsupported operand types: resource << non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string << resource +Unsupported operand types: non-numeric-string << null +Unsupported operand types: null << non-numeric-string +Unsupported operand types: non-numeric-string << bool +Unsupported operand types: bool << non-numeric-string +Unsupported operand types: non-numeric-string << bool +Unsupported operand types: bool << non-numeric-string +Unsupported operand types: non-numeric-string << int +Unsupported operand types: int << non-numeric-string +Unsupported operand types: non-numeric-string << float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float << string -Unsupported operand types: string << string -Unsupported operand types: string << string -Unsupported operand types: string << string +Unsupported operand types: float << non-numeric-string +Unsupported operand types: non-numeric-string << string +Unsupported operand types: string << non-numeric-string +Unsupported operand types: non-numeric-string << non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string << string +Unsupported operand types: non-numeric-string << non-numeric-string Unsupported operand types: array >> array Unsupported operand types: array >> stdClass Unsupported operand types: array >> resource -Unsupported operand types: array >> string +Unsupported operand types: array >> non-numeric-string Unsupported operand types: stdClass >> array Unsupported operand types: stdClass >> stdClass Unsupported operand types: stdClass >> resource -Unsupported operand types: stdClass >> string +Unsupported operand types: stdClass >> non-numeric-string Unsupported operand types: resource >> array Unsupported operand types: resource >> stdClass Unsupported operand types: resource >> resource -Unsupported operand types: resource >> string -Unsupported operand types: string >> array -Unsupported operand types: string >> stdClass -Unsupported operand types: string >> resource -Unsupported operand types: string >> string +Unsupported operand types: resource >> non-numeric-string +Unsupported operand types: non-numeric-string >> array +Unsupported operand types: non-numeric-string >> stdClass +Unsupported operand types: non-numeric-string >> resource +Unsupported operand types: non-numeric-string >> non-numeric-string Unsupported operand types: array >> null Unsupported operand types: null >> array Unsupported operand types: array >> bool @@ -1707,9 +1707,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float >> array Unsupported operand types: array >> string Unsupported operand types: string >> array -Unsupported operand types: array >> string +Unsupported operand types: array >> non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string >> array +Unsupported operand types: non-numeric-string >> array Unsupported operand types: stdClass >> null Unsupported operand types: null >> stdClass Unsupported operand types: stdClass >> bool @@ -1723,9 +1723,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float >> stdClass Unsupported operand types: stdClass >> string Unsupported operand types: string >> stdClass -Unsupported operand types: stdClass >> string +Unsupported operand types: stdClass >> non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string >> stdClass +Unsupported operand types: non-numeric-string >> stdClass Unsupported operand types: resource >> null Unsupported operand types: null >> resource Unsupported operand types: resource >> bool @@ -1739,40 +1739,40 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float >> resource Unsupported operand types: resource >> string Unsupported operand types: string >> resource -Unsupported operand types: resource >> string -Warning: A non-numeric value encountered -Unsupported operand types: string >> resource -Unsupported operand types: string >> null -Unsupported operand types: null >> string -Unsupported operand types: string >> bool -Unsupported operand types: bool >> string -Unsupported operand types: string >> bool -Unsupported operand types: bool >> string -Unsupported operand types: string >> int -Unsupported operand types: int >> string -Unsupported operand types: string >> float +Unsupported operand types: resource >> non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string >> resource +Unsupported operand types: non-numeric-string >> null +Unsupported operand types: null >> non-numeric-string +Unsupported operand types: non-numeric-string >> bool +Unsupported operand types: bool >> non-numeric-string +Unsupported operand types: non-numeric-string >> bool +Unsupported operand types: bool >> non-numeric-string +Unsupported operand types: non-numeric-string >> int +Unsupported operand types: int >> non-numeric-string +Unsupported operand types: non-numeric-string >> float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float >> string -Unsupported operand types: string >> string -Unsupported operand types: string >> string -Unsupported operand types: string >> string +Unsupported operand types: float >> non-numeric-string +Unsupported operand types: non-numeric-string >> string +Unsupported operand types: string >> non-numeric-string +Unsupported operand types: non-numeric-string >> non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string >> string +Unsupported operand types: non-numeric-string >> non-numeric-string Unsupported operand types: array & array Unsupported operand types: array & stdClass Unsupported operand types: array & resource -Unsupported operand types: array & string +Unsupported operand types: array & non-numeric-string Unsupported operand types: stdClass & array Unsupported operand types: stdClass & stdClass Unsupported operand types: stdClass & resource -Unsupported operand types: stdClass & string +Unsupported operand types: stdClass & non-numeric-string Unsupported operand types: resource & array Unsupported operand types: resource & stdClass Unsupported operand types: resource & resource -Unsupported operand types: resource & string -Unsupported operand types: string & array -Unsupported operand types: string & stdClass -Unsupported operand types: string & resource +Unsupported operand types: resource & non-numeric-string +Unsupported operand types: non-numeric-string & array +Unsupported operand types: non-numeric-string & stdClass +Unsupported operand types: non-numeric-string & resource No error for "foo" &= "foo" Unsupported operand types: array & null Unsupported operand types: null & array @@ -1787,9 +1787,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float & array Unsupported operand types: array & string Unsupported operand types: string & array -Unsupported operand types: array & string +Unsupported operand types: array & non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string & array +Unsupported operand types: non-numeric-string & array Unsupported operand types: stdClass & null Unsupported operand types: null & stdClass Unsupported operand types: stdClass & bool @@ -1803,9 +1803,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float & stdClass Unsupported operand types: stdClass & string Unsupported operand types: string & stdClass -Unsupported operand types: stdClass & string +Unsupported operand types: stdClass & non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string & stdClass +Unsupported operand types: non-numeric-string & stdClass Unsupported operand types: resource & null Unsupported operand types: null & resource Unsupported operand types: resource & bool @@ -1819,20 +1819,20 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float & resource Unsupported operand types: resource & string Unsupported operand types: string & resource -Unsupported operand types: resource & string -Warning: A non-numeric value encountered -Unsupported operand types: string & resource -Unsupported operand types: string & null -Unsupported operand types: null & string -Unsupported operand types: string & bool -Unsupported operand types: bool & string -Unsupported operand types: string & bool -Unsupported operand types: bool & string -Unsupported operand types: string & int -Unsupported operand types: int & string -Unsupported operand types: string & float +Unsupported operand types: resource & non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string & resource +Unsupported operand types: non-numeric-string & null +Unsupported operand types: null & non-numeric-string +Unsupported operand types: non-numeric-string & bool +Unsupported operand types: bool & non-numeric-string +Unsupported operand types: non-numeric-string & bool +Unsupported operand types: bool & non-numeric-string +Unsupported operand types: non-numeric-string & int +Unsupported operand types: int & non-numeric-string +Unsupported operand types: non-numeric-string & float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float & string +Unsupported operand types: float & non-numeric-string No error for "foo" &= "123" No error for "123" &= "foo" No error for "foo" &= "123foo" @@ -1840,18 +1840,18 @@ No error for "123foo" &= "foo" Unsupported operand types: array | array Unsupported operand types: array | stdClass Unsupported operand types: array | resource -Unsupported operand types: array | string +Unsupported operand types: array | non-numeric-string Unsupported operand types: stdClass | array Unsupported operand types: stdClass | stdClass Unsupported operand types: stdClass | resource -Unsupported operand types: stdClass | string +Unsupported operand types: stdClass | non-numeric-string Unsupported operand types: resource | array Unsupported operand types: resource | stdClass Unsupported operand types: resource | resource -Unsupported operand types: resource | string -Unsupported operand types: string | array -Unsupported operand types: string | stdClass -Unsupported operand types: string | resource +Unsupported operand types: resource | non-numeric-string +Unsupported operand types: non-numeric-string | array +Unsupported operand types: non-numeric-string | stdClass +Unsupported operand types: non-numeric-string | resource No error for "foo" |= "foo" Unsupported operand types: array | null Unsupported operand types: null | array @@ -1866,9 +1866,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float | array Unsupported operand types: array | string Unsupported operand types: string | array -Unsupported operand types: array | string +Unsupported operand types: array | non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string | array +Unsupported operand types: non-numeric-string | array Unsupported operand types: stdClass | null Unsupported operand types: null | stdClass Unsupported operand types: stdClass | bool @@ -1882,9 +1882,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float | stdClass Unsupported operand types: stdClass | string Unsupported operand types: string | stdClass -Unsupported operand types: stdClass | string +Unsupported operand types: stdClass | non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string | stdClass +Unsupported operand types: non-numeric-string | stdClass Unsupported operand types: resource | null Unsupported operand types: null | resource Unsupported operand types: resource | bool @@ -1898,20 +1898,20 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float | resource Unsupported operand types: resource | string Unsupported operand types: string | resource -Unsupported operand types: resource | string -Warning: A non-numeric value encountered -Unsupported operand types: string | resource -Unsupported operand types: string | null -Unsupported operand types: null | string -Unsupported operand types: string | bool -Unsupported operand types: bool | string -Unsupported operand types: string | bool -Unsupported operand types: bool | string -Unsupported operand types: string | int -Unsupported operand types: int | string -Unsupported operand types: string | float +Unsupported operand types: resource | non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string | resource +Unsupported operand types: non-numeric-string | null +Unsupported operand types: null | non-numeric-string +Unsupported operand types: non-numeric-string | bool +Unsupported operand types: bool | non-numeric-string +Unsupported operand types: non-numeric-string | bool +Unsupported operand types: bool | non-numeric-string +Unsupported operand types: non-numeric-string | int +Unsupported operand types: int | non-numeric-string +Unsupported operand types: non-numeric-string | float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float | string +Unsupported operand types: float | non-numeric-string No error for "foo" |= "123" No error for "123" |= "foo" No error for "foo" |= "123foo" @@ -1919,18 +1919,18 @@ No error for "123foo" |= "foo" Unsupported operand types: array ^ array Unsupported operand types: array ^ stdClass Unsupported operand types: array ^ resource -Unsupported operand types: array ^ string +Unsupported operand types: array ^ non-numeric-string Unsupported operand types: stdClass ^ array Unsupported operand types: stdClass ^ stdClass Unsupported operand types: stdClass ^ resource -Unsupported operand types: stdClass ^ string +Unsupported operand types: stdClass ^ non-numeric-string Unsupported operand types: resource ^ array Unsupported operand types: resource ^ stdClass Unsupported operand types: resource ^ resource -Unsupported operand types: resource ^ string -Unsupported operand types: string ^ array -Unsupported operand types: string ^ stdClass -Unsupported operand types: string ^ resource +Unsupported operand types: resource ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ array +Unsupported operand types: non-numeric-string ^ stdClass +Unsupported operand types: non-numeric-string ^ resource No error for "foo" ^= "foo" Unsupported operand types: array ^ null Unsupported operand types: null ^ array @@ -1945,9 +1945,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float ^ array Unsupported operand types: array ^ string Unsupported operand types: string ^ array -Unsupported operand types: array ^ string +Unsupported operand types: array ^ non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ^ array +Unsupported operand types: non-numeric-string ^ array Unsupported operand types: stdClass ^ null Unsupported operand types: null ^ stdClass Unsupported operand types: stdClass ^ bool @@ -1961,9 +1961,9 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float ^ stdClass Unsupported operand types: stdClass ^ string Unsupported operand types: string ^ stdClass -Unsupported operand types: stdClass ^ string +Unsupported operand types: stdClass ^ non-numeric-string Warning: A non-numeric value encountered -Unsupported operand types: string ^ stdClass +Unsupported operand types: non-numeric-string ^ stdClass Unsupported operand types: resource ^ null Unsupported operand types: null ^ resource Unsupported operand types: resource ^ bool @@ -1977,20 +1977,20 @@ Warning: Implicit conversion from float 3.5 to int loses precision Unsupported operand types: float ^ resource Unsupported operand types: resource ^ string Unsupported operand types: string ^ resource -Unsupported operand types: resource ^ string -Warning: A non-numeric value encountered -Unsupported operand types: string ^ resource -Unsupported operand types: string ^ null -Unsupported operand types: null ^ string -Unsupported operand types: string ^ bool -Unsupported operand types: bool ^ string -Unsupported operand types: string ^ bool -Unsupported operand types: bool ^ string -Unsupported operand types: string ^ int -Unsupported operand types: int ^ string -Unsupported operand types: string ^ float +Unsupported operand types: resource ^ non-numeric-string +Warning: A non-numeric value encountered +Unsupported operand types: non-numeric-string ^ resource +Unsupported operand types: non-numeric-string ^ null +Unsupported operand types: null ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ bool +Unsupported operand types: bool ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ bool +Unsupported operand types: bool ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ int +Unsupported operand types: int ^ non-numeric-string +Unsupported operand types: non-numeric-string ^ float Warning: Implicit conversion from float 3.5 to int loses precision -Unsupported operand types: float ^ string +Unsupported operand types: float ^ non-numeric-string No error for "foo" ^= "123" No error for "123" ^= "foo" No error for "foo" ^= "123foo" diff --git a/Zend/tests/pipe_operator/type_mismatch.phpt b/Zend/tests/pipe_operator/type_mismatch.phpt index 2cee15bb47a0d..18fbae3afd046 100644 --- a/Zend/tests/pipe_operator/type_mismatch.phpt +++ b/Zend/tests/pipe_operator/type_mismatch.phpt @@ -17,4 +17,4 @@ catch (Throwable $e) { ?> --EXPECTF-- -TypeError: _test(): Argument #1 ($a) must be of type int, string given, called in %s on line %d +TypeError: _test(): Argument #1 ($a) must be of type int, non-numeric-string given, called in %s on line %d diff --git a/Zend/tests/self_and.phpt b/Zend/tests/self_and.phpt index f3662c575c48a..1262f402a5471 100644 --- a/Zend/tests/self_and.phpt +++ b/Zend/tests/self_and.phpt @@ -32,7 +32,7 @@ echo "Done\n"; ?> --EXPECTF-- int(18) -Unsupported operand types: string & int +Unsupported operand types: non-numeric-string & int Warning: A non-numeric value encountered in %s on line %d int(33) diff --git a/Zend/tests/self_mod.phpt b/Zend/tests/self_mod.phpt index 7d469f8002399..b33d9ad4b7e81 100644 --- a/Zend/tests/self_mod.phpt +++ b/Zend/tests/self_mod.phpt @@ -24,7 +24,7 @@ echo "Done\n"; ?> --EXPECTF-- int(13) -Unsupported operand types: string % int +Unsupported operand types: non-numeric-string % int Warning: A non-numeric value encountered in %s on line %d int(3) diff --git a/Zend/tests/self_or.phpt b/Zend/tests/self_or.phpt index 61f1f4203b080..d62fdea1cbbf8 100644 --- a/Zend/tests/self_or.phpt +++ b/Zend/tests/self_or.phpt @@ -32,7 +32,7 @@ echo "Done\n"; ?> --EXPECTF-- int(127) -Unsupported operand types: string | int +Unsupported operand types: non-numeric-string | int Warning: A non-numeric value encountered in %s on line %d int(45345) diff --git a/Zend/tests/self_xor.phpt b/Zend/tests/self_xor.phpt index 4bff3f6d508e2..8bfae9ba81cf4 100644 --- a/Zend/tests/self_xor.phpt +++ b/Zend/tests/self_xor.phpt @@ -32,7 +32,7 @@ echo "Done\n"; ?> --EXPECTF-- int(109) -Unsupported operand types: string ^ int +Unsupported operand types: non-numeric-string ^ int Warning: A non-numeric value encountered in %s on line %d int(45312) diff --git a/Zend/tests/shift_001.phpt b/Zend/tests/shift_001.phpt index f441cf2dcf8ba..3f5f4af1193b1 100644 --- a/Zend/tests/shift_001.phpt +++ b/Zend/tests/shift_001.phpt @@ -24,7 +24,7 @@ echo "Done\n"; ?> --EXPECTF-- int(492) -Unsupported operand types: string << int +Unsupported operand types: non-numeric-string << int Warning: A non-numeric value encountered in %s on line %d int(362760) diff --git a/Zend/tests/shift_002.phpt b/Zend/tests/shift_002.phpt index 0bdc9b3eeb3ce..20bf6d23e40e9 100644 --- a/Zend/tests/shift_002.phpt +++ b/Zend/tests/shift_002.phpt @@ -24,7 +24,7 @@ echo "Done\n"; ?> --EXPECTF-- int(30) -Unsupported operand types: string >> int +Unsupported operand types: non-numeric-string >> int Warning: A non-numeric value encountered in %s on line %d int(5668) diff --git a/Zend/tests/traits/trait_type_errors.phpt b/Zend/tests/traits/trait_type_errors.phpt index d3c7c0582fb18..0779f7404183d 100644 --- a/Zend/tests/traits/trait_type_errors.phpt +++ b/Zend/tests/traits/trait_type_errors.phpt @@ -39,5 +39,5 @@ try { ?> --EXPECTF-- C::test1(): Return value must be of type int, string returned -C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d -C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d +C::test2(): Argument #1 ($arg) must be of type int, non-numeric-string given, called in %s on line %d +C::test3(): Argument #1 ($arg) must be of type int, non-numeric-string given, called in %s on line %d diff --git a/Zend/tests/type_declarations/literal_types/false_no_coercion.phpt b/Zend/tests/type_declarations/literal_types/false_no_coercion.phpt index 61900f993c0e5..ad98e0bb3e18d 100644 --- a/Zend/tests/type_declarations/literal_types/false_no_coercion.phpt +++ b/Zend/tests/type_declarations/literal_types/false_no_coercion.phpt @@ -24,5 +24,5 @@ try { ?> --EXPECTF-- test(): Argument #1 ($v) must be of type false, int given, called in %s on line %d -test(): Argument #1 ($v) must be of type false, string given, called in %s on line %d +test(): Argument #1 ($v) must be of type false, empty-string given, called in %s on line %d test(): Argument #1 ($v) must be of type false, array given, called in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_basic.phpt b/Zend/tests/type_declarations/scalar_basic.phpt index 352c48f8a9e07..a9883466bc1d8 100644 --- a/Zend/tests/type_declarations/scalar_basic.phpt +++ b/Zend/tests/type_declarations/scalar_basic.phpt @@ -76,13 +76,13 @@ E_DEPRECATED: Implicit conversion from float 1.5 to int loses precision on line int(1) *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, empty-string given, called in %s on line %d *** Trying int(%d) int(%d) @@ -129,13 +129,13 @@ float(1) float(1.5) *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, empty-string given, called in %s on line %d *** Trying int(%d) float(%s) diff --git a/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt b/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt index 72cc9820dad4f..2989a0c0ac546 100644 --- a/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt +++ b/Zend/tests/type_declarations/scalar_constant_defaults_error.phpt @@ -13,7 +13,7 @@ var_dump(int_val()); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: int_val(): Argument #1 ($a) must be of type int, string given, called in %s:%d +Fatal error: Uncaught TypeError: int_val(): Argument #1 ($a) must be of type int, non-numeric-string given, called in %s:%d Stack trace: #0 %s(%d): int_val() #1 {main} diff --git a/Zend/tests/type_declarations/scalar_strict.phpt b/Zend/tests/type_declarations/scalar_strict.phpt index 626f322d8701f..5c4d031a9f78b 100644 --- a/Zend/tests/type_declarations/scalar_strict.phpt +++ b/Zend/tests/type_declarations/scalar_strict.phpt @@ -69,13 +69,13 @@ int(1) *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, empty-string given, called in %s on line %d *** Trying int(2147483647) int(2147483647) @@ -84,10 +84,10 @@ int(2147483647) *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d *** Trying bool(true) -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d *** Trying bool(false) -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d *** Trying NULL *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d @@ -122,13 +122,13 @@ float(1) float(1.5) *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, empty-string given, called in %s on line %d *** Trying int(2147483647) float(2147483647) @@ -137,10 +137,10 @@ float(2147483647) float(NAN) *** Trying bool(true) -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d *** Trying bool(false) -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d *** Trying NULL *** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d @@ -190,10 +190,10 @@ string(0) "" *** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d *** Trying bool(true) -*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d *** Trying bool(false) -*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d *** Trying NULL *** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d @@ -228,13 +228,13 @@ Testing 'bool' type: *** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, empty-string given, called in %s on line %d *** Trying int(2147483647) *** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_strict_64bit.phpt b/Zend/tests/type_declarations/scalar_strict_64bit.phpt index b7f2ce0de4396..12bfecdebfd7e 100644 --- a/Zend/tests/type_declarations/scalar_strict_64bit.phpt +++ b/Zend/tests/type_declarations/scalar_strict_64bit.phpt @@ -69,13 +69,13 @@ int(1) *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, empty-string given, called in %s on line %d *** Trying int(9223372036854775807) int(9223372036854775807) @@ -84,10 +84,10 @@ int(9223372036854775807) *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d *** Trying bool(true) -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d *** Trying bool(false) -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d *** Trying NULL *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d @@ -122,13 +122,13 @@ float(1) float(1.5) *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, empty-string given, called in %s on line %d *** Trying int(9223372036854775807) float(9.223372036854776E+18) @@ -137,10 +137,10 @@ float(9.223372036854776E+18) float(NAN) *** Trying bool(true) -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d *** Trying bool(false) -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d *** Trying NULL *** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d @@ -190,10 +190,10 @@ string(0) "" *** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d *** Trying bool(true) -*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d *** Trying bool(false) -*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d *** Trying NULL *** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d @@ -228,13 +228,13 @@ Testing 'bool' type: *** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d *** Trying string(2) "1a" -*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric-string given, called in %s on line %d *** Trying string(1) "a" -*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric-string given, called in %s on line %d *** Trying string(0) "" -*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, empty-string given, called in %s on line %d *** Trying int(9223372036854775807) *** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d diff --git a/Zend/tests/type_declarations/scalar_strict_basic.phpt b/Zend/tests/type_declarations/scalar_strict_basic.phpt index 462bed7983d6c..7ae479a37af6c 100644 --- a/Zend/tests/type_declarations/scalar_strict_basic.phpt +++ b/Zend/tests/type_declarations/scalar_strict_basic.phpt @@ -63,10 +63,10 @@ int(1) *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, string given, called in %s on line %d *** Trying true value -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d *** Trying false value -*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d *** Trying null value *** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d @@ -92,10 +92,10 @@ float(1) *** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d *** Trying true value -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d *** Trying false value -*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d *** Trying null value *** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d @@ -121,10 +121,10 @@ Testing 'string' type: string(1) "1" *** Trying true value -*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, true given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d *** Trying false value -*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, false given, called in %s on line %d +*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d *** Trying null value *** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d diff --git a/Zend/tests/type_declarations/union_types/type_checking_strict.phpt b/Zend/tests/type_declarations/union_types/type_checking_strict.phpt index a2a0584b5cef9..3a827265fdf7d 100644 --- a/Zend/tests/type_declarations/union_types/type_checking_strict.phpt +++ b/Zend/tests/type_declarations/union_types/type_checking_strict.phpt @@ -68,11 +68,11 @@ Type int|float: INF => INF "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given -true => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, true given -false => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, false given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, empty-string given +true => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, bool given +false => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, bool given null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, null given [] => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, array given new stdClass => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, stdClass given @@ -84,10 +84,10 @@ Type int|float|false: INF => INF "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given -true => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, true given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, empty-string given +true => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, bool given false => false null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, null given [] => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, array given @@ -100,9 +100,9 @@ Type int|float|bool: INF => INF "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, string given "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, string given -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, string given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, empty-string given true => true false => false null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|bool, null given @@ -116,9 +116,9 @@ Type int|bool: INF => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, float given "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, string given "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, string given -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, string given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, empty-string given true => true false => false null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|bool, null given @@ -135,8 +135,8 @@ INF => {closure:%s:%d}(): Argument #1 ($arg) must be of type string "42x" => "42x" "x" => "x" "" => "" -true => {closure:%s:%d}(): Argument #1 ($arg) must be of type string|int|null, true given -false => {closure:%s:%d}(): Argument #1 ($arg) must be of type string|int|null, false given +true => {closure:%s:%d}(): Argument #1 ($arg) must be of type string|int|null, bool given +false => {closure:%s:%d}(): Argument #1 ($arg) must be of type string|int|null, bool given null => null [] => {closure:%s:%d}(): Argument #1 ($arg) must be of type string|int|null, array given new stdClass => {closure:%s:%d}(): Argument #1 ($arg) must be of type string|int|null, stdClass given @@ -164,11 +164,11 @@ Type float|array: INF => INF "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given -true => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, true given -false => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, false given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, empty-string given +true => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, bool given +false => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, bool given null => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, null given [] => [] new stdClass => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, stdClass given @@ -183,8 +183,8 @@ INF => {closure:%s:%d}(): Argument #1 ($arg) must be of type array| "42x" => "42x" "x" => "x" "" => "" -true => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|string, true given -false => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|string, false given +true => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|string, bool given +false => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|string, bool given null => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|string, null given [] => [] new stdClass => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|string, stdClass given @@ -196,9 +196,9 @@ Type bool|array: INF => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, float given "42" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, string given "42.0" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, string given -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, string given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, empty-string given true => true false => false null => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|bool, null given diff --git a/Zend/tests/type_declarations/union_types/type_checking_weak.phpt b/Zend/tests/type_declarations/union_types/type_checking_weak.phpt index 9031b002b2a09..066e05dc7cb99 100644 --- a/Zend/tests/type_declarations/union_types/type_checking_weak.phpt +++ b/Zend/tests/type_declarations/union_types/type_checking_weak.phpt @@ -66,9 +66,9 @@ Type int|float: INF => INF "42" => 42 "42.0" => 42.0 -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, string given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, empty-string given true => 1 false => 0 null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float, null given @@ -82,9 +82,9 @@ Type int|float|false: INF => INF "42" => 42 "42.0" => 42.0 -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, string given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, empty-string given true => 1 false => false null => {closure:%s:%d}(): Argument #1 ($arg) must be of type int|float|false, null given @@ -162,9 +162,9 @@ Type float|array: INF => INF "42" => 42.0 "42.0" => 42.0 -"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given -"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given -"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, string given +"42x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, non-numeric-string given +"x" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, non-numeric-string given +"" => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, empty-string given true => 1.0 false => 0.0 null => {closure:%s:%d}(): Argument #1 ($arg) must be of type array|float, null given diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 601d753bd2aa6..1da482abcf6b6 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -149,6 +149,33 @@ ZEND_API const char *zend_zval_value_name(const zval *arg) return zend_get_type_by_const(Z_TYPE_P(arg)); } +ZEND_API const char *zend_zval_numeric_string_value_name(const zval *arg) +{ + const zval *val = arg; + + ZVAL_DEREF(val); + + if (Z_TYPE_P(val) == IS_STRING) { + if (Z_STRLEN_P(val) == 0) { + return "empty-string"; + } + + zend_long lval; + double dval; + + bool trailing_data = false; + if (is_numeric_string_ex(Z_STRVAL_P(val), Z_STRLEN_P(val),&lval, &dval, 0, NULL, &trailing_data)) + { + return "string"; + } + + return "non-numeric-string"; + } + + return zend_zval_type_name(val); +} + + ZEND_API const char *zend_zval_type_name(const zval *arg) { ZVAL_DEREF(arg); diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 1bb47a2e8703d..2906f88a1b041 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -365,6 +365,7 @@ ZEND_API zend_result zend_parse_parameters_ex(int flags, uint32_t num_args, cons zend_parse_parameters(num_args, __VA_ARGS__) ZEND_API const char *zend_zval_type_name(const zval *arg); ZEND_API const char *zend_zval_value_name(const zval *arg); +ZEND_API const char *zend_zval_numeric_string_value_name(const zval *arg); ZEND_API zend_string *zend_zval_get_legacy_type(const zval *arg); ZEND_API zend_result zend_parse_method_parameters(uint32_t num_args, zval *this_ptr, const char *type_spec, ...); diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index d411dcbc3b953..f290323e4b359 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -718,6 +718,9 @@ ZEND_API ZEND_COLD void zend_verify_arg_error( ZEND_ASSERT(zf->common.type == ZEND_USER_FUNCTION && "Arginfo verification is not performed for internal functions"); + + given_msg = zend_zval_numeric_string_value_name(value); + if (ptr && ptr->func && ZEND_USER_CODE(ptr->func->common.type)) { zend_argument_type_error(arg_num, "must be of type %s, %s given, called in %s on line %d", ZSTR_VAL(need_msg), given_msg, diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 2550fcbeb1cde..bd337c0c7eb57 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -1122,7 +1122,7 @@ static ZEND_COLD zend_never_inline void ZEND_FASTCALL zend_binop_error(const cha } zend_type_error("Unsupported operand types: %s %s %s", - zend_zval_type_name(op1), operator, zend_zval_type_name(op2)); + zend_zval_numeric_string_value_name(op1), operator, zend_zval_numeric_string_value_name(op2)); } /* }}} */ diff --git a/ext/opcache/tests/jit/add_005.phpt b/ext/opcache/tests/jit/add_005.phpt index e44565266c24c..ee210068a02c1 100644 --- a/ext/opcache/tests/jit/add_005.phpt +++ b/ext/opcache/tests/jit/add_005.phpt @@ -16,7 +16,7 @@ function foo($var) { foo("hello"); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: Unsupported operand types: string + int in %s:%d +Fatal error: Uncaught TypeError: Unsupported operand types: non-numeric-string + int in %s:%d Stack trace: #0 %s(%d): foo('hello') #1 {main} diff --git a/ext/opcache/tests/jit/assign_dim_op_001.phpt b/ext/opcache/tests/jit/assign_dim_op_001.phpt index c5b057e926030..802807a977c4d 100644 --- a/ext/opcache/tests/jit/assign_dim_op_001.phpt +++ b/ext/opcache/tests/jit/assign_dim_op_001.phpt @@ -104,4 +104,4 @@ array(1) { Deprecated: Automatic conversion of false to array is deprecated in %s on line %d Cannot access offset of type array on array -Unsupported operand types: null % string +Unsupported operand types: null % empty-string diff --git a/ext/opcache/tests/jit/mul_005.phpt b/ext/opcache/tests/jit/mul_005.phpt index 7476d215f1307..9ceafb5af72b9 100644 --- a/ext/opcache/tests/jit/mul_005.phpt +++ b/ext/opcache/tests/jit/mul_005.phpt @@ -21,4 +21,4 @@ try { } ?> --EXPECT-- -Unsupported operand types: string * int +Unsupported operand types: non-numeric-string * int diff --git a/ext/opcache/tests/jit/mul_010.phpt b/ext/opcache/tests/jit/mul_010.phpt index 6c94f8164487a..7450cf00141b4 100644 --- a/ext/opcache/tests/jit/mul_010.phpt +++ b/ext/opcache/tests/jit/mul_010.phpt @@ -29,4 +29,4 @@ try { } ?> --EXPECT-- -Unsupported operand types: string * float +Unsupported operand types: non-numeric-string * float diff --git a/ext/pdo/tests/pdo_fetch_function_incorrect_call.phpt b/ext/pdo/tests/pdo_fetch_function_incorrect_call.phpt index 63c342b598f73..e7e1288711f29 100644 --- a/ext/pdo/tests/pdo_fetch_function_incorrect_call.phpt +++ b/ext/pdo/tests/pdo_fetch_function_incorrect_call.phpt @@ -47,4 +47,4 @@ PDOTest::dropTableIfExists($db, "pdo_fetch_function_incorrect_call"); ?> --EXPECT-- Fetch all with bogus call: -TypeError: bogusCallback(): Argument #1 ($obj) must be of type stdClass, string given +TypeError: bogusCallback(): Argument #1 ($obj) must be of type stdClass, non-numeric-string given diff --git a/ext/standard/tests/math/pow_variation1.phpt b/ext/standard/tests/math/pow_variation1.phpt index cdb876f034ad8..311892b9e815f 100644 --- a/ext/standard/tests/math/pow_variation1.phpt +++ b/ext/standard/tests/math/pow_variation1.phpt @@ -80,9 +80,9 @@ float(0.125) int(0) int(1) int(0) -Unsupported operand types: string ** int +Unsupported operand types: empty-string ** int Unsupported operand types: array ** int -Unsupported operand types: string ** int +Unsupported operand types: non-numeric-string ** int float(166.375) int(8) float(0.000250047) diff --git a/ext/standard/tests/math/pow_variation1_64bit.phpt b/ext/standard/tests/math/pow_variation1_64bit.phpt index debc8b16d2b03..bfccaf8e5ee82 100644 --- a/ext/standard/tests/math/pow_variation1_64bit.phpt +++ b/ext/standard/tests/math/pow_variation1_64bit.phpt @@ -78,9 +78,9 @@ float(0.125) int(0) int(1) int(0) -Unsupported operand types: string ** int +Unsupported operand types: empty-string ** int Unsupported operand types: array ** int -Unsupported operand types: string ** int +Unsupported operand types: non-numeric-string ** int float(1157.625) int(8) float(0.000250047) diff --git a/ext/standard/tests/math/pow_variation2.phpt b/ext/standard/tests/math/pow_variation2.phpt index 47a4845faade4..1f7e103215c94 100644 --- a/ext/standard/tests/math/pow_variation2.phpt +++ b/ext/standard/tests/math/pow_variation2.phpt @@ -74,9 +74,9 @@ float(4.5055521304275) float(1) float(20.3) float(1) -Unsupported operand types: float ** string +Unsupported operand types: float ** empty-string Unsupported operand types: float ** array -Unsupported operand types: float ** string +Unsupported operand types: float ** non-numeric-string float(15532029.564086) float(412.09) float(1.2088495422866) diff --git a/ext/zend_test/tests/zend_object_init_with_constructor.phpt b/ext/zend_test/tests/zend_object_init_with_constructor.phpt index 65b111447f0bf..bf45bd7c49155 100644 --- a/ext/zend_test/tests/zend_object_init_with_constructor.phpt +++ b/ext/zend_test/tests/zend_object_init_with_constructor.phpt @@ -150,7 +150,7 @@ Error: Call to private PrivateUser::__construct() from global scope Exception: Don't construct Testing param passing ArgumentCountError: Too few arguments to function TestUserWithConstructorArgs::__construct(), 0 passed and exactly 2 expected -TypeError: TestUserWithConstructorArgs::__construct(): Argument #1 ($int_param) must be of type int, string given +TypeError: TestUserWithConstructorArgs::__construct(): Argument #1 ($int_param) must be of type int, non-numeric-string given Error: Unknown named parameter $unused_param object(TestUserWithConstructorArgs)#1 (0) { } diff --git a/tests/lang/bug28800.phpt b/tests/lang/bug28800.phpt index 487c57d24e4aa..5c98f198d3066 100644 --- a/tests/lang/bug28800.phpt +++ b/tests/lang/bug28800.phpt @@ -12,10 +12,10 @@ Bug #28800 (Incorrect string to number conversion for strings starting with 'inf } ?> --EXPECT-- -Unsupported operand types: string + int -Unsupported operand types: string + int -Unsupported operand types: string + int -Unsupported operand types: string + int -Unsupported operand types: string + int -Unsupported operand types: string + int +Unsupported operand types: non-numeric-string + int +Unsupported operand types: non-numeric-string + int +Unsupported operand types: non-numeric-string + int +Unsupported operand types: non-numeric-string + int +Unsupported operand types: non-numeric-string + int +Unsupported operand types: non-numeric-string + int diff --git a/tests/lang/operators/add_variationStr.phpt b/tests/lang/operators/add_variationStr.phpt index 9f8f19dadbdd7..1222ae23b3e17 100644 --- a/tests/lang/operators/add_variationStr.phpt +++ b/tests/lang/operators/add_variationStr.phpt @@ -34,7 +34,7 @@ float(1.2) --- testing: '0' + '-7.7' --- float(-7.7) --- testing: '0' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '0' + '123abc' --- int(123) --- testing: '0' + '123e5' --- @@ -50,7 +50,7 @@ int(123) --- testing: '0' + '3.4a' --- float(3.4) --- testing: '0' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '65' + '0' --- int(65) --- testing: '65' + '65' --- @@ -62,7 +62,7 @@ float(66.2) --- testing: '65' + '-7.7' --- float(57.3) --- testing: '65' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '65' + '123abc' --- int(188) --- testing: '65' + '123e5' --- @@ -78,7 +78,7 @@ int(188) --- testing: '65' + '3.4a' --- float(68.4) --- testing: '65' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '-44' + '0' --- int(-44) --- testing: '-44' + '65' --- @@ -90,7 +90,7 @@ float(-42.8) --- testing: '-44' + '-7.7' --- float(-51.7) --- testing: '-44' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '-44' + '123abc' --- int(79) --- testing: '-44' + '123e5' --- @@ -106,7 +106,7 @@ int(79) --- testing: '-44' + '3.4a' --- float(-40.6) --- testing: '-44' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '1.2' + '0' --- float(1.2) --- testing: '1.2' + '65' --- @@ -118,7 +118,7 @@ float(2.4) --- testing: '1.2' + '-7.7' --- float(-6.5) --- testing: '1.2' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '1.2' + '123abc' --- float(124.2) --- testing: '1.2' + '123e5' --- @@ -134,7 +134,7 @@ float(124.2) --- testing: '1.2' + '3.4a' --- float(4.6) --- testing: '1.2' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '-7.7' + '0' --- float(-7.7) --- testing: '-7.7' + '65' --- @@ -146,7 +146,7 @@ float(-6.5) --- testing: '-7.7' + '-7.7' --- float(-15.4) --- testing: '-7.7' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '-7.7' + '123abc' --- float(115.3) --- testing: '-7.7' + '123e5' --- @@ -162,35 +162,35 @@ float(115.3) --- testing: '-7.7' + '3.4a' --- float(-4.300000000000001) --- testing: '-7.7' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: 'abc' + '0' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'abc' + '65' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'abc' + '-44' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'abc' + '1.2' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'abc' + '-7.7' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'abc' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + '123abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + '123e5' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'abc' + '123e5xyz' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + ' 123abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + '123 abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + '123abc ' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + '3.4a' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'abc' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123abc' + '0' --- int(123) --- testing: '123abc' + '65' --- @@ -202,7 +202,7 @@ float(124.2) --- testing: '123abc' + '-7.7' --- float(115.3) --- testing: '123abc' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123abc' + '123abc' --- int(246) --- testing: '123abc' + '123e5' --- @@ -218,7 +218,7 @@ int(246) --- testing: '123abc' + '3.4a' --- float(126.4) --- testing: '123abc' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123e5' + '0' --- float(12300000) --- testing: '123e5' + '65' --- @@ -230,7 +230,7 @@ float(12300001.2) --- testing: '123e5' + '-7.7' --- float(12299992.3) --- testing: '123e5' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '123e5' + '123abc' --- float(12300123) --- testing: '123e5' + '123e5' --- @@ -246,7 +246,7 @@ float(12300123) --- testing: '123e5' + '3.4a' --- float(12300003.4) --- testing: '123e5' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: string + non-numeric-string --- testing: '123e5xyz' + '0' --- float(12300000) --- testing: '123e5xyz' + '65' --- @@ -258,7 +258,7 @@ float(12300001.2) --- testing: '123e5xyz' + '-7.7' --- float(12299992.3) --- testing: '123e5xyz' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123e5xyz' + '123abc' --- float(12300123) --- testing: '123e5xyz' + '123e5' --- @@ -274,7 +274,7 @@ float(12300123) --- testing: '123e5xyz' + '3.4a' --- float(12300003.4) --- testing: '123e5xyz' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: ' 123abc' + '0' --- int(123) --- testing: ' 123abc' + '65' --- @@ -286,7 +286,7 @@ float(124.2) --- testing: ' 123abc' + '-7.7' --- float(115.3) --- testing: ' 123abc' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: ' 123abc' + '123abc' --- int(246) --- testing: ' 123abc' + '123e5' --- @@ -302,7 +302,7 @@ int(246) --- testing: ' 123abc' + '3.4a' --- float(126.4) --- testing: ' 123abc' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123 abc' + '0' --- int(123) --- testing: '123 abc' + '65' --- @@ -314,7 +314,7 @@ float(124.2) --- testing: '123 abc' + '-7.7' --- float(115.3) --- testing: '123 abc' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123 abc' + '123abc' --- int(246) --- testing: '123 abc' + '123e5' --- @@ -330,7 +330,7 @@ int(246) --- testing: '123 abc' + '3.4a' --- float(126.4) --- testing: '123 abc' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123abc ' + '0' --- int(123) --- testing: '123abc ' + '65' --- @@ -342,7 +342,7 @@ float(124.2) --- testing: '123abc ' + '-7.7' --- float(115.3) --- testing: '123abc ' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '123abc ' + '123abc' --- int(246) --- testing: '123abc ' + '123e5' --- @@ -358,7 +358,7 @@ int(246) --- testing: '123abc ' + '3.4a' --- float(126.4) --- testing: '123abc ' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '3.4a' + '0' --- float(3.4) --- testing: '3.4a' + '65' --- @@ -370,7 +370,7 @@ float(4.6) --- testing: '3.4a' + '-7.7' --- float(-4.300000000000001) --- testing: '3.4a' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: '3.4a' + '123abc' --- float(126.4) --- testing: '3.4a' + '123e5' --- @@ -386,32 +386,32 @@ float(126.4) --- testing: '3.4a' + '3.4a' --- float(6.8) --- testing: '3.4a' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + '0' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'a5.9' + '65' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'a5.9' + '-44' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'a5.9' + '1.2' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'a5.9' + '-7.7' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'a5.9' + 'abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + '123abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + '123e5' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + string --- testing: 'a5.9' + '123e5xyz' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + ' 123abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + '123 abc' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + '123abc ' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + '3.4a' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string --- testing: 'a5.9' + 'a5.9' --- -Unsupported operand types: string + string +Unsupported operand types: non-numeric-string + non-numeric-string diff --git a/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt b/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt index cf227ddf8f8f6..0524238a53943 100644 --- a/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt +++ b/tests/lang/operators/bitwiseShiftLeft_variationStr.phpt @@ -34,7 +34,7 @@ int(0) --- testing: '0' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '0' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '0' << '123abc' --- int(0) --- testing: '0' << '123e5' --- @@ -50,7 +50,7 @@ int(0) --- testing: '0' << '3.4a' --- int(0) --- testing: '0' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '65' << '0' --- int(65) --- testing: '65' << '65' --- @@ -62,7 +62,7 @@ int(130) --- testing: '65' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '65' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '65' << '123abc' --- int(0) --- testing: '65' << '123e5' --- @@ -78,7 +78,7 @@ int(0) --- testing: '65' << '3.4a' --- int(520) --- testing: '65' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-44' << '0' --- int(-44) --- testing: '-44' << '65' --- @@ -90,7 +90,7 @@ int(-88) --- testing: '-44' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '-44' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-44' << '123abc' --- int(0) --- testing: '-44' << '123e5' --- @@ -106,7 +106,7 @@ int(0) --- testing: '-44' << '3.4a' --- int(-352) --- testing: '-44' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '1.2' << '0' --- int(1) --- testing: '1.2' << '65' --- @@ -118,7 +118,7 @@ int(2) --- testing: '1.2' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '1.2' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '1.2' << '123abc' --- int(0) --- testing: '1.2' << '123e5' --- @@ -134,7 +134,7 @@ int(0) --- testing: '1.2' << '3.4a' --- int(8) --- testing: '1.2' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-7.7' << '0' --- int(-7) --- testing: '-7.7' << '65' --- @@ -146,7 +146,7 @@ int(-14) --- testing: '-7.7' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '-7.7' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-7.7' << '123abc' --- int(0) --- testing: '-7.7' << '123e5' --- @@ -162,35 +162,35 @@ int(0) --- testing: '-7.7' << '3.4a' --- int(-56) --- testing: '-7.7' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: 'abc' << '0' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '65' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '-44' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '1.2' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '-7.7' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123e5' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '123e5xyz' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << ' 123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123 abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123abc ' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '3.4a' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc' << '0' --- int(123) --- testing: '123abc' << '65' --- @@ -202,7 +202,7 @@ int(246) --- testing: '123abc' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc' << '123abc' --- int(0) --- testing: '123abc' << '123e5' --- @@ -218,7 +218,7 @@ int(0) --- testing: '123abc' << '3.4a' --- int(984) --- testing: '123abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123e5' << '0' --- int(12300000) --- testing: '123e5' << '65' --- @@ -230,7 +230,7 @@ int(24600000) --- testing: '123e5' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123e5' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '123e5' << '123abc' --- int(0) --- testing: '123e5' << '123e5' --- @@ -246,7 +246,7 @@ int(0) --- testing: '123e5' << '3.4a' --- int(98400000) --- testing: '123e5' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '123e5xyz' << '0' --- int(12300000) --- testing: '123e5xyz' << '65' --- @@ -258,7 +258,7 @@ int(24600000) --- testing: '123e5xyz' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123e5xyz' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123e5xyz' << '123abc' --- int(0) --- testing: '123e5xyz' << '123e5' --- @@ -274,7 +274,7 @@ int(0) --- testing: '123e5xyz' << '3.4a' --- int(98400000) --- testing: '123e5xyz' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: ' 123abc' << '0' --- int(123) --- testing: ' 123abc' << '65' --- @@ -286,7 +286,7 @@ int(246) --- testing: ' 123abc' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: ' 123abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: ' 123abc' << '123abc' --- int(0) --- testing: ' 123abc' << '123e5' --- @@ -302,7 +302,7 @@ int(0) --- testing: ' 123abc' << '3.4a' --- int(984) --- testing: ' 123abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123 abc' << '0' --- int(123) --- testing: '123 abc' << '65' --- @@ -314,7 +314,7 @@ int(246) --- testing: '123 abc' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123 abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123 abc' << '123abc' --- int(0) --- testing: '123 abc' << '123e5' --- @@ -330,7 +330,7 @@ int(0) --- testing: '123 abc' << '3.4a' --- int(984) --- testing: '123 abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc ' << '0' --- int(123) --- testing: '123abc ' << '65' --- @@ -342,7 +342,7 @@ int(246) --- testing: '123abc ' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123abc ' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc ' << '123abc' --- int(0) --- testing: '123abc ' << '123e5' --- @@ -358,7 +358,7 @@ int(0) --- testing: '123abc ' << '3.4a' --- int(984) --- testing: '123abc ' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '3.4a' << '0' --- int(3) --- testing: '3.4a' << '65' --- @@ -370,7 +370,7 @@ int(6) --- testing: '3.4a' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '3.4a' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '3.4a' << '123abc' --- int(0) --- testing: '3.4a' << '123e5' --- @@ -386,32 +386,32 @@ int(0) --- testing: '3.4a' << '3.4a' --- int(24) --- testing: '3.4a' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '0' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '65' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '-44' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '1.2' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '-7.7' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123e5' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '123e5xyz' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << ' 123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123 abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123abc ' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '3.4a' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string diff --git a/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt b/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt index c3e7af98928a1..9391f4a0ac055 100644 --- a/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt +++ b/tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt @@ -39,7 +39,7 @@ int(0) --- testing: '0' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '0' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '0' << '123abc' --- int(0) --- testing: '0' << '123e5' --- @@ -55,7 +55,7 @@ int(0) --- testing: '0' << '3.4a' --- int(0) --- testing: '0' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '65' << '0' --- int(65) --- testing: '65' << '65' --- @@ -67,7 +67,7 @@ int(130) --- testing: '65' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '65' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '65' << '123abc' --- int(0) --- testing: '65' << '123e5' --- @@ -83,7 +83,7 @@ int(0) --- testing: '65' << '3.4a' --- int(520) --- testing: '65' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-44' << '0' --- int(-44) --- testing: '-44' << '65' --- @@ -95,7 +95,7 @@ int(-88) --- testing: '-44' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '-44' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-44' << '123abc' --- int(0) --- testing: '-44' << '123e5' --- @@ -111,7 +111,7 @@ int(0) --- testing: '-44' << '3.4a' --- int(-352) --- testing: '-44' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '1.2' << '0' --- int(1) --- testing: '1.2' << '65' --- @@ -123,7 +123,7 @@ int(2) --- testing: '1.2' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '1.2' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '1.2' << '123abc' --- int(0) --- testing: '1.2' << '123e5' --- @@ -139,7 +139,7 @@ int(0) --- testing: '1.2' << '3.4a' --- int(8) --- testing: '1.2' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-7.7' << '0' --- int(-7) --- testing: '-7.7' << '65' --- @@ -151,7 +151,7 @@ int(-14) --- testing: '-7.7' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '-7.7' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '-7.7' << '123abc' --- int(0) --- testing: '-7.7' << '123e5' --- @@ -167,35 +167,35 @@ int(0) --- testing: '-7.7' << '3.4a' --- int(-56) --- testing: '-7.7' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: 'abc' << '0' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '65' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '-44' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '1.2' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '-7.7' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123e5' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'abc' << '123e5xyz' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << ' 123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123 abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '123abc ' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << '3.4a' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc' << '0' --- int(123) --- testing: '123abc' << '65' --- @@ -207,7 +207,7 @@ int(246) --- testing: '123abc' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc' << '123abc' --- int(0) --- testing: '123abc' << '123e5' --- @@ -223,7 +223,7 @@ int(0) --- testing: '123abc' << '3.4a' --- int(984) --- testing: '123abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123e5' << '0' --- int(12300000) --- testing: '123e5' << '65' --- @@ -235,7 +235,7 @@ int(24600000) --- testing: '123e5' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123e5' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '123e5' << '123abc' --- int(0) --- testing: '123e5' << '123e5' --- @@ -251,7 +251,7 @@ int(0) --- testing: '123e5' << '3.4a' --- int(98400000) --- testing: '123e5' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: string << non-numeric-string --- testing: '123e5xyz' << '0' --- int(12300000) --- testing: '123e5xyz' << '65' --- @@ -263,7 +263,7 @@ int(24600000) --- testing: '123e5xyz' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123e5xyz' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123e5xyz' << '123abc' --- int(0) --- testing: '123e5xyz' << '123e5' --- @@ -279,7 +279,7 @@ int(0) --- testing: '123e5xyz' << '3.4a' --- int(98400000) --- testing: '123e5xyz' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: ' 123abc' << '0' --- int(123) --- testing: ' 123abc' << '65' --- @@ -291,7 +291,7 @@ int(246) --- testing: ' 123abc' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: ' 123abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: ' 123abc' << '123abc' --- int(0) --- testing: ' 123abc' << '123e5' --- @@ -307,7 +307,7 @@ int(0) --- testing: ' 123abc' << '3.4a' --- int(984) --- testing: ' 123abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123 abc' << '0' --- int(123) --- testing: '123 abc' << '65' --- @@ -319,7 +319,7 @@ int(246) --- testing: '123 abc' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123 abc' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123 abc' << '123abc' --- int(0) --- testing: '123 abc' << '123e5' --- @@ -335,7 +335,7 @@ int(0) --- testing: '123 abc' << '3.4a' --- int(984) --- testing: '123 abc' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc ' << '0' --- int(123) --- testing: '123abc ' << '65' --- @@ -347,7 +347,7 @@ int(246) --- testing: '123abc ' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123abc ' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '123abc ' << '123abc' --- int(0) --- testing: '123abc ' << '123e5' --- @@ -363,7 +363,7 @@ int(0) --- testing: '123abc ' << '3.4a' --- int(984) --- testing: '123abc ' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '3.4a' << '0' --- int(3) --- testing: '3.4a' << '65' --- @@ -375,7 +375,7 @@ int(6) --- testing: '3.4a' << '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '3.4a' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: '3.4a' << '123abc' --- int(0) --- testing: '3.4a' << '123e5' --- @@ -391,32 +391,32 @@ int(0) --- testing: '3.4a' << '3.4a' --- int(24) --- testing: '3.4a' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '0' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '65' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '-44' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '1.2' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '-7.7' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << 'abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123e5' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << string --- testing: 'a5.9' << '123e5xyz' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << ' 123abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123 abc' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '123abc ' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << '3.4a' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string --- testing: 'a5.9' << 'a5.9' --- -TypeError: Unsupported operand types: string << string +TypeError: Unsupported operand types: non-numeric-string << non-numeric-string diff --git a/tests/lang/operators/bitwiseShiftRight_variationStr.phpt b/tests/lang/operators/bitwiseShiftRight_variationStr.phpt index d1f124933c853..1999614e4b755 100644 --- a/tests/lang/operators/bitwiseShiftRight_variationStr.phpt +++ b/tests/lang/operators/bitwiseShiftRight_variationStr.phpt @@ -35,7 +35,7 @@ int(0) --- testing: '0' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '0' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '0' >> '123abc' --- int(0) --- testing: '0' >> '123e5' --- @@ -51,7 +51,7 @@ int(0) --- testing: '0' >> '3.4a' --- int(0) --- testing: '0' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '65' >> '0' --- int(65) --- testing: '65' >> '65' --- @@ -63,7 +63,7 @@ int(32) --- testing: '65' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '65' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '65' >> '123abc' --- int(0) --- testing: '65' >> '123e5' --- @@ -79,7 +79,7 @@ int(0) --- testing: '65' >> '3.4a' --- int(8) --- testing: '65' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '-44' >> '0' --- int(-44) --- testing: '-44' >> '65' --- @@ -91,7 +91,7 @@ int(-22) --- testing: '-44' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '-44' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '-44' >> '123abc' --- int(-1) --- testing: '-44' >> '123e5' --- @@ -107,7 +107,7 @@ int(-1) --- testing: '-44' >> '3.4a' --- int(-6) --- testing: '-44' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '1.2' >> '0' --- int(1) --- testing: '1.2' >> '65' --- @@ -119,7 +119,7 @@ int(0) --- testing: '1.2' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '1.2' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '1.2' >> '123abc' --- int(0) --- testing: '1.2' >> '123e5' --- @@ -135,7 +135,7 @@ int(0) --- testing: '1.2' >> '3.4a' --- int(0) --- testing: '1.2' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '-7.7' >> '0' --- int(-7) --- testing: '-7.7' >> '65' --- @@ -147,7 +147,7 @@ int(-4) --- testing: '-7.7' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '-7.7' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '-7.7' >> '123abc' --- int(-1) --- testing: '-7.7' >> '123e5' --- @@ -163,35 +163,35 @@ int(-1) --- testing: '-7.7' >> '3.4a' --- int(-1) --- testing: '-7.7' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: 'abc' >> '0' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'abc' >> '65' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'abc' >> '-44' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'abc' >> '1.2' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'abc' >> '-7.7' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'abc' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> '123abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> '123e5' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'abc' >> '123e5xyz' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> ' 123abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> '123 abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> '123abc ' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> '3.4a' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'abc' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123abc' >> '0' --- int(123) --- testing: '123abc' >> '65' --- @@ -203,7 +203,7 @@ int(61) --- testing: '123abc' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123abc' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123abc' >> '123abc' --- int(0) --- testing: '123abc' >> '123e5' --- @@ -219,7 +219,7 @@ int(0) --- testing: '123abc' >> '3.4a' --- int(15) --- testing: '123abc' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123e5' >> '0' --- int(12300000) --- testing: '123e5' >> '65' --- @@ -231,7 +231,7 @@ int(6150000) --- testing: '123e5' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123e5' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '123e5' >> '123abc' --- int(0) --- testing: '123e5' >> '123e5' --- @@ -247,7 +247,7 @@ int(0) --- testing: '123e5' >> '3.4a' --- int(1537500) --- testing: '123e5' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: string >> non-numeric-string --- testing: '123e5xyz' >> '0' --- int(12300000) --- testing: '123e5xyz' >> '65' --- @@ -259,7 +259,7 @@ int(6150000) --- testing: '123e5xyz' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123e5xyz' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123e5xyz' >> '123abc' --- int(0) --- testing: '123e5xyz' >> '123e5' --- @@ -275,7 +275,7 @@ int(0) --- testing: '123e5xyz' >> '3.4a' --- int(1537500) --- testing: '123e5xyz' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: ' 123abc' >> '0' --- int(123) --- testing: ' 123abc' >> '65' --- @@ -287,7 +287,7 @@ int(61) --- testing: ' 123abc' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: ' 123abc' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: ' 123abc' >> '123abc' --- int(0) --- testing: ' 123abc' >> '123e5' --- @@ -303,7 +303,7 @@ int(0) --- testing: ' 123abc' >> '3.4a' --- int(15) --- testing: ' 123abc' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123 abc' >> '0' --- int(123) --- testing: '123 abc' >> '65' --- @@ -315,7 +315,7 @@ int(61) --- testing: '123 abc' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123 abc' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123 abc' >> '123abc' --- int(0) --- testing: '123 abc' >> '123e5' --- @@ -331,7 +331,7 @@ int(0) --- testing: '123 abc' >> '3.4a' --- int(15) --- testing: '123 abc' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123abc ' >> '0' --- int(123) --- testing: '123abc ' >> '65' --- @@ -343,7 +343,7 @@ int(61) --- testing: '123abc ' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '123abc ' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '123abc ' >> '123abc' --- int(0) --- testing: '123abc ' >> '123e5' --- @@ -359,7 +359,7 @@ int(0) --- testing: '123abc ' >> '3.4a' --- int(15) --- testing: '123abc ' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '3.4a' >> '0' --- int(3) --- testing: '3.4a' >> '65' --- @@ -371,7 +371,7 @@ int(1) --- testing: '3.4a' >> '-7.7' --- ArithmeticError: Bit shift by negative number --- testing: '3.4a' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: '3.4a' >> '123abc' --- int(0) --- testing: '3.4a' >> '123e5' --- @@ -387,32 +387,32 @@ int(0) --- testing: '3.4a' >> '3.4a' --- int(0) --- testing: '3.4a' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> '0' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'a5.9' >> '65' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'a5.9' >> '-44' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'a5.9' >> '1.2' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'a5.9' >> '-7.7' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'a5.9' >> 'abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> '123abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> '123e5' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> string --- testing: 'a5.9' >> '123e5xyz' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> ' 123abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> '123 abc' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> '123abc ' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> '3.4a' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string --- testing: 'a5.9' >> 'a5.9' --- -TypeError: Unsupported operand types: string >> string +TypeError: Unsupported operand types: non-numeric-string >> non-numeric-string diff --git a/tests/lang/operators/divide_variationStr.phpt b/tests/lang/operators/divide_variationStr.phpt index 6c62972ffd38c..fe14c78422857 100644 --- a/tests/lang/operators/divide_variationStr.phpt +++ b/tests/lang/operators/divide_variationStr.phpt @@ -37,7 +37,7 @@ float(0) --- testing: '0'/'-7.7' --- float(-0) --- testing: '0'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '0'/'123abc' --- int(0) --- testing: '0'/'123e5' --- @@ -53,7 +53,7 @@ int(0) --- testing: '0'/'3.4a' --- float(0) --- testing: '0'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '65'/'0' --- Division by zero --- testing: '65'/'65' --- @@ -65,7 +65,7 @@ float(54.16666666666667) --- testing: '65'/'-7.7' --- float(-8.441558441558442) --- testing: '65'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '65'/'123abc' --- float(0.5284552845528455) --- testing: '65'/'123e5' --- @@ -81,7 +81,7 @@ float(0.5284552845528455) --- testing: '65'/'3.4a' --- float(19.11764705882353) --- testing: '65'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '-44'/'0' --- Division by zero --- testing: '-44'/'65' --- @@ -93,7 +93,7 @@ float(-36.66666666666667) --- testing: '-44'/'-7.7' --- float(5.714285714285714) --- testing: '-44'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '-44'/'123abc' --- float(-0.35772357723577236) --- testing: '-44'/'123e5' --- @@ -109,7 +109,7 @@ float(-0.35772357723577236) --- testing: '-44'/'3.4a' --- float(-12.941176470588236) --- testing: '-44'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '1.2'/'0' --- Division by zero --- testing: '1.2'/'65' --- @@ -121,7 +121,7 @@ float(1) --- testing: '1.2'/'-7.7' --- float(-0.15584415584415584) --- testing: '1.2'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '1.2'/'123abc' --- float(0.00975609756097561) --- testing: '1.2'/'123e5' --- @@ -137,7 +137,7 @@ float(0.00975609756097561) --- testing: '1.2'/'3.4a' --- float(0.35294117647058826) --- testing: '1.2'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '-7.7'/'0' --- Division by zero --- testing: '-7.7'/'65' --- @@ -149,7 +149,7 @@ float(-6.416666666666667) --- testing: '-7.7'/'-7.7' --- float(1) --- testing: '-7.7'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '-7.7'/'123abc' --- float(-0.06260162601626017) --- testing: '-7.7'/'123e5' --- @@ -165,35 +165,35 @@ float(-0.06260162601626017) --- testing: '-7.7'/'3.4a' --- float(-2.264705882352941) --- testing: '-7.7'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: 'abc'/'0' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'abc'/'65' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'abc'/'-44' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'abc'/'1.2' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'abc'/'-7.7' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'abc'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/'123abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/'123e5' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'abc'/'123e5xyz' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/' 123abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/'123 abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/'123abc ' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/'3.4a' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'abc'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123abc'/'0' --- Division by zero --- testing: '123abc'/'65' --- @@ -205,7 +205,7 @@ float(102.5) --- testing: '123abc'/'-7.7' --- float(-15.974025974025974) --- testing: '123abc'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123abc'/'123abc' --- int(1) --- testing: '123abc'/'123e5' --- @@ -221,7 +221,7 @@ int(1) --- testing: '123abc'/'3.4a' --- float(36.1764705882353) --- testing: '123abc'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123e5'/'0' --- Division by zero --- testing: '123e5'/'65' --- @@ -233,7 +233,7 @@ float(10250000) --- testing: '123e5'/'-7.7' --- float(-1597402.5974025973) --- testing: '123e5'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '123e5'/'123abc' --- float(100000) --- testing: '123e5'/'123e5' --- @@ -249,7 +249,7 @@ float(100000) --- testing: '123e5'/'3.4a' --- float(3617647.0588235296) --- testing: '123e5'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: string / non-numeric-string --- testing: '123e5xyz'/'0' --- Division by zero --- testing: '123e5xyz'/'65' --- @@ -261,7 +261,7 @@ float(10250000) --- testing: '123e5xyz'/'-7.7' --- float(-1597402.5974025973) --- testing: '123e5xyz'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123e5xyz'/'123abc' --- float(100000) --- testing: '123e5xyz'/'123e5' --- @@ -277,7 +277,7 @@ float(100000) --- testing: '123e5xyz'/'3.4a' --- float(3617647.0588235296) --- testing: '123e5xyz'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: ' 123abc'/'0' --- Division by zero --- testing: ' 123abc'/'65' --- @@ -289,7 +289,7 @@ float(102.5) --- testing: ' 123abc'/'-7.7' --- float(-15.974025974025974) --- testing: ' 123abc'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: ' 123abc'/'123abc' --- int(1) --- testing: ' 123abc'/'123e5' --- @@ -305,7 +305,7 @@ int(1) --- testing: ' 123abc'/'3.4a' --- float(36.1764705882353) --- testing: ' 123abc'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123 abc'/'0' --- Division by zero --- testing: '123 abc'/'65' --- @@ -317,7 +317,7 @@ float(102.5) --- testing: '123 abc'/'-7.7' --- float(-15.974025974025974) --- testing: '123 abc'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123 abc'/'123abc' --- int(1) --- testing: '123 abc'/'123e5' --- @@ -333,7 +333,7 @@ int(1) --- testing: '123 abc'/'3.4a' --- float(36.1764705882353) --- testing: '123 abc'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123abc '/'0' --- Division by zero --- testing: '123abc '/'65' --- @@ -345,7 +345,7 @@ float(102.5) --- testing: '123abc '/'-7.7' --- float(-15.974025974025974) --- testing: '123abc '/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '123abc '/'123abc' --- int(1) --- testing: '123abc '/'123e5' --- @@ -361,7 +361,7 @@ int(1) --- testing: '123abc '/'3.4a' --- float(36.1764705882353) --- testing: '123abc '/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '3.4a'/'0' --- Division by zero --- testing: '3.4a'/'65' --- @@ -373,7 +373,7 @@ float(2.8333333333333335) --- testing: '3.4a'/'-7.7' --- float(-0.44155844155844154) --- testing: '3.4a'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: '3.4a'/'123abc' --- float(0.027642276422764227) --- testing: '3.4a'/'123e5' --- @@ -389,32 +389,32 @@ float(0.027642276422764227) --- testing: '3.4a'/'3.4a' --- float(1) --- testing: '3.4a'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'0' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'a5.9'/'65' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'a5.9'/'-44' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'a5.9'/'1.2' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'a5.9'/'-7.7' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'a5.9'/'abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'123abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'123e5' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / string --- testing: 'a5.9'/'123e5xyz' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/' 123abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'123 abc' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'123abc ' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'3.4a' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string --- testing: 'a5.9'/'a5.9' --- -Unsupported operand types: string / string +Unsupported operand types: non-numeric-string / non-numeric-string diff --git a/tests/lang/operators/modulus_variationStr.phpt b/tests/lang/operators/modulus_variationStr.phpt index 1f9aae88a4d87..2ce499b3c12a4 100644 --- a/tests/lang/operators/modulus_variationStr.phpt +++ b/tests/lang/operators/modulus_variationStr.phpt @@ -35,7 +35,7 @@ int(0) --- testing: '0' % '-7.7' --- int(0) --- testing: '0' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '0' % '123abc' --- int(0) --- testing: '0' % '123e5' --- @@ -51,7 +51,7 @@ int(0) --- testing: '0' % '3.4a' --- int(0) --- testing: '0' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '65' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '65' % '65' --- @@ -63,7 +63,7 @@ int(0) --- testing: '65' % '-7.7' --- int(2) --- testing: '65' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '65' % '123abc' --- int(65) --- testing: '65' % '123e5' --- @@ -79,7 +79,7 @@ int(65) --- testing: '65' % '3.4a' --- int(2) --- testing: '65' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '-44' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '-44' % '65' --- @@ -91,7 +91,7 @@ int(0) --- testing: '-44' % '-7.7' --- int(-2) --- testing: '-44' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '-44' % '123abc' --- int(-44) --- testing: '-44' % '123e5' --- @@ -107,7 +107,7 @@ int(-44) --- testing: '-44' % '3.4a' --- int(-2) --- testing: '-44' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '1.2' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '1.2' % '65' --- @@ -119,7 +119,7 @@ int(0) --- testing: '1.2' % '-7.7' --- int(1) --- testing: '1.2' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '1.2' % '123abc' --- int(1) --- testing: '1.2' % '123e5' --- @@ -135,7 +135,7 @@ int(1) --- testing: '1.2' % '3.4a' --- int(1) --- testing: '1.2' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '-7.7' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '-7.7' % '65' --- @@ -147,7 +147,7 @@ int(0) --- testing: '-7.7' % '-7.7' --- int(0) --- testing: '-7.7' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '-7.7' % '123abc' --- int(-7) --- testing: '-7.7' % '123e5' --- @@ -163,35 +163,35 @@ int(-7) --- testing: '-7.7' % '3.4a' --- int(-1) --- testing: '-7.7' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: 'abc' % '0' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'abc' % '65' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'abc' % '-44' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'abc' % '1.2' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'abc' % '-7.7' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'abc' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % '123abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % '123e5' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'abc' % '123e5xyz' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % ' 123abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % '123 abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % '123abc ' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % '3.4a' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'abc' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123abc' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '123abc' % '65' --- @@ -203,7 +203,7 @@ int(0) --- testing: '123abc' % '-7.7' --- int(4) --- testing: '123abc' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123abc' % '123abc' --- int(0) --- testing: '123abc' % '123e5' --- @@ -219,7 +219,7 @@ int(0) --- testing: '123abc' % '3.4a' --- int(0) --- testing: '123abc' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123e5' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '123e5' % '65' --- @@ -231,7 +231,7 @@ int(0) --- testing: '123e5' % '-7.7' --- int(6) --- testing: '123e5' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '123e5' % '123abc' --- int(0) --- testing: '123e5' % '123e5' --- @@ -247,7 +247,7 @@ int(0) --- testing: '123e5' % '3.4a' --- int(0) --- testing: '123e5' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: string % non-numeric-string --- testing: '123e5xyz' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '123e5xyz' % '65' --- @@ -259,7 +259,7 @@ int(0) --- testing: '123e5xyz' % '-7.7' --- int(6) --- testing: '123e5xyz' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123e5xyz' % '123abc' --- int(0) --- testing: '123e5xyz' % '123e5' --- @@ -275,7 +275,7 @@ int(0) --- testing: '123e5xyz' % '3.4a' --- int(0) --- testing: '123e5xyz' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: ' 123abc' % '0' --- DivisionByZeroError: Modulo by zero --- testing: ' 123abc' % '65' --- @@ -287,7 +287,7 @@ int(0) --- testing: ' 123abc' % '-7.7' --- int(4) --- testing: ' 123abc' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: ' 123abc' % '123abc' --- int(0) --- testing: ' 123abc' % '123e5' --- @@ -303,7 +303,7 @@ int(0) --- testing: ' 123abc' % '3.4a' --- int(0) --- testing: ' 123abc' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123 abc' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '123 abc' % '65' --- @@ -315,7 +315,7 @@ int(0) --- testing: '123 abc' % '-7.7' --- int(4) --- testing: '123 abc' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123 abc' % '123abc' --- int(0) --- testing: '123 abc' % '123e5' --- @@ -331,7 +331,7 @@ int(0) --- testing: '123 abc' % '3.4a' --- int(0) --- testing: '123 abc' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123abc ' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '123abc ' % '65' --- @@ -343,7 +343,7 @@ int(0) --- testing: '123abc ' % '-7.7' --- int(4) --- testing: '123abc ' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '123abc ' % '123abc' --- int(0) --- testing: '123abc ' % '123e5' --- @@ -359,7 +359,7 @@ int(0) --- testing: '123abc ' % '3.4a' --- int(0) --- testing: '123abc ' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '3.4a' % '0' --- DivisionByZeroError: Modulo by zero --- testing: '3.4a' % '65' --- @@ -371,7 +371,7 @@ int(0) --- testing: '3.4a' % '-7.7' --- int(3) --- testing: '3.4a' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: '3.4a' % '123abc' --- int(3) --- testing: '3.4a' % '123e5' --- @@ -387,32 +387,32 @@ int(3) --- testing: '3.4a' % '3.4a' --- int(0) --- testing: '3.4a' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % '0' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'a5.9' % '65' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'a5.9' % '-44' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'a5.9' % '1.2' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'a5.9' % '-7.7' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'a5.9' % 'abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % '123abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % '123e5' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % string --- testing: 'a5.9' % '123e5xyz' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % ' 123abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % '123 abc' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % '123abc ' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % '3.4a' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string --- testing: 'a5.9' % 'a5.9' --- -TypeError: Unsupported operand types: string % string +TypeError: Unsupported operand types: non-numeric-string % non-numeric-string diff --git a/tests/lang/operators/multiply_variationStr.phpt b/tests/lang/operators/multiply_variationStr.phpt index af650ae993555..946aa3a1d840f 100644 --- a/tests/lang/operators/multiply_variationStr.phpt +++ b/tests/lang/operators/multiply_variationStr.phpt @@ -34,7 +34,7 @@ float(0) --- testing: '0' * '-7.7' --- float(-0) --- testing: '0' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '0' * '123abc' --- int(0) --- testing: '0' * '123e5' --- @@ -50,7 +50,7 @@ int(0) --- testing: '0' * '3.4a' --- float(0) --- testing: '0' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '65' * '0' --- int(0) --- testing: '65' * '65' --- @@ -62,7 +62,7 @@ float(78) --- testing: '65' * '-7.7' --- float(-500.5) --- testing: '65' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '65' * '123abc' --- int(7995) --- testing: '65' * '123e5' --- @@ -78,7 +78,7 @@ int(7995) --- testing: '65' * '3.4a' --- float(221) --- testing: '65' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '-44' * '0' --- int(0) --- testing: '-44' * '65' --- @@ -90,7 +90,7 @@ float(-52.8) --- testing: '-44' * '-7.7' --- float(338.8) --- testing: '-44' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '-44' * '123abc' --- int(-5412) --- testing: '-44' * '123e5' --- @@ -106,7 +106,7 @@ int(-5412) --- testing: '-44' * '3.4a' --- float(-149.6) --- testing: '-44' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '1.2' * '0' --- float(0) --- testing: '1.2' * '65' --- @@ -118,7 +118,7 @@ float(1.44) --- testing: '1.2' * '-7.7' --- float(-9.24) --- testing: '1.2' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '1.2' * '123abc' --- float(147.6) --- testing: '1.2' * '123e5' --- @@ -134,7 +134,7 @@ float(147.6) --- testing: '1.2' * '3.4a' --- float(4.08) --- testing: '1.2' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '-7.7' * '0' --- float(-0) --- testing: '-7.7' * '65' --- @@ -146,7 +146,7 @@ float(-9.24) --- testing: '-7.7' * '-7.7' --- float(59.290000000000006) --- testing: '-7.7' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '-7.7' * '123abc' --- float(-947.1) --- testing: '-7.7' * '123e5' --- @@ -162,35 +162,35 @@ float(-947.1) --- testing: '-7.7' * '3.4a' --- float(-26.18) --- testing: '-7.7' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: 'abc' * '0' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'abc' * '65' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'abc' * '-44' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'abc' * '1.2' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'abc' * '-7.7' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'abc' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * '123abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * '123e5' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'abc' * '123e5xyz' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * ' 123abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * '123 abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * '123abc ' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * '3.4a' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'abc' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123abc' * '0' --- int(0) --- testing: '123abc' * '65' --- @@ -202,7 +202,7 @@ float(147.6) --- testing: '123abc' * '-7.7' --- float(-947.1) --- testing: '123abc' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123abc' * '123abc' --- int(15129) --- testing: '123abc' * '123e5' --- @@ -218,7 +218,7 @@ int(15129) --- testing: '123abc' * '3.4a' --- float(418.2) --- testing: '123abc' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123e5' * '0' --- float(0) --- testing: '123e5' * '65' --- @@ -230,7 +230,7 @@ float(14760000) --- testing: '123e5' * '-7.7' --- float(-94710000) --- testing: '123e5' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '123e5' * '123abc' --- float(1512900000) --- testing: '123e5' * '123e5' --- @@ -246,7 +246,7 @@ float(1512900000) --- testing: '123e5' * '3.4a' --- float(41820000) --- testing: '123e5' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: string * non-numeric-string --- testing: '123e5xyz' * '0' --- float(0) --- testing: '123e5xyz' * '65' --- @@ -258,7 +258,7 @@ float(14760000) --- testing: '123e5xyz' * '-7.7' --- float(-94710000) --- testing: '123e5xyz' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123e5xyz' * '123abc' --- float(1512900000) --- testing: '123e5xyz' * '123e5' --- @@ -274,7 +274,7 @@ float(1512900000) --- testing: '123e5xyz' * '3.4a' --- float(41820000) --- testing: '123e5xyz' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: ' 123abc' * '0' --- int(0) --- testing: ' 123abc' * '65' --- @@ -286,7 +286,7 @@ float(147.6) --- testing: ' 123abc' * '-7.7' --- float(-947.1) --- testing: ' 123abc' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: ' 123abc' * '123abc' --- int(15129) --- testing: ' 123abc' * '123e5' --- @@ -302,7 +302,7 @@ int(15129) --- testing: ' 123abc' * '3.4a' --- float(418.2) --- testing: ' 123abc' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123 abc' * '0' --- int(0) --- testing: '123 abc' * '65' --- @@ -314,7 +314,7 @@ float(147.6) --- testing: '123 abc' * '-7.7' --- float(-947.1) --- testing: '123 abc' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123 abc' * '123abc' --- int(15129) --- testing: '123 abc' * '123e5' --- @@ -330,7 +330,7 @@ int(15129) --- testing: '123 abc' * '3.4a' --- float(418.2) --- testing: '123 abc' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123abc ' * '0' --- int(0) --- testing: '123abc ' * '65' --- @@ -342,7 +342,7 @@ float(147.6) --- testing: '123abc ' * '-7.7' --- float(-947.1) --- testing: '123abc ' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '123abc ' * '123abc' --- int(15129) --- testing: '123abc ' * '123e5' --- @@ -358,7 +358,7 @@ int(15129) --- testing: '123abc ' * '3.4a' --- float(418.2) --- testing: '123abc ' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '3.4a' * '0' --- float(0) --- testing: '3.4a' * '65' --- @@ -370,7 +370,7 @@ float(4.08) --- testing: '3.4a' * '-7.7' --- float(-26.18) --- testing: '3.4a' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: '3.4a' * '123abc' --- float(418.2) --- testing: '3.4a' * '123e5' --- @@ -386,32 +386,32 @@ float(418.2) --- testing: '3.4a' * '3.4a' --- float(11.559999999999999) --- testing: '3.4a' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * '0' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'a5.9' * '65' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'a5.9' * '-44' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'a5.9' * '1.2' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'a5.9' * '-7.7' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'a5.9' * 'abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * '123abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * '123e5' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * string --- testing: 'a5.9' * '123e5xyz' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * ' 123abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * '123 abc' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * '123abc ' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * '3.4a' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string --- testing: 'a5.9' * 'a5.9' --- -Unsupported operand types: string * string +Unsupported operand types: non-numeric-string * non-numeric-string diff --git a/tests/lang/operators/negate_variationStr.phpt b/tests/lang/operators/negate_variationStr.phpt index 43b2f6a52a60e..53ed5cacc698e 100644 --- a/tests/lang/operators/negate_variationStr.phpt +++ b/tests/lang/operators/negate_variationStr.phpt @@ -30,7 +30,7 @@ float(-1.2) --- testing: '-7.7' --- float(7.7) --- testing: 'abc' --- -Unsupported operand types: string * int +Unsupported operand types: non-numeric-string * int --- testing: '123abc' --- Warning: A non-numeric value encountered in %s on line %d @@ -58,4 +58,4 @@ int(-123) Warning: A non-numeric value encountered in %s on line %d float(-3.4) --- testing: 'a5.9' --- -Unsupported operand types: string * int +Unsupported operand types: non-numeric-string * int diff --git a/tests/lang/operators/subtract_variationStr.phpt b/tests/lang/operators/subtract_variationStr.phpt index 6df852498df19..18ce4f6088536 100644 --- a/tests/lang/operators/subtract_variationStr.phpt +++ b/tests/lang/operators/subtract_variationStr.phpt @@ -34,7 +34,7 @@ float(-1.2) --- testing: '0' - '-7.7' --- float(7.7) --- testing: '0' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '0' - '123abc' --- int(-123) --- testing: '0' - '123e5' --- @@ -50,7 +50,7 @@ int(-123) --- testing: '0' - '3.4a' --- float(-3.4) --- testing: '0' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '65' - '0' --- int(65) --- testing: '65' - '65' --- @@ -62,7 +62,7 @@ float(63.8) --- testing: '65' - '-7.7' --- float(72.7) --- testing: '65' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '65' - '123abc' --- int(-58) --- testing: '65' - '123e5' --- @@ -78,7 +78,7 @@ int(-58) --- testing: '65' - '3.4a' --- float(61.6) --- testing: '65' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '-44' - '0' --- int(-44) --- testing: '-44' - '65' --- @@ -90,7 +90,7 @@ float(-45.2) --- testing: '-44' - '-7.7' --- float(-36.3) --- testing: '-44' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '-44' - '123abc' --- int(-167) --- testing: '-44' - '123e5' --- @@ -106,7 +106,7 @@ int(-167) --- testing: '-44' - '3.4a' --- float(-47.4) --- testing: '-44' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '1.2' - '0' --- float(1.2) --- testing: '1.2' - '65' --- @@ -118,7 +118,7 @@ float(0) --- testing: '1.2' - '-7.7' --- float(8.9) --- testing: '1.2' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '1.2' - '123abc' --- float(-121.8) --- testing: '1.2' - '123e5' --- @@ -134,7 +134,7 @@ float(-121.8) --- testing: '1.2' - '3.4a' --- float(-2.2) --- testing: '1.2' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '-7.7' - '0' --- float(-7.7) --- testing: '-7.7' - '65' --- @@ -146,7 +146,7 @@ float(-8.9) --- testing: '-7.7' - '-7.7' --- float(0) --- testing: '-7.7' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '-7.7' - '123abc' --- float(-130.7) --- testing: '-7.7' - '123e5' --- @@ -162,35 +162,35 @@ float(-130.7) --- testing: '-7.7' - '3.4a' --- float(-11.1) --- testing: '-7.7' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: 'abc' - '0' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'abc' - '65' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'abc' - '-44' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'abc' - '1.2' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'abc' - '-7.7' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'abc' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - '123abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - '123e5' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'abc' - '123e5xyz' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - ' 123abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - '123 abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - '123abc ' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - '3.4a' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'abc' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123abc' - '0' --- int(123) --- testing: '123abc' - '65' --- @@ -202,7 +202,7 @@ float(121.8) --- testing: '123abc' - '-7.7' --- float(130.7) --- testing: '123abc' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123abc' - '123abc' --- int(0) --- testing: '123abc' - '123e5' --- @@ -218,7 +218,7 @@ int(0) --- testing: '123abc' - '3.4a' --- float(119.6) --- testing: '123abc' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123e5' - '0' --- float(12300000) --- testing: '123e5' - '65' --- @@ -230,7 +230,7 @@ float(12299998.8) --- testing: '123e5' - '-7.7' --- float(12300007.7) --- testing: '123e5' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '123e5' - '123abc' --- float(12299877) --- testing: '123e5' - '123e5' --- @@ -246,7 +246,7 @@ float(12299877) --- testing: '123e5' - '3.4a' --- float(12299996.6) --- testing: '123e5' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: string - non-numeric-string --- testing: '123e5xyz' - '0' --- float(12300000) --- testing: '123e5xyz' - '65' --- @@ -258,7 +258,7 @@ float(12299998.8) --- testing: '123e5xyz' - '-7.7' --- float(12300007.7) --- testing: '123e5xyz' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123e5xyz' - '123abc' --- float(12299877) --- testing: '123e5xyz' - '123e5' --- @@ -274,7 +274,7 @@ float(12299877) --- testing: '123e5xyz' - '3.4a' --- float(12299996.6) --- testing: '123e5xyz' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: ' 123abc' - '0' --- int(123) --- testing: ' 123abc' - '65' --- @@ -286,7 +286,7 @@ float(121.8) --- testing: ' 123abc' - '-7.7' --- float(130.7) --- testing: ' 123abc' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: ' 123abc' - '123abc' --- int(0) --- testing: ' 123abc' - '123e5' --- @@ -302,7 +302,7 @@ int(0) --- testing: ' 123abc' - '3.4a' --- float(119.6) --- testing: ' 123abc' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123 abc' - '0' --- int(123) --- testing: '123 abc' - '65' --- @@ -314,7 +314,7 @@ float(121.8) --- testing: '123 abc' - '-7.7' --- float(130.7) --- testing: '123 abc' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123 abc' - '123abc' --- int(0) --- testing: '123 abc' - '123e5' --- @@ -330,7 +330,7 @@ int(0) --- testing: '123 abc' - '3.4a' --- float(119.6) --- testing: '123 abc' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123abc ' - '0' --- int(123) --- testing: '123abc ' - '65' --- @@ -342,7 +342,7 @@ float(121.8) --- testing: '123abc ' - '-7.7' --- float(130.7) --- testing: '123abc ' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '123abc ' - '123abc' --- int(0) --- testing: '123abc ' - '123e5' --- @@ -358,7 +358,7 @@ int(0) --- testing: '123abc ' - '3.4a' --- float(119.6) --- testing: '123abc ' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '3.4a' - '0' --- float(3.4) --- testing: '3.4a' - '65' --- @@ -370,7 +370,7 @@ float(2.2) --- testing: '3.4a' - '-7.7' --- float(11.1) --- testing: '3.4a' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: '3.4a' - '123abc' --- float(-119.6) --- testing: '3.4a' - '123e5' --- @@ -386,32 +386,32 @@ float(-119.6) --- testing: '3.4a' - '3.4a' --- float(0) --- testing: '3.4a' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - '0' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'a5.9' - '65' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'a5.9' - '-44' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'a5.9' - '1.2' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'a5.9' - '-7.7' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'a5.9' - 'abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - '123abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - '123e5' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - string --- testing: 'a5.9' - '123e5xyz' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - ' 123abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - '123 abc' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - '123abc ' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - '3.4a' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string --- testing: 'a5.9' - 'a5.9' --- -Unsupported operand types: string - string +Unsupported operand types: non-numeric-string - non-numeric-string