diff --git a/NEWS b/NEWS index a00d5e8a9ba..af7f2f559e8 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2011, PHP 5.4.0 RC1 +- General improvements: + . Changed silent conversion of array to string to produce a notice. (Patrick) 20 Oct 2011, PHP 5.4.0 beta2 - General improvements: @@ -8,6 +10,7 @@ PHP NEWS . Improve ternary operator performance when returning arrays. (Arnaud, Dmitry) - Core: + . Fixed bug #55801 (Behavior of unserialize has changed). (Mike) . Fixed bug #55749 (TOCTOU issue in getenv() on Windows builds). (Pierre) . Fixed bug #55707 (undefined reference to `__sync_fetch_and_add_4' on Linux parisc). (Felipe) diff --git a/Zend/tests/cast_to_string.phpt b/Zend/tests/cast_to_string.phpt index d06daa2e7cb..f8b57a22c51 100644 Binary files a/Zend/tests/cast_to_string.phpt and b/Zend/tests/cast_to_string.phpt differ diff --git a/Zend/tests/concat_001.phpt b/Zend/tests/concat_001.phpt index d7bc525c4f2..1307c28930a 100644 --- a/Zend/tests/concat_001.phpt +++ b/Zend/tests/concat_001.phpt @@ -50,26 +50,46 @@ var_dump($d.$d); echo "Done\n"; ?> --EXPECTF-- + +Notice: Array to string conversion in %sconcat_001.php on line %d string(24) "Arraythis is test object" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(16) "Arraysome string" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(8) "Array222" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(13) "Array2323.444" + +Notice: Array to string conversion in %sconcat_001.php on line %d + +Notice: Array to string conversion in %sconcat_001.php on line %d string(10) "ArrayArray" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(24) "this is test objectArray" string(30) "this is test objectsome string" string(22) "this is test object222" string(27) "this is test object2323.444" string(38) "this is test objectthis is test object" string(30) "some stringthis is test object" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(16) "some stringArray" string(14) "some string222" string(19) "some string2323.444" string(22) "some stringsome string" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(8) "222Array" string(22) "222this is test object" string(14) "222some string" string(11) "2222323.444" string(6) "222222" + +Notice: Array to string conversion in %sconcat_001.php on line %d string(13) "2323.444Array" string(27) "2323.444this is test object" string(19) "2323.444some string" diff --git a/Zend/tests/unset_cv05.phpt b/Zend/tests/unset_cv05.phpt index 6ef7b34ce06..36fea3bc403 100644 --- a/Zend/tests/unset_cv05.phpt +++ b/Zend/tests/unset_cv05.phpt @@ -23,5 +23,7 @@ ok Warning: session_start(): Cannot send session cookie - headers already sent by (output started at %sunset_cv05.php on line %d Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at %sunset_cv05.php:%d) in %sunset_cv05.php on line %d + +Notice: Array to string conversion in %sunset_cv05.php on line %d Array ok diff --git a/Zend/tests/unset_cv08.phpt b/Zend/tests/unset_cv08.phpt index 1c4015ab38d..9b8ab1520fb 100644 --- a/Zend/tests/unset_cv08.phpt +++ b/Zend/tests/unset_cv08.phpt @@ -4,7 +4,7 @@ unset() CV 8 (unset() of global variable in array_unique($GLOBALS)) string(16) "1 a 1 Array 1 c " } +Error: 8 - Array to string conversion, %ssplit_variation_001.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_001.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_001.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_001.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_001.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) diff --git a/ext/ereg/tests/split_variation_002.phpt b/ext/ereg/tests/split_variation_002.phpt index 2a07353136f..b1ea57c787a 100644 --- a/ext/ereg/tests/split_variation_002.phpt +++ b/ext/ereg/tests/split_variation_002.phpt @@ -148,26 +148,31 @@ array(1) { [0]=> string(3) "0.5" } +Error: 8 - Array to string conversion, %ssplit_variation_002.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_002.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_002.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_002.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) Error: 2 - split() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %ssplit_variation_002.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(74) diff --git a/ext/ereg/tests/split_variation_003.phpt b/ext/ereg/tests/split_variation_003.phpt index 480db35bc9a..edef9cfeb9f 100644 --- a/ext/ereg/tests/split_variation_003.phpt +++ b/ext/ereg/tests/split_variation_003.phpt @@ -116,26 +116,31 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } +Error: 8 - Array to string conversion, %ssplit_variation_003.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(73) Error: 2 - split() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %ssplit_variation_003.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(73) Error: 2 - split() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %ssplit_variation_003.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(73) Error: 2 - split() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %ssplit_variation_003.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(73) Error: 2 - split() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %ssplit_variation_003.php(%d) Arg value Array Error: 8192 - Function split() is deprecated, %s(73) diff --git a/ext/ereg/tests/spliti_variation_001.phpt b/ext/ereg/tests/spliti_variation_001.phpt index 08c6ba0d99f..e5493b34adc 100644 --- a/ext/ereg/tests/spliti_variation_001.phpt +++ b/ext/ereg/tests/spliti_variation_001.phpt @@ -152,26 +152,31 @@ array(1) { [0]=> string(16) "1 a 1 Array 1 c " } +Error: 8 - Array to string conversion, %sspliti_variation_001.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_001.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_001.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_001.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_001.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) diff --git a/ext/ereg/tests/spliti_variation_002.phpt b/ext/ereg/tests/spliti_variation_002.phpt index 03fc131e94a..752cafc4f55 100644 --- a/ext/ereg/tests/spliti_variation_002.phpt +++ b/ext/ereg/tests/spliti_variation_002.phpt @@ -148,26 +148,31 @@ array(1) { [0]=> string(3) "0.5" } +Error: 8 - Array to string conversion, %sspliti_variation_002.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_002.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_002.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_002.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74) NULL +Error: 8 - Array to string conversion, %sspliti_variation_002.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(74) diff --git a/ext/ereg/tests/spliti_variation_003.phpt b/ext/ereg/tests/spliti_variation_003.phpt index beee4c643eb..3cfeaeae1a3 100644 --- a/ext/ereg/tests/spliti_variation_003.phpt +++ b/ext/ereg/tests/spliti_variation_003.phpt @@ -116,26 +116,31 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } +Error: 8 - Array to string conversion, %sspliti_variation_003.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(73) Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sspliti_variation_003.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(73) Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sspliti_variation_003.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(73) Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sspliti_variation_003.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(73) Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73) NULL +Error: 8 - Array to string conversion, %sspliti_variation_003.php(%d) Arg value Array Error: 8192 - Function spliti() is deprecated, %s(73) diff --git a/ext/ereg/tests/sql_regcase_variation_001.phpt b/ext/ereg/tests/sql_regcase_variation_001.phpt index c2c28ab50e2..0efbe926227 100644 --- a/ext/ereg/tests/sql_regcase_variation_001.phpt +++ b/ext/ereg/tests/sql_regcase_variation_001.phpt @@ -117,26 +117,31 @@ string(16) "1.07654321[Ee]-9" Arg value 0.5 Error: 8192 - Function sql_regcase() is deprecated, %s(72) string(3) "0.5" +Error: 8 - Array to string conversion, %ssql_regcase_variation_001.php(%d) Arg value Array Error: 8192 - Function sql_regcase() is deprecated, %s(72) Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72) NULL +Error: 8 - Array to string conversion, %ssql_regcase_variation_001.php(%d) Arg value Array Error: 8192 - Function sql_regcase() is deprecated, %s(72) Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72) NULL +Error: 8 - Array to string conversion, %ssql_regcase_variation_001.php(%d) Arg value Array Error: 8192 - Function sql_regcase() is deprecated, %s(72) Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72) NULL +Error: 8 - Array to string conversion, %ssql_regcase_variation_001.php(%d) Arg value Array Error: 8192 - Function sql_regcase() is deprecated, %s(72) Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72) NULL +Error: 8 - Array to string conversion, %ssql_regcase_variation_001.php(%d) Arg value Array Error: 8192 - Function sql_regcase() is deprecated, %s(72) diff --git a/ext/intl/tests/locale_accept.phpt b/ext/intl/tests/locale_accept.phpt index 923571f8f0c..cf1dc6e675c 100755 --- a/ext/intl/tests/locale_accept.phpt +++ b/ext/intl/tests/locale_accept.phpt @@ -24,7 +24,7 @@ function ut_main() foreach($http_acc as $http) { $res = ut_loc_accept_http($http); - $res_str .= "Accepting $http: $res\n"; + $res_str .= @"Accepting $http: $res\n"; } return $res_str; diff --git a/ext/posix/tests/posix_getgrgid_variation.phpt b/ext/posix/tests/posix_getgrgid_variation.phpt index 13db73b7919..5cce391d7b2 100644 --- a/ext/posix/tests/posix_getgrgid_variation.phpt +++ b/ext/posix/tests/posix_getgrgid_variation.phpt @@ -103,26 +103,36 @@ valid output Arg value 0.5 valid output -Arg value Array - -Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d -valid output +Notice: Array to string conversion in %sposix_getgrgid_variation.php on line %d Arg value Array Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d valid output -Arg value Array - -Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d -valid output +Notice: Array to string conversion in %sposix_getgrgid_variation.php on line %d Arg value Array Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d valid output +Notice: Array to string conversion in %sposix_getgrgid_variation.php on line %d + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Notice: Array to string conversion in %sposix_getgrgid_variation.php on line %d + +Arg value Array + +Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Notice: Array to string conversion in %sposix_getgrgid_variation.php on line %d + Arg value Array Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on line %d diff --git a/ext/posix/tests/posix_getpgid_variation.phpt b/ext/posix/tests/posix_getpgid_variation.phpt index e53d58f393d..b9c92b539ab 100644 --- a/ext/posix/tests/posix_getpgid_variation.phpt +++ b/ext/posix/tests/posix_getpgid_variation.phpt @@ -103,26 +103,36 @@ valid output Arg value 0.5 valid output -Arg value Array - -Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d -valid output +Notice: Array to string conversion in %sposix_getpgid_variation.php on line %d Arg value Array Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d valid output -Arg value Array - -Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d -valid output +Notice: Array to string conversion in %sposix_getpgid_variation.php on line %d Arg value Array Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d valid output +Notice: Array to string conversion in %sposix_getpgid_variation.php on line %d + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Notice: Array to string conversion in %sposix_getpgid_variation.php on line %d + +Arg value Array + +Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Notice: Array to string conversion in %sposix_getpgid_variation.php on line %d + Arg value Array Warning: posix_getpgid() expects parameter 1 to be long, array given in %s on line %d diff --git a/ext/posix/tests/posix_getpwuid_variation.phpt b/ext/posix/tests/posix_getpwuid_variation.phpt index 8e91d6c315c..8b66f7f3d5c 100644 --- a/ext/posix/tests/posix_getpwuid_variation.phpt +++ b/ext/posix/tests/posix_getpwuid_variation.phpt @@ -103,26 +103,36 @@ valid output Arg value 0.5 valid output -Arg value Array - -Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d -valid output +Notice: Array to string conversion in %sposix_getpwuid_variation.php on line %d Arg value Array Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d valid output -Arg value Array - -Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d -valid output +Notice: Array to string conversion in %sposix_getpwuid_variation.php on line %d Arg value Array Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d valid output +Notice: Array to string conversion in %sposix_getpwuid_variation.php on line %d + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Notice: Array to string conversion in %sposix_getpwuid_variation.php on line %d + +Arg value Array + +Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d +valid output + +Notice: Array to string conversion in %sposix_getpwuid_variation.php on line %d + Arg value Array Warning: posix_getpwuid() expects parameter 1 to be long, array given in %s on line %d diff --git a/ext/posix/tests/posix_kill_variation1.phpt b/ext/posix/tests/posix_kill_variation1.phpt index 6fcf0fa98f2..230977a9d0a 100644 --- a/ext/posix/tests/posix_kill_variation1.phpt +++ b/ext/posix/tests/posix_kill_variation1.phpt @@ -97,26 +97,36 @@ bool(false) Arg value 0.5 bool(false) -Arg value Array - -Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d -bool(false) +Notice: Array to string conversion in %sposix_kill_variation1.php on line %d Arg value Array Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d bool(false) -Arg value Array - -Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d -bool(false) +Notice: Array to string conversion in %sposix_kill_variation1.php on line %d Arg value Array Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d bool(false) +Notice: Array to string conversion in %sposix_kill_variation1.php on line %d + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Notice: Array to string conversion in %sposix_kill_variation1.php on line %d + +Arg value Array + +Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d +bool(false) + +Notice: Array to string conversion in %sposix_kill_variation1.php on line %d + Arg value Array Warning: posix_kill() expects parameter 1 to be long, array given in %s on line %d diff --git a/ext/posix/tests/posix_kill_variation2.phpt b/ext/posix/tests/posix_kill_variation2.phpt index 240cfa57c1e..c03ead9a4bb 100644 --- a/ext/posix/tests/posix_kill_variation2.phpt +++ b/ext/posix/tests/posix_kill_variation2.phpt @@ -97,26 +97,36 @@ bool(false) Arg value 0.5 bool(false) -Arg value Array - -Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d -bool(false) +Notice: Array to string conversion in %sposix_kill_variation2.php on line %d Arg value Array Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d bool(false) -Arg value Array - -Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d -bool(false) +Notice: Array to string conversion in %sposix_kill_variation2.php on line %d Arg value Array Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d bool(false) +Notice: Array to string conversion in %sposix_kill_variation2.php on line %d + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Notice: Array to string conversion in %sposix_kill_variation2.php on line %d + +Arg value Array + +Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d +bool(false) + +Notice: Array to string conversion in %sposix_kill_variation2.php on line %d + Arg value Array Warning: posix_kill() expects parameter 2 to be long, array given in %s on line %d diff --git a/ext/posix/tests/posix_strerror_variation1.phpt b/ext/posix/tests/posix_strerror_variation1.phpt index 5d6e3545328..4d2b5267163 100644 --- a/ext/posix/tests/posix_strerror_variation1.phpt +++ b/ext/posix/tests/posix_strerror_variation1.phpt @@ -96,26 +96,36 @@ string Arg value 0.5 string -Arg value Array - -Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d -boolean +Notice: Array to string conversion in %sposix_strerror_variation1.php on line %d Arg value Array Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d boolean -Arg value Array - -Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d -boolean +Notice: Array to string conversion in %sposix_strerror_variation1.php on line %d Arg value Array Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d boolean +Notice: Array to string conversion in %sposix_strerror_variation1.php on line %d + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +boolean + +Notice: Array to string conversion in %sposix_strerror_variation1.php on line %d + +Arg value Array + +Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d +boolean + +Notice: Array to string conversion in %sposix_strerror_variation1.php on line %d + Arg value Array Warning: posix_strerror() expects parameter 1 to be long, array given in %s on line %d diff --git a/ext/spl/tests/bug53515.phpt b/ext/spl/tests/bug53515.phpt index f99840e3222..8ecb02b1e61 100644 --- a/ext/spl/tests/bug53515.phpt +++ b/ext/spl/tests/bug53515.phpt @@ -10,7 +10,7 @@ $a['z'] = ''; $a[''] = ''; foreach ($a as $key => $value) { - echo $key . ': ' . (is_null($value) ? 'null' : $value) . + echo $key . ': ' . (is_null($value) ? 'null' : @"$value") . ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') . ' property_exists: ' . (property_exists($o, $key) ? 'true' : 'false'),"\n"; } diff --git a/ext/spl/tests/iterator_026.phpt b/ext/spl/tests/iterator_026.phpt index 1e6058246b9..8eb77a7baf7 100755 --- a/ext/spl/tests/iterator_026.phpt +++ b/ext/spl/tests/iterator_026.phpt @@ -23,10 +23,14 @@ foreach($it as $k=>$v) hasNext: yes 1=>2 hasNext: yes + +Notice: Array to string conversion in %siterator_026.php on line %d 0=>31 hasNext: yes 1=>32 hasNext: yes + +Notice: Array to string conversion in %siterator_026.php on line %d 0=>331 hasNext: no 3=>4 diff --git a/ext/spl/tests/iterator_047.phpt b/ext/spl/tests/iterator_047.phpt index e5fec4f5858..548f4865280 100755 --- a/ext/spl/tests/iterator_047.phpt +++ b/ext/spl/tests/iterator_047.phpt @@ -70,6 +70,8 @@ int(0) int(0) MyRecursiveArrayIterator::hasChildren() MyRecursiveArrayIterator::getChildren() + +Notice: Array to string conversion in %siterator_047.php on line %d MyRecursiveArrayIterator::hasChildren() int(0) int(10) @@ -78,6 +80,8 @@ int(2) int(2) MyRecursiveArrayIterator::hasChildren() MyRecursiveArrayIterator::getChildren() + +Notice: Array to string conversion in %siterator_047.php on line %d MyRecursiveArrayIterator::hasChildren() int(0) int(30) @@ -100,6 +104,8 @@ int(0) int(0) MyRecursiveArrayIterator::hasChildren() MyRecursiveArrayIterator::getChildren() + +Notice: Array to string conversion in %siterator_047.php on line %d MyRecursiveArrayIterator::hasChildren() int(0) int(10) @@ -108,6 +114,8 @@ int(2) int(2) MyRecursiveArrayIterator::hasChildren() MyRecursiveArrayIterator::getChildren() + +Notice: Array to string conversion in %siterator_047.php on line %d MyRecursiveArrayIterator::hasChildren() int(0) int(30) diff --git a/ext/spl/tests/iterator_050.phpt b/ext/spl/tests/iterator_050.phpt index 63d8fbfa9a8..fed4a3b2ee3 100755 --- a/ext/spl/tests/iterator_050.phpt +++ b/ext/spl/tests/iterator_050.phpt @@ -46,6 +46,8 @@ array(3) { [2]=> %s(1) "2" } + +Notice: Array to string conversion in %siterator_050.php on line %d int(0) array(2) { [0]=> @@ -67,6 +69,8 @@ array(2) { [1]=> %s(1) "1" } + +Notice: Array to string conversion in %siterator_050.php on line %d object(ArrayIterator)#%d (1) { %s"storage"%s"ArrayIterator":private]=> array(9) { diff --git a/ext/spl/tests/iterator_052.phpt b/ext/spl/tests/iterator_052.phpt index a0cbdd8f731..c68bd5234de 100755 --- a/ext/spl/tests/iterator_052.phpt +++ b/ext/spl/tests/iterator_052.phpt @@ -122,6 +122,8 @@ array(3) { array(0) { } } + +Notice: Array to string conversion in %siterator_052.php on line %d bool(true) int(5) array(3) { @@ -248,6 +250,8 @@ array(2) { array(0) { } } + +Notice: Array to string conversion in %siterator_052.php on line %d bool(true) int(5) array(2) { diff --git a/ext/spl/tests/iterator_054.phpt b/ext/spl/tests/iterator_054.phpt index 91266c95711..1f1cd580c17 100755 --- a/ext/spl/tests/iterator_054.phpt +++ b/ext/spl/tests/iterator_054.phpt @@ -42,6 +42,8 @@ array(3) { [2]=> string(1) "3" } + +Notice: Array to string conversion in %siterator_054.php on line %d int(7) array(2) { [0]=> diff --git a/ext/standard/tests/array/002.phpt b/ext/standard/tests/array/002.phpt index b865dc100c7..469e8626754 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 58d9c201ba6..1bf1f1c2ac1 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 456109b1c26..338d40936e2 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 d3525dcd06a..fda63dd628e 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 6cf343221f5..ee34deeecc3 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 378489f926f..4be9839221e 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) --EXPECTF-- diff --git a/ext/standard/tests/array/range_variation.phpt b/ext/standard/tests/array/range_variation.phpt index 0ac8c55e65f..e97d918d9b6 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 2141d65eb8f..c9146ba9f78 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 da10cac908f..ae9de157f6a 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 b881452b4cc..8cdef12a7b9 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 e2bf986c21d..2baef2e14c1 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 adefa793ad3..1e68d08ee3e 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 f7e5b9df3f7..0d19e223640 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 d2d6ce24071..d449fd3797b 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 970da72f1cd..a34c325d871 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 14aaa3347b0..201d8789ea8 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 c550d8090c6..9bb712b7574 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 2f46c4a8dfe..65ae8a4e231 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 117c211d0d3..1947c76ac5e 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 ba38894b535..b1204e833d8 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 16515de6dc1..65ef1993cfc 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 d29d81a37c9..a2fcbbf018f 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 4c22de86976..9b04a986a67 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 36ae88c8f5a..4e96e04a4e4 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 index d4c0bffca17..3cd92c5ec8a 100644 Binary files a/ext/standard/tests/file/file_put_contents_variation8.phpt and b/ext/standard/tests/file/file_put_contents_variation8.phpt differ diff --git a/ext/standard/tests/file/fpassthru_variation1.phpt b/ext/standard/tests/file/fpassthru_variation1.phpt index 0d74d2ed798..f6868e3ecee 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 ebf3cf698db..fbe4673a3f3 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 index 2b48d4eed50..3bbc329f317 100644 Binary files a/ext/standard/tests/file/readfile_variation10.phpt and b/ext/standard/tests/file/readfile_variation10.phpt differ diff --git a/ext/standard/tests/file/rename_variation13.phpt b/ext/standard/tests/file/rename_variation13.phpt index ac641919782..ec1ee7c78d7 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 ---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 30da145a8b7..f632bebf5d9 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 18ef0a547b5..0b804eed579 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 88971e96427..aefb37a1173 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 74ea7965cf2..35a600cdba2 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 4942e8b357e..9527fe60623 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 d90825ba7f5..a3443361ec5 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 7ebc7bdbef8..42026d103ce 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 1f82b65f389..04d0921b2c4 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) diff --git a/ext/sysvmsg/tests/006.phpt b/ext/sysvmsg/tests/006.phpt index 675e5e114b8..cb4fd2457ed 100644 --- a/ext/sysvmsg/tests/006.phpt +++ b/ext/sysvmsg/tests/006.phpt @@ -10,7 +10,7 @@ $queue = msg_get_queue (ftok(__FILE__, 'r'), 0600); $tests = array('foo', 123, PHP_INT_MAX +1, true, 1.01, null, array('bar')); foreach ($tests as $elem) { - echo "Sending/receiving '$elem':\n"; + echo @"Sending/receiving '$elem':\n"; var_dump(msg_send($queue, 1, $elem, false)); unset($msg); diff --git a/ext/xml/tests/utf8_decode_variation1.phpt b/ext/xml/tests/utf8_decode_variation1.phpt index 5966531723c..4b9679a8957 100644 --- a/ext/xml/tests/utf8_decode_variation1.phpt +++ b/ext/xml/tests/utf8_decode_variation1.phpt @@ -79,7 +79,7 @@ $values = array( // loop through each element of the array for data foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( utf8_decode($value) ); }; diff --git a/ext/xml/tests/utf8_encode_variation1.phpt b/ext/xml/tests/utf8_encode_variation1.phpt index 4b5d3c5d3ca..04b956c4221 100644 --- a/ext/xml/tests/utf8_encode_variation1.phpt +++ b/ext/xml/tests/utf8_encode_variation1.phpt @@ -79,7 +79,7 @@ $values = array( // loop through each element of the array for data foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( utf8_encode($value) ); }; diff --git a/ext/xml/tests/xml_error_string_variation1.phpt b/ext/xml/tests/xml_error_string_variation1.phpt index 2d21cd9c489..40b542c141b 100644 --- a/ext/xml/tests/xml_error_string_variation1.phpt +++ b/ext/xml/tests/xml_error_string_variation1.phpt @@ -77,7 +77,7 @@ $values = array( // loop through each element of the array for code foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_error_string($value) ); }; diff --git a/ext/xml/tests/xml_get_current_byte_index_variation1.phpt b/ext/xml/tests/xml_get_current_byte_index_variation1.phpt index 7f57ee3297c..b5c83d78e9d 100644 --- a/ext/xml/tests/xml_get_current_byte_index_variation1.phpt +++ b/ext/xml/tests/xml_get_current_byte_index_variation1.phpt @@ -87,7 +87,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_get_current_byte_index($value) ); }; diff --git a/ext/xml/tests/xml_get_current_column_number_variation1.phpt b/ext/xml/tests/xml_get_current_column_number_variation1.phpt index 59db6102916..0eeb8d078e0 100644 --- a/ext/xml/tests/xml_get_current_column_number_variation1.phpt +++ b/ext/xml/tests/xml_get_current_column_number_variation1.phpt @@ -88,7 +88,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_get_current_column_number($value) ); }; diff --git a/ext/xml/tests/xml_get_current_line_number_variation1.phpt b/ext/xml/tests/xml_get_current_line_number_variation1.phpt index 0878dbb736f..af41c6f9e8a 100644 --- a/ext/xml/tests/xml_get_current_line_number_variation1.phpt +++ b/ext/xml/tests/xml_get_current_line_number_variation1.phpt @@ -87,7 +87,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_get_current_line_number($value) ); }; diff --git a/ext/xml/tests/xml_get_error_code_variation1.phpt b/ext/xml/tests/xml_get_error_code_variation1.phpt index 32caa52b5fa..474921406a4 100644 --- a/ext/xml/tests/xml_get_error_code_variation1.phpt +++ b/ext/xml/tests/xml_get_error_code_variation1.phpt @@ -87,7 +87,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_get_error_code($value) ); }; diff --git a/ext/xml/tests/xml_parse_into_struct_variation1.phpt b/ext/xml/tests/xml_parse_into_struct_variation1.phpt index 78b0cf43cda..fa1e8d29908 100644 --- a/ext/xml/tests/xml_parse_into_struct_variation1.phpt +++ b/ext/xml/tests/xml_parse_into_struct_variation1.phpt @@ -88,7 +88,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parse_into_struct($value, $data, $struct, $index) ); }; diff --git a/ext/xml/tests/xml_parse_variation1.phpt b/ext/xml/tests/xml_parse_variation1.phpt index 23f199a4dc7..cf366664998 100644 --- a/ext/xml/tests/xml_parse_variation1.phpt +++ b/ext/xml/tests/xml_parse_variation1.phpt @@ -89,7 +89,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parse($value, $data, $isFinal) ); }; diff --git a/ext/xml/tests/xml_parser_create_ns_variation1.phpt b/ext/xml/tests/xml_parser_create_ns_variation1.phpt index 5446a4f3eee..2818b82fe83 100644 --- a/ext/xml/tests/xml_parser_create_ns_variation1.phpt +++ b/ext/xml/tests/xml_parser_create_ns_variation1.phpt @@ -91,7 +91,7 @@ $values = array( // loop through each element of the array for encoding foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; $res = xml_parser_create_ns($value); var_dump($res); if ($res !== false) { diff --git a/ext/xml/tests/xml_parser_create_variation1.phpt b/ext/xml/tests/xml_parser_create_variation1.phpt index 445b40d08e9..c5d588fec39 100644 --- a/ext/xml/tests/xml_parser_create_variation1.phpt +++ b/ext/xml/tests/xml_parser_create_variation1.phpt @@ -91,7 +91,7 @@ $values = array( // loop through each element of the array for encoding foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; $res = xml_parser_create($value); var_dump($res); if ($res !== false) { diff --git a/ext/xml/tests/xml_parser_free_variation1.phpt b/ext/xml/tests/xml_parser_free_variation1.phpt index 4b4de5d05b0..0ecb1092c8c 100644 --- a/ext/xml/tests/xml_parser_free_variation1.phpt +++ b/ext/xml/tests/xml_parser_free_variation1.phpt @@ -87,7 +87,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parser_free($value) ); }; diff --git a/ext/xml/tests/xml_parser_get_option_variation1.phpt b/ext/xml/tests/xml_parser_get_option_variation1.phpt index 4edf1d6a0b6..b53f8031888 100644 --- a/ext/xml/tests/xml_parser_get_option_variation1.phpt +++ b/ext/xml/tests/xml_parser_get_option_variation1.phpt @@ -88,7 +88,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parser_get_option($value, $option) ); }; diff --git a/ext/xml/tests/xml_parser_get_option_variation2.phpt b/ext/xml/tests/xml_parser_get_option_variation2.phpt index de82111f83c..2341c413f17 100644 --- a/ext/xml/tests/xml_parser_get_option_variation2.phpt +++ b/ext/xml/tests/xml_parser_get_option_variation2.phpt @@ -86,7 +86,7 @@ $values = array( // loop through each element of the array for option foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parser_get_option($parser, $value) ); }; diff --git a/ext/xml/tests/xml_parser_set_option_variation1.phpt b/ext/xml/tests/xml_parser_set_option_variation1.phpt index e3e3df8319f..6cfce0b4e35 100644 --- a/ext/xml/tests/xml_parser_set_option_variation1.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation1.phpt @@ -88,7 +88,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parser_set_option($value, $option, 1) ); }; diff --git a/ext/xml/tests/xml_parser_set_option_variation2.phpt b/ext/xml/tests/xml_parser_set_option_variation2.phpt index 6f84ebb696b..9900d6fe6a5 100644 --- a/ext/xml/tests/xml_parser_set_option_variation2.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation2.phpt @@ -81,7 +81,7 @@ $values = array( // loop through each element of the array for option foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parser_set_option($parser, $value, 1) ); }; diff --git a/ext/xml/tests/xml_parser_set_option_variation3.phpt b/ext/xml/tests/xml_parser_set_option_variation3.phpt index 5f988039053..c215ef5fded 100644 --- a/ext/xml/tests/xml_parser_set_option_variation3.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation3.phpt @@ -90,7 +90,7 @@ $values = array( // loop through each element of the array for value foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_parser_set_option($parser, $option, $value) ); }; diff --git a/ext/xml/tests/xml_set_character_data_handler_variation1.phpt b/ext/xml/tests/xml_set_character_data_handler_variation1.phpt index bd384c9b62f..40cff9193fe 100644 --- a/ext/xml/tests/xml_set_character_data_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_character_data_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_character_data_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_default_handler_variation1.phpt b/ext/xml/tests/xml_set_default_handler_variation1.phpt index a887e01673a..35089a066a5 100644 --- a/ext/xml/tests/xml_set_default_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_default_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_default_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_element_handler_variation1.phpt b/ext/xml/tests/xml_set_element_handler_variation1.phpt index 83f370afea9..225cf770b31 100644 --- a/ext/xml/tests/xml_set_element_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_element_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_element_handler($value, $hdl, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt index c2fcacfe8b6..c7c2f6f176b 100644 --- a/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_end_namespace_decl_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt b/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt index 1ad6a11279e..10835b33b27 100644 --- a/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_external_entity_ref_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt index d89b04d2a5c..d41e691edc9 100644 --- a/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_notation_decl_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_object_variation1.phpt b/ext/xml/tests/xml_set_object_variation1.phpt index cc404457256..851dfaff101 100644 --- a/ext/xml/tests/xml_set_object_variation1.phpt +++ b/ext/xml/tests/xml_set_object_variation1.phpt @@ -88,7 +88,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_object($value, $obj) ); }; diff --git a/ext/xml/tests/xml_set_object_variation2.phpt b/ext/xml/tests/xml_set_object_variation2.phpt index 210544c45d7..08446617867 100644 --- a/ext/xml/tests/xml_set_object_variation2.phpt +++ b/ext/xml/tests/xml_set_object_variation2.phpt @@ -80,7 +80,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( xml_set_object($parser, $value) ); }; diff --git a/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt b/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt index 74cc1e55803..9da14cc5fdf 100644 --- a/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_processing_instruction_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt index c0323b36ae7..684a0fdac4b 100644 --- a/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_start_namespace_decl_handler($value, $hdl) ); }; diff --git a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt index 04290fa4e12..18041150217 100644 --- a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt @@ -92,7 +92,7 @@ $values = array( // loop through each element of the array for parser foreach($values as $value) { - echo "\nArg value $value \n"; + echo @"\nArg value $value \n"; var_dump( xml_set_unparsed_entity_decl_handler($value, $hdl) ); }; diff --git a/tests/classes/array_access_010.phpt b/tests/classes/array_access_010.phpt index e60716dc1b2..ad374d278c0 100755 --- a/tests/classes/array_access_010.phpt +++ b/tests/classes/array_access_010.phpt @@ -12,7 +12,7 @@ class ArrayReferenceProxy implements ArrayAccess function __construct(ArrayAccess $object, array &$element) { - echo __METHOD__ . "($element)\n"; + echo __METHOD__ . "(Array)\n"; $this->object = $object; $this->element = &$element; } @@ -23,17 +23,17 @@ class ArrayReferenceProxy implements ArrayAccess } function offsetGet($index) { - echo __METHOD__ . "($this->element, $index)\n"; + echo __METHOD__ . "(Array, $index)\n"; return isset($this->element[$index]) ? $this->element[$index] : NULL; } function offsetSet($index, $value) { - echo __METHOD__ . "($this->element, $index, $value)\n"; + echo __METHOD__ . "(Array, $index, $value)\n"; $this->element[$index] = $value; } function offsetUnset($index) { - echo __METHOD__ . "($this->element, $index)\n"; + echo __METHOD__ . "(Array, $index)\n"; unset($this->element[$index]); } }