diff options
author | Stanislav Malyshev <stas@php.net> | 2011-10-21 06:08:47 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-10-21 06:08:47 +0000 |
commit | d81ea16ef14735b97f22702ca1a78c3674fd987e (patch) | |
tree | 520d4dd5ffdb6b59aee7cc19b10839ad6def922b /ext/standard | |
parent | 2cf34bc9fc30f6094f8291314bfd25f74511ceff (diff) | |
download | php-git-d81ea16ef14735b97f22702ca1a78c3674fd987e.tar.gz |
Changed silent conversion of array to string to produce a notice. (Patrick)
Diffstat (limited to 'ext/standard')
40 files changed, 363 insertions, 12 deletions
diff --git a/ext/standard/tests/array/002.phpt b/ext/standard/tests/array/002.phpt index b865dc100c..469e862675 100644 --- a/ext/standard/tests/array/002.phpt +++ b/ext/standard/tests/array/002.phpt @@ -129,6 +129,16 @@ array(8) { float(-0.33333333333333) } Using SORT_STRING + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d array(8) { [1000]=> string(4) "test" @@ -227,6 +237,16 @@ array(8) { int(27) } Using SORT_STRING + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d array(8) { [16777216]=> float(-0.33333333333333) @@ -521,6 +541,16 @@ array(8) { float(-0.33333333333333) } Using SORT_STRING + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d array(8) { [0]=> string(4) "test" @@ -619,6 +649,16 @@ array(8) { int(27) } Using SORT_STRING + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d + +Notice: Array to string conversion in %s002.php on line %d array(8) { [0]=> float(-0.33333333333333) diff --git a/ext/standard/tests/array/array_diff_variation9.phpt b/ext/standard/tests/array/array_diff_variation9.phpt index 58d9c201ba..1bf1f1c2ac 100644 --- a/ext/standard/tests/array/array_diff_variation9.phpt +++ b/ext/standard/tests/array/array_diff_variation9.phpt @@ -39,8 +39,40 @@ echo "Done"; --EXPECTF-- *** Testing array_diff() : usage variations *** -- Compare two 2-D arrays -- + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d array(0) { } + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d array(0) { } @@ -69,6 +101,16 @@ array(3) { } -- Compare a subarray from one 2-D array and one 2-D array -- + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d array(3) { [0]=> int(1) @@ -77,6 +119,20 @@ array(3) { [2]=> int(3) } + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d + +Notice: Array to string conversion in %sarray_diff_variation9.php on line %d array(2) { ["sub_array1"]=> array(3) { diff --git a/ext/standard/tests/array/array_intersect_assoc_variation9.phpt b/ext/standard/tests/array/array_intersect_assoc_variation9.phpt index 456109b1c2..338d40936e 100644 --- a/ext/standard/tests/array/array_intersect_assoc_variation9.phpt +++ b/ext/standard/tests/array/array_intersect_assoc_variation9.phpt @@ -61,6 +61,14 @@ echo "Done"; *** Testing array_intersect_assoc() : passing two dimensional array to both $arr1 and $arr2 arguments *** -- Passing the entire 2-D array to $arr1 and $arr2 -- - With default arguments - + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d array(2) { [0]=> array(4) { @@ -86,6 +94,22 @@ array(2) { } } - With more arguments - + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_assoc_variation9.php on line %d array(2) { [0]=> array(4) { diff --git a/ext/standard/tests/array/array_intersect_variation9.phpt b/ext/standard/tests/array/array_intersect_variation9.phpt index d3525dcd06..fda63dd628 100644 --- a/ext/standard/tests/array/array_intersect_variation9.phpt +++ b/ext/standard/tests/array/array_intersect_variation9.phpt @@ -60,6 +60,42 @@ echo "Done"; *** Testing array_intersect() : passing two dimensional array to both $arr1 and $arr2 arguments *** -- Passing the entire 2-D array to $arr1 and $arr2 -- - With default arguments - + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d array(4) { [0]=> array(4) { @@ -103,6 +139,62 @@ array(4) { } } - With more arguments - + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d + +Notice: Array to string conversion in %sarray_intersect_variation9.php on line %d array(4) { [0]=> array(4) { diff --git a/ext/standard/tests/array/array_unique_variation8.phpt b/ext/standard/tests/array/array_unique_variation8.phpt index 6cf343221f..ee34deeecc 100644 --- a/ext/standard/tests/array/array_unique_variation8.phpt +++ b/ext/standard/tests/array/array_unique_variation8.phpt @@ -28,6 +28,34 @@ echo "Done"; ?> --EXPECTF-- *** Testing array_unique() : two dimensional array for $input argument *** + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d + +Notice: Array to string conversion in %sarray_unique_variation8.php on line %d array(1) { [0]=> array(4) { diff --git a/ext/standard/tests/array/bug29253.phpt b/ext/standard/tests/array/bug29253.phpt index 378489f926..4be9839221 100755 --- a/ext/standard/tests/array/bug29253.phpt +++ b/ext/standard/tests/array/bug29253.phpt @@ -4,7 +4,7 @@ Bug #29253 (array_diff with $GLOBALS argument fails) <?php $zz = $GLOBALS; $gg = 'afad'; -var_dump(array_diff_assoc($GLOBALS, $zz)); +var_dump(@array_diff_assoc($GLOBALS, $zz)); var_dump($gg); ?> --EXPECTF-- diff --git a/ext/standard/tests/array/range_variation.phpt b/ext/standard/tests/array/range_variation.phpt index 0ac8c55e65..e97d918d9b 100644 --- a/ext/standard/tests/array/range_variation.phpt +++ b/ext/standard/tests/array/range_variation.phpt @@ -11,7 +11,7 @@ $high_arr = array( "ABCD", -10.5555, TRUE, NULL, FALSE, "", array(1,2)); for( $i = 0; $i < count($low_arr); $i++) { for( $j = 0; $j < count($high_arr); $j++) { - echo "\n-- creating an array with low = '$low_arr[$i]' and high = '$high_arr[$j]' --\n"; + echo @"\n-- creating an array with low = '$low_arr[$i]' and high = '$high_arr[$j]' --\n"; var_dump( range( $low_arr[$i], $high_arr[$j] ) ); } } diff --git a/ext/standard/tests/class_object/class_exists_variation_001.phpt b/ext/standard/tests/class_object/class_exists_variation_001.phpt index 2141d65eb8..c9146ba9f7 100644 --- a/ext/standard/tests/class_object/class_exists_variation_001.phpt +++ b/ext/standard/tests/class_object/class_exists_variation_001.phpt @@ -122,22 +122,27 @@ bool(false) Arg value 0.5 In __autoload(0.5) bool(false) +Error: 8 - Array to string conversion, %sclass_exists_variation_001.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_001.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_001.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_001.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_001.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 1 to be string, array given, %s(77) diff --git a/ext/standard/tests/class_object/class_exists_variation_002.phpt b/ext/standard/tests/class_object/class_exists_variation_002.phpt index da10cac908..ae9de157f6 100644 --- a/ext/standard/tests/class_object/class_exists_variation_002.phpt +++ b/ext/standard/tests/class_object/class_exists_variation_002.phpt @@ -125,22 +125,27 @@ bool(false) Arg value 0.5 In __autoload(string_val) bool(false) +Error: 8 - Array to string conversion, %sclass_exists_variation_002.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_002.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_002.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_002.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %sclass_exists_variation_002.php(%d) Arg value Array Error: 2 - class_exists() expects parameter 2 to be boolean, array given, %s(81) diff --git a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt index b881452b4c..8cdef12a7b 100644 --- a/ext/standard/tests/class_object/get_class_methods_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_methods_variation_001.phpt @@ -113,18 +113,23 @@ NULL Arg value 0.5 NULL +Error: 8 - Array to string conversion, %sget_class_methods_variation_001.php(%d) Arg value Array NULL +Error: 8 - Array to string conversion, %sget_class_methods_variation_001.php(%d) Arg value Array NULL +Error: 8 - Array to string conversion, %sget_class_methods_variation_001.php(%d) Arg value Array NULL +Error: 8 - Array to string conversion, %sget_class_methods_variation_001.php(%d) Arg value Array NULL +Error: 8 - Array to string conversion, %sget_class_methods_variation_001.php(%d) Arg value Array NULL diff --git a/ext/standard/tests/class_object/get_class_variation_001.phpt b/ext/standard/tests/class_object/get_class_variation_001.phpt index e2bf986c21..2baef2e14c 100644 --- a/ext/standard/tests/class_object/get_class_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_variation_001.phpt @@ -67,7 +67,7 @@ $values = array( // loop through each element of the array for object foreach($values as $value) { - echo "\nArg value: $value (type: " . gettype($value) . ")\n"; + echo @"\nArg value: $value (type: " . gettype($value) . ")\n"; var_dump( get_class($value) ); }; diff --git a/ext/standard/tests/class_object/get_object_vars_variation_003.phpt b/ext/standard/tests/class_object/get_object_vars_variation_003.phpt index adefa793ad..1e68d08ee3 100644 --- a/ext/standard/tests/class_object/get_object_vars_variation_003.phpt +++ b/ext/standard/tests/class_object/get_object_vars_variation_003.phpt @@ -65,7 +65,7 @@ $values = array( // loop through each element of the array for obj foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( get_object_vars($value) ); }; diff --git a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt index f7e5b9df3f..0d19e22364 100644 --- a/ext/standard/tests/class_object/get_parent_class_variation_002.phpt +++ b/ext/standard/tests/class_object/get_parent_class_variation_002.phpt @@ -114,18 +114,23 @@ bool(false) Arg value 0.5 bool(false) +Error: 8 - Array to string conversion, %sget_parent_class_variation_002.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sget_parent_class_variation_002.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sget_parent_class_variation_002.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sget_parent_class_variation_002.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sget_parent_class_variation_002.php(%d) Arg value Array bool(false) diff --git a/ext/standard/tests/class_object/is_a_variation_001.phpt b/ext/standard/tests/class_object/is_a_variation_001.phpt index d2d6ce2407..d449fd3797 100644 --- a/ext/standard/tests/class_object/is_a_variation_001.phpt +++ b/ext/standard/tests/class_object/is_a_variation_001.phpt @@ -70,7 +70,7 @@ $values = array( // loop through each element of the array for object foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( is_a($value, $class_name) ); }; diff --git a/ext/standard/tests/class_object/is_a_variation_002.phpt b/ext/standard/tests/class_object/is_a_variation_002.phpt index 970da72f1c..a34c325d87 100644 --- a/ext/standard/tests/class_object/is_a_variation_002.phpt +++ b/ext/standard/tests/class_object/is_a_variation_002.phpt @@ -75,7 +75,7 @@ $values = array( // loop through each element of the array for class_name foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( is_a($object, $value) ); }; diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt index 14aaa3347b..201d8789ea 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_001.phpt @@ -115,18 +115,23 @@ bool(false) Arg value 0.5 bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_001.php(%d) Arg value Array bool(false) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt index c550d8090c..9bb712b757 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_002.phpt @@ -113,22 +113,27 @@ bool(false) Arg value 0.5 bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_002.php(%d) Arg value Array Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) NULL +Error: 8 - Array to string conversion, %sis_subclass_of_variation_002.php(%d) Arg value Array Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) NULL +Error: 8 - Array to string conversion, %sis_subclass_of_variation_002.php(%d) Arg value Array Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) NULL +Error: 8 - Array to string conversion, %sis_subclass_of_variation_002.php(%d) Arg value Array Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) NULL +Error: 8 - Array to string conversion, %sis_subclass_of_variation_002.php(%d) Arg value Array Error: 2 - is_subclass_of() expects parameter 2 to be string, array given, %s(%d) diff --git a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt index 2f46c4a8df..65ae8a4e23 100644 --- a/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt +++ b/ext/standard/tests/class_object/is_subclass_of_variation_004.phpt @@ -115,18 +115,23 @@ bool(false) Arg value 0.5 bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_004.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_004.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_004.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_004.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %sis_subclass_of_variation_004.php(%d) Arg value Array bool(false) diff --git a/ext/standard/tests/class_object/method_exists_variation_001.phpt b/ext/standard/tests/class_object/method_exists_variation_001.phpt index 117c211d0d..1947c76ac5 100644 --- a/ext/standard/tests/class_object/method_exists_variation_001.phpt +++ b/ext/standard/tests/class_object/method_exists_variation_001.phpt @@ -114,18 +114,23 @@ bool(false) Arg value 0.5 bool(false) +Error: 8 - Array to string conversion, %smethod_exists_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %smethod_exists_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %smethod_exists_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %smethod_exists_variation_001.php(%d) Arg value Array bool(false) +Error: 8 - Array to string conversion, %smethod_exists_variation_001.php(%d) Arg value Array bool(false) diff --git a/ext/standard/tests/class_object/method_exists_variation_002.phpt b/ext/standard/tests/class_object/method_exists_variation_002.phpt index ba38894b53..b1204e833d 100644 --- a/ext/standard/tests/class_object/method_exists_variation_002.phpt +++ b/ext/standard/tests/class_object/method_exists_variation_002.phpt @@ -113,22 +113,27 @@ bool(false) Arg value 0.5 bool(false) +Error: 8 - Array to string conversion, %smethod_exists_variation_002.php(%d) Arg value Array Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %smethod_exists_variation_002.php(%d) Arg value Array Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %smethod_exists_variation_002.php(%d) Arg value Array Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %smethod_exists_variation_002.php(%d) Arg value Array Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %smethod_exists_variation_002.php(%d) Arg value Array Error: 2 - method_exists() expects parameter 2 to be string, array given, %s(77) diff --git a/ext/standard/tests/class_object/trait_exists_variation_001.phpt b/ext/standard/tests/class_object/trait_exists_variation_001.phpt index 16515de6dc..65ef1993cf 100644 --- a/ext/standard/tests/class_object/trait_exists_variation_001.phpt +++ b/ext/standard/tests/class_object/trait_exists_variation_001.phpt @@ -122,22 +122,27 @@ bool(false) Arg value 0.5 In __autoload(0.5) bool(false) +Error: 8 - Array to string conversion, %strait_exists_variation_001.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_001.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_001.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_001.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_001.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 1 to be string, array given, %s(77) diff --git a/ext/standard/tests/class_object/trait_exists_variation_002.phpt b/ext/standard/tests/class_object/trait_exists_variation_002.phpt index d29d81a37c..a2fcbbf018 100644 --- a/ext/standard/tests/class_object/trait_exists_variation_002.phpt +++ b/ext/standard/tests/class_object/trait_exists_variation_002.phpt @@ -125,22 +125,27 @@ bool(false) Arg value 0.5 In __autoload(string_val) bool(false) +Error: 8 - Array to string conversion, %strait_exists_variation_002.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_002.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_002.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_002.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81) NULL +Error: 8 - Array to string conversion, %strait_exists_variation_002.php(%d) Arg value Array Error: 2 - trait_exists() expects parameter 2 to be boolean, array given, %s(81) diff --git a/ext/standard/tests/dir/readdir_variation4.phpt b/ext/standard/tests/dir/readdir_variation4.phpt index 4c22de8697..9b04a986a6 100644 --- a/ext/standard/tests/dir/readdir_variation4.phpt +++ b/ext/standard/tests/dir/readdir_variation4.phpt @@ -51,7 +51,7 @@ $iterator = 1; foreach($inputs as $key => $input) { echo "\n-- Iteration $iterator --\n"; $handle = "fp{$iterator}"; - var_dump( $$handle = fopen($dir_path . $input . '.tmp', 'w') ); + var_dump( $$handle = fopen(@"$dir_path$input.tmp", 'w') ); var_dump( fwrite($$handle, $key)); fclose($$handle); $iterator++; diff --git a/ext/standard/tests/dir/scandir_variation8.phpt b/ext/standard/tests/dir/scandir_variation8.phpt index 36ae88c8f5..4e96e04a4e 100644 --- a/ext/standard/tests/dir/scandir_variation8.phpt +++ b/ext/standard/tests/dir/scandir_variation8.phpt @@ -51,7 +51,7 @@ $iterator = 1; foreach($inputs as $key => $input) { echo "\n-- Iteration $iterator --\n"; $handle = "fp{$iterator}"; - var_dump( $$handle = fopen($dir_path . $input . '.tmp', 'w') ); + var_dump( $$handle = fopen(@"$dir_path$input.tmp", 'w') ); fclose($$handle); $iterator++; }; diff --git a/ext/standard/tests/file/file_put_contents_variation8.phpt b/ext/standard/tests/file/file_put_contents_variation8.phpt Binary files differindex d4c0bffca1..3cd92c5ec8 100644 --- a/ext/standard/tests/file/file_put_contents_variation8.phpt +++ b/ext/standard/tests/file/file_put_contents_variation8.phpt diff --git a/ext/standard/tests/file/fpassthru_variation1.phpt b/ext/standard/tests/file/fpassthru_variation1.phpt index 0d74d2ed79..f6868e3ece 100644 --- a/ext/standard/tests/file/fpassthru_variation1.phpt +++ b/ext/standard/tests/file/fpassthru_variation1.phpt @@ -77,7 +77,7 @@ $values = array( // loop through each element of the array for fp foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( fpassthru($value) ); }; diff --git a/ext/standard/tests/file/fseek_variation1.phpt b/ext/standard/tests/file/fseek_variation1.phpt index ebf3cf698d..fbe4673a3f 100644 --- a/ext/standard/tests/file/fseek_variation1.phpt +++ b/ext/standard/tests/file/fseek_variation1.phpt @@ -76,7 +76,7 @@ $values = array( // loop through each element of the array for offset foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( fseek($fp, $value, $whence) ); var_dump( ftell($fp)); }; diff --git a/ext/standard/tests/file/readfile_variation10.phpt b/ext/standard/tests/file/readfile_variation10.phpt Binary files differindex 2b48d4eed5..3bbc329f31 100644 --- a/ext/standard/tests/file/readfile_variation10.phpt +++ b/ext/standard/tests/file/readfile_variation10.phpt diff --git a/ext/standard/tests/file/rename_variation13.phpt b/ext/standard/tests/file/rename_variation13.phpt index ac64191978..ec1ee7c78d 100644 --- a/ext/standard/tests/file/rename_variation13.phpt +++ b/ext/standard/tests/file/rename_variation13.phpt @@ -41,7 +41,7 @@ $names_arr = array( for( $i=0; $i<count($names_arr); $i++ ) { $name = $names_arr[$i]; - echo "-- testing '$name' --\n"; + echo @"-- testing '$name' --\n"; touch($aFile); var_dump(rename($aFile, $name)); if (file_exists($name)) { diff --git a/ext/standard/tests/general_functions/strval.phpt b/ext/standard/tests/general_functions/strval.phpt index 3506785781..b92be41ef4 100644 --- a/ext/standard/tests/general_functions/strval.phpt +++ b/ext/standard/tests/general_functions/strval.phpt @@ -283,12 +283,20 @@ string(14) "Resource id #5" -- Iteration 3 -- string(14) "Resource id #6" -- Iteration 4 -- + +Notice: Array to string conversion in %sstrval.php on line %d string(5) "Array" -- Iteration 5 -- + +Notice: Array to string conversion in %sstrval.php on line %d string(5) "Array" -- Iteration 6 -- + +Notice: Array to string conversion in %sstrval.php on line %d string(5) "Array" -- Iteration 7 -- + +Notice: Array to string conversion in %sstrval.php on line %d string(5) "Array" -- Iteration 8 -- string(0) "" diff --git a/ext/standard/tests/strings/print_variation1.phpt b/ext/standard/tests/strings/print_variation1.phpt index 084f22f641..7c499f1084 100644 --- a/ext/standard/tests/strings/print_variation1.phpt +++ b/ext/standard/tests/strings/print_variation1.phpt @@ -109,12 +109,18 @@ int(1) 101234567000 int(1) -- Iteration 9 -- + +Notice: Array to string conversion in %sprint_variation1.php on line %d Array int(1) -- Iteration 10 -- + +Notice: Array to string conversion in %sprint_variation1.php on line %d Array int(1) -- Iteration 11 -- + +Notice: Array to string conversion in %sprint_variation1.php on line %d Array int(1) -- Iteration 12 -- diff --git a/ext/standard/tests/strings/strval.phpt b/ext/standard/tests/strings/strval.phpt index 3f8b5cc985..b837a079d4 100644 --- a/ext/standard/tests/strings/strval.phpt +++ b/ext/standard/tests/strings/strval.phpt @@ -13,7 +13,7 @@ var_dump(strval(true)); var_dump(strval(false)); var_dump(strval(array('foo'))); ?> ---EXPECT-- +--EXPECTF-- string(3) "bar" string(3) "BAR" string(6) "foobar" @@ -21,4 +21,6 @@ string(1) "1" string(3) "1.1" string(1) "1" string(0) "" + +Notice: Array to string conversion in %sstrval.php on line %d string(5) "Array" diff --git a/ext/standard/tests/url/base64_encode_variation_001.phpt b/ext/standard/tests/url/base64_encode_variation_001.phpt index 30da145a8b..f632bebf5d 100644 --- a/ext/standard/tests/url/base64_encode_variation_001.phpt +++ b/ext/standard/tests/url/base64_encode_variation_001.phpt @@ -109,22 +109,27 @@ string(20) "MS4wNzY1NDMyMUUtOQ==" Arg value 0.5 string(4) "MC41" +Error: 8 - Array to string conversion, %sbase64_encode_variation_001.php(%d) Arg value Array Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sbase64_encode_variation_001.php(%d) Arg value Array Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sbase64_encode_variation_001.php(%d) Arg value Array Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sbase64_encode_variation_001.php(%d) Arg value Array Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sbase64_encode_variation_001.php(%d) Arg value Array Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73) diff --git a/ext/standard/tests/url/parse_url_variation_001.phpt b/ext/standard/tests/url/parse_url_variation_001.phpt index 18ef0a547b..0b804eed57 100644 --- a/ext/standard/tests/url/parse_url_variation_001.phpt +++ b/ext/standard/tests/url/parse_url_variation_001.phpt @@ -133,22 +133,27 @@ array(1) { ["path"]=> string(3) "0.5" } +Error: 8 - Array to string conversion, %sparse_url_variation_001.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_001.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_001.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_001.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_001.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 1 to be string, array given, %s(70) diff --git a/ext/standard/tests/url/parse_url_variation_002_32bit.phpt b/ext/standard/tests/url/parse_url_variation_002_32bit.phpt index 88971e9642..aefb37a117 100644 --- a/ext/standard/tests/url/parse_url_variation_002_32bit.phpt +++ b/ext/standard/tests/url/parse_url_variation_002_32bit.phpt @@ -132,22 +132,27 @@ string(4) "http" Arg value 0.5 string(4) "http" +Error: 8 - Array to string conversion, %sparse_url_variation_002_32bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_32bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_32bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_32bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_32bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) diff --git a/ext/standard/tests/url/parse_url_variation_002_64bit.phpt b/ext/standard/tests/url/parse_url_variation_002_64bit.phpt index 74ea7965cf..35a600cdba 100644 --- a/ext/standard/tests/url/parse_url_variation_002_64bit.phpt +++ b/ext/standard/tests/url/parse_url_variation_002_64bit.phpt @@ -116,22 +116,27 @@ string(4) "http" Arg value 0.5 string(4) "http" +Error: 8 - Array to string conversion, %sparse_url_variation_002_64bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_64bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_64bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_64bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) NULL +Error: 8 - Array to string conversion, %sparse_url_variation_002_64bit.php(%d) Arg value Array Error: 2 - parse_url() expects parameter 2 to be long, array given, %s(71) diff --git a/ext/standard/tests/url/rawurldecode_variation_001.phpt b/ext/standard/tests/url/rawurldecode_variation_001.phpt index 4942e8b357..9527fe6062 100644 --- a/ext/standard/tests/url/rawurldecode_variation_001.phpt +++ b/ext/standard/tests/url/rawurldecode_variation_001.phpt @@ -110,22 +110,27 @@ string(13) "1.07654321E-9" Arg value 0.5 string(3) "0.5" +Error: 8 - Array to string conversion, %srawurldecode_variation_001.php(%d) Arg value Array Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurldecode_variation_001.php(%d) Arg value Array Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurldecode_variation_001.php(%d) Arg value Array Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurldecode_variation_001.php(%d) Arg value Array Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurldecode_variation_001.php(%d) Arg value Array Error: 2 - rawurldecode() expects parameter 1 to be string, array given, %s(74) diff --git a/ext/standard/tests/url/rawurlencode_variation_001.phpt b/ext/standard/tests/url/rawurlencode_variation_001.phpt index d90825ba7f..a3443361ec 100644 --- a/ext/standard/tests/url/rawurlencode_variation_001.phpt +++ b/ext/standard/tests/url/rawurlencode_variation_001.phpt @@ -110,22 +110,27 @@ string(13) "1.07654321E-9" Arg value 0.5 string(3) "0.5" +Error: 8 - Array to string conversion, %srawurlencode_variation_001.php(%d) Arg value Array Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurlencode_variation_001.php(%d) Arg value Array Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurlencode_variation_001.php(%d) Arg value Array Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurlencode_variation_001.php(%d) Arg value Array Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %srawurlencode_variation_001.php(%d) Arg value Array Error: 2 - rawurlencode() expects parameter 1 to be string, array given, %s(74) diff --git a/ext/standard/tests/url/urldecode_variation_001.phpt b/ext/standard/tests/url/urldecode_variation_001.phpt index 7ebc7bdbef..42026d103c 100644 --- a/ext/standard/tests/url/urldecode_variation_001.phpt +++ b/ext/standard/tests/url/urldecode_variation_001.phpt @@ -110,22 +110,27 @@ string(13) "1.07654321E-9" Arg value 0.5 string(3) "0.5" +Error: 8 - Array to string conversion, %surldecode_variation_001.php(%d) Arg value Array Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surldecode_variation_001.php(%d) Arg value Array Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surldecode_variation_001.php(%d) Arg value Array Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surldecode_variation_001.php(%d) Arg value Array Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surldecode_variation_001.php(%d) Arg value Array Error: 2 - urldecode() expects parameter 1 to be string, array given, %s(74) diff --git a/ext/standard/tests/url/urlencode_variation_001.phpt b/ext/standard/tests/url/urlencode_variation_001.phpt index 1f82b65f38..04d0921b2c 100644 --- a/ext/standard/tests/url/urlencode_variation_001.phpt +++ b/ext/standard/tests/url/urlencode_variation_001.phpt @@ -110,22 +110,27 @@ string(13) "1.07654321E-9" Arg value 0.5 string(3) "0.5" +Error: 8 - Array to string conversion, %surlencode_variation_001.php(%d) Arg value Array Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surlencode_variation_001.php(%d) Arg value Array Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surlencode_variation_001.php(%d) Arg value Array Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surlencode_variation_001.php(%d) Arg value Array Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %surlencode_variation_001.php(%d) Arg value Array Error: 2 - urlencode() expects parameter 1 to be string, array given, %s(74) |