summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/date/tests/DateTimeZone_construct_error.phpt2
-rw-r--r--ext/date/tests/DateTime_construct_error.phpt2
-rw-r--r--ext/date/tests/mktime_error.phpt4
-rw-r--r--ext/dom/tests/DOMAttr_construct_error_001.phpt2
-rw-r--r--ext/dom/tests/DOMCDATASection_construct_error_001.phpt2
-rw-r--r--ext/dom/tests/DOMComment_construct_error_001.phpt2
-rw-r--r--ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt2
-rw-r--r--ext/fileinfo/tests/bug61173.phpt2
-rw-r--r--ext/imap/tests/imap_timeout_basic.phpt2
-rw-r--r--ext/intl/tests/breakiter___construct_error.phpt4
-rw-r--r--ext/intl/tests/calendar_before_after_error.phpt12
-rw-r--r--ext/intl/tests/calendar_equals_error.phpt4
-rw-r--r--ext/intl/tests/calendar_fieldDifference_error.phpt4
-rw-r--r--ext/intl/tests/calendar_getLocale_error.phpt2
-rw-r--r--ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt12
-rw-r--r--ext/intl/tests/calendar_isEquivalentTo_error.phpt4
-rw-r--r--ext/intl/tests/calendar_setTimeZone_error.phpt6
-rw-r--r--ext/intl/tests/calendar_setTime_error.phpt2
-rw-r--r--ext/intl/tests/calendar_set_error.phpt2
-rw-r--r--ext/intl/tests/formatter_fail.phpt6
-rw-r--r--ext/intl/tests/msgfmt_fail2.phpt12
-rw-r--r--ext/json/tests/json_last_error_error.phpt2
-rw-r--r--ext/json/tests/json_last_error_msg_error.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_connect_errno.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_connect_error.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_fetch_object_oo.phpt2
-rw-r--r--ext/mysqli/tests/mysqli_pconn_max_links.phpt2
-rw-r--r--ext/oci8/tests/array_bind_013.phpt2
-rw-r--r--ext/opcache/jit/zend_jit_x86.dasc20
-rw-r--r--ext/opcache/tests/optimize_func_calls.phpt2
-rw-r--r--ext/openssl/tests/bug71475.phpt2
-rw-r--r--ext/pcre/tests/preg_match_all_error3.phpt2
-rw-r--r--ext/pdo_mysql/tests/bug_37445.phpt2
-rw-r--r--ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt4
-rw-r--r--ext/phar/tests/002.phpt2
-rw-r--r--ext/phar/tests/badparameters.phpt8
-rw-r--r--ext/phar/tests/bug60261.phpt2
-rw-r--r--ext/reflection/tests/ReflectionClass_constructor_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_getMethod_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_getProperty_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt6
-rw-r--r--ext/reflection/tests/ReflectionExtension_constructor_error.phpt6
-rw-r--r--ext/reflection/tests/ReflectionFunction_construct.001.phpt4
-rw-r--r--ext/reflection/tests/ReflectionMethod_006.phpt4
-rw-r--r--ext/reflection/tests/ReflectionMethod_constructor_error2.phpt6
-rw-r--r--ext/reflection/tests/ReflectionMethod_invoke_basic.phpt2
-rw-r--r--ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt4
-rw-r--r--ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt2
-rw-r--r--ext/reflection/tests/ReflectionProperty_error.phpt6
-rw-r--r--ext/reflection/tests/ReflectionProperty_getValue_error.phpt2
-rw-r--r--ext/session/tests/session_set_save_handler_class_012.phpt2
-rw-r--r--ext/session/tests/session_set_save_handler_class_013.phpt2
-rw-r--r--ext/snmp/tests/snmp-object-error.phpt2
-rw-r--r--ext/soap/tests/bugs/bug31422.phpt2
-rw-r--r--ext/sockets/tests/socket_connect_params.phpt2
-rw-r--r--ext/sodium/tests/bug78114.phpt2
-rw-r--r--ext/spl/tests/AppendIterator_invalid_ctor.phpt2
-rw-r--r--ext/spl/tests/CallbackFilterIteratorTest-002.phpt4
-rw-r--r--ext/spl/tests/arrayObject___construct_error2.phpt2
-rw-r--r--ext/spl/tests/arrayObject_exchangeArray_basic3.phpt2
-rw-r--r--ext/spl/tests/arrayObject_natcasesort_basic1.phpt2
-rw-r--r--ext/spl/tests/arrayObject_natsort_basic1.phpt2
-rw-r--r--ext/spl/tests/arrayObject_uasort_error1.phpt4
-rw-r--r--ext/spl/tests/arrayObject_uksort_error1.phpt4
-rw-r--r--ext/spl/tests/iterator_056.phpt12
-rw-r--r--ext/spl/tests/iterator_062.phpt2
-rw-r--r--ext/spl/tests/recursive_tree_iterator_002.phpt2
-rw-r--r--ext/spl/tests/spl_004.phpt2
-rw-r--r--ext/spl/tests/spl_iterator_iterator_constructor.phpt2
-rw-r--r--ext/sqlite3/tests/sqlite3_02_open.phpt2
-rw-r--r--ext/standard/array.c22
-rwxr-xr-xext/standard/basic_functions.stub.php4
-rwxr-xr-xext/standard/basic_functions_arginfo.h2
-rw-r--r--ext/standard/formatted_print.c2
-rw-r--r--ext/standard/tests/array/array_diff_assoc_error.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_error.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_key_error.phpt4
-rw-r--r--ext/standard/tests/array/array_diff_uassoc_error.phpt2
-rw-r--r--ext/standard/tests/array/array_filter_variation10.phpt2
-rw-r--r--ext/standard/tests/array/array_intersect_assoc_error.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_error.phpt4
-rw-r--r--ext/standard/tests/array/array_intersect_key_error.phpt4
-rw-r--r--ext/standard/tests/array/array_map_error.phpt2
-rw-r--r--ext/standard/tests/array/array_map_variation12.phpt2
-rw-r--r--ext/standard/tests/array/array_next_error2.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_error2.phpt2
-rw-r--r--ext/standard/tests/array/array_walk_recursive_error2.phpt2
-rw-r--r--ext/standard/tests/array/count_invalid.phpt12
-rw-r--r--ext/standard/tests/array/count_recursive.phpt18
-rw-r--r--ext/standard/tests/array/prev_error3.phpt2
-rw-r--r--ext/standard/tests/array/sizeof_basic1.phpt12
-rw-r--r--ext/standard/tests/array/sizeof_object2.phpt30
-rw-r--r--ext/standard/tests/array/sizeof_variation1.phpt114
-rw-r--r--ext/standard/tests/array/sizeof_variation4.phpt120
-rw-r--r--ext/standard/tests/general_functions/error_get_last.phpt2
-rw-r--r--ext/standard/tests/general_functions/is_countable_with_variables.phpt2
-rw-r--r--ext/standard/tests/password/password_hash_error.phpt2
-rw-r--r--ext/standard/tests/password/password_needs_rehash_error.phpt2
-rw-r--r--ext/standard/tests/password/password_verify_error.phpt2
-rw-r--r--ext/standard/tests/random/random_bytes_error.phpt2
-rw-r--r--ext/standard/tests/random/random_int_error.phpt4
-rw-r--r--ext/standard/tests/strings/chr_error.phpt4
-rw-r--r--ext/standard/tests/strings/crypt.phpt2
-rw-r--r--ext/standard/tests/strings/fprintf_error.phpt6
-rw-r--r--ext/standard/tests/strings/printf.phpt4
-rw-r--r--ext/standard/tests/strings/printf_64bit.phpt4
-rw-r--r--ext/standard/tests/strings/printf_error.phpt14
-rw-r--r--ext/standard/tests/strings/sprintf_error.phpt18
-rw-r--r--ext/standard/tests/strings/vfprintf_error1.phpt4
-rw-r--r--ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt2
113 files changed, 354 insertions, 366 deletions
diff --git a/ext/date/tests/DateTimeZone_construct_error.phpt b/ext/date/tests/DateTimeZone_construct_error.phpt
index 00142dbe3a..dd0b1bb708 100644
--- a/ext/date/tests/DateTimeZone_construct_error.phpt
+++ b/ext/date/tests/DateTimeZone_construct_error.phpt
@@ -21,4 +21,4 @@ try {
*** Testing DateTimeZone() : error conditions ***
-- Testing new DateTimeZone() with more than expected no. of arguments --
-DateTimeZone::__construct() expects exactly 1 parameter, 2 given
+DateTimeZone::__construct() expects exactly 1 argument, 2 given
diff --git a/ext/date/tests/DateTime_construct_error.phpt b/ext/date/tests/DateTime_construct_error.phpt
index b033eadaeb..56ab1f3003 100644
--- a/ext/date/tests/DateTime_construct_error.phpt
+++ b/ext/date/tests/DateTime_construct_error.phpt
@@ -22,4 +22,4 @@ try {
*** Testing date_create() : error conditions ***
-- Testing new DateTime() with more than expected no. of arguments --
-DateTime::__construct() expects at most 2 parameters, 3 given
+DateTime::__construct() expects at most 2 arguments, 3 given
diff --git a/ext/date/tests/mktime_error.phpt b/ext/date/tests/mktime_error.phpt
index f7cc4565be..5bd1421369 100644
--- a/ext/date/tests/mktime_error.phpt
+++ b/ext/date/tests/mktime_error.phpt
@@ -33,7 +33,7 @@ try {
*** Testing mktime() : error conditions ***
-- Testing mktime() function with Zero arguments --
-mktime() expects at least 1 parameter, 0 given
+mktime() expects at least 1 argument, 0 given
-- Testing mktime() function with more than expected no. of arguments --
-mktime() expects at most 6 parameters, 7 given
+mktime() expects at most 6 arguments, 7 given
diff --git a/ext/dom/tests/DOMAttr_construct_error_001.phpt b/ext/dom/tests/DOMAttr_construct_error_001.phpt
index fbe2512c1d..cd84bd6b20 100644
--- a/ext/dom/tests/DOMAttr_construct_error_001.phpt
+++ b/ext/dom/tests/DOMAttr_construct_error_001.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-DOMAttr::__construct() expects at least 1 parameter, 0 given
+DOMAttr::__construct() expects at least 1 argument, 0 given
diff --git a/ext/dom/tests/DOMCDATASection_construct_error_001.phpt b/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
index ab7149cd87..8032839756 100644
--- a/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
+++ b/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
@@ -14,4 +14,4 @@ Nic Rosental nicrosental@gmail.com
}
?>
--EXPECT--
-DOMCdataSection::__construct() expects exactly 1 parameter, 0 given
+DOMCdataSection::__construct() expects exactly 1 argument, 0 given
diff --git a/ext/dom/tests/DOMComment_construct_error_001.phpt b/ext/dom/tests/DOMComment_construct_error_001.phpt
index e02c2a97a2..e2c3b3c48f 100644
--- a/ext/dom/tests/DOMComment_construct_error_001.phpt
+++ b/ext/dom/tests/DOMComment_construct_error_001.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-DOMComment::__construct() expects at most 1 parameter, 2 given
+DOMComment::__construct() expects at most 1 argument, 2 given
diff --git a/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt b/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt
index 819306566c..89a1ecf6f2 100644
--- a/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt
+++ b/ext/dom/tests/DOMDocumentFragment_construct_error_001.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-DOMDocumentFragment::__construct() expects exactly 0 parameters, 1 given
+DOMDocumentFragment::__construct() expects exactly 0 arguments, 1 given
diff --git a/ext/fileinfo/tests/bug61173.phpt b/ext/fileinfo/tests/bug61173.phpt
index 10277ba608..b96e08662d 100644
--- a/ext/fileinfo/tests/bug61173.phpt
+++ b/ext/fileinfo/tests/bug61173.phpt
@@ -15,4 +15,4 @@ try {
}
?>
--EXPECT--
-finfo::__construct() expects at most 2 parameters, 3 given
+finfo::__construct() expects at most 2 arguments, 3 given
diff --git a/ext/imap/tests/imap_timeout_basic.phpt b/ext/imap/tests/imap_timeout_basic.phpt
index afe1d2d081..e1b958b3c7 100644
--- a/ext/imap/tests/imap_timeout_basic.phpt
+++ b/ext/imap/tests/imap_timeout_basic.phpt
@@ -41,7 +41,7 @@ var_dump(imap_timeout(IMAP_WRITETIMEOUT));
--EXPECTF--
Checking with no parameters
-Warning: imap_timeout() expects at least 1 parameter, 0 given in %s on line %d
+Warning: imap_timeout() expects at least 1 argument, 0 given in %s on line %d
Checking with incorrect parameter type
Warning: imap_timeout(): Argument #1 must be of type int, %s given in %s on line %d
diff --git a/ext/intl/tests/breakiter___construct_error.phpt b/ext/intl/tests/breakiter___construct_error.phpt
index 7272d8c16b..a92d4a3ca8 100644
--- a/ext/intl/tests/breakiter___construct_error.phpt
+++ b/ext/intl/tests/breakiter___construct_error.phpt
@@ -46,9 +46,9 @@ try {
--EXPECTF--
Exception: IntlRuleBasedBreakIterator::__construct(): unable to create RuleBasedBreakIterator from rules (parse error on line 1, offset 31) in %s on line %d
-Exception: IntlRuleBasedBreakIterator::__construct() expects at least 1 parameter, 0 given in %s on line %d
+Exception: IntlRuleBasedBreakIterator::__construct() expects at least 1 argument, 0 given in %s on line %d
-Exception: IntlRuleBasedBreakIterator::__construct() expects at most 2 parameters, 3 given in %s on line %d
+Exception: IntlRuleBasedBreakIterator::__construct() expects at most 2 arguments, 3 given in %s on line %d
Exception: IntlRuleBasedBreakIterator::__construct(): Argument #2 ($areCompiled) must be of type bool, array given in %s on line %d
diff --git a/ext/intl/tests/calendar_before_after_error.phpt b/ext/intl/tests/calendar_before_after_error.phpt
index be1f01b927..707ad08f0d 100644
--- a/ext/intl/tests/calendar_before_after_error.phpt
+++ b/ext/intl/tests/calendar_before_after_error.phpt
@@ -62,18 +62,18 @@ try {
}
?>
--EXPECT--
-error: 0, IntlCalendar::after() expects exactly 1 parameter, 0 given
+error: 0, IntlCalendar::after() expects exactly 1 argument, 0 given
-error: 0, IntlCalendar::before() expects exactly 1 parameter, 0 given
+error: 0, IntlCalendar::before() expects exactly 1 argument, 0 given
error: 0, IntlCalendar::after(): Argument #1 ($calendar) must be of type IntlCalendar, int given
error: 0, IntlCalendar::before(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, IntlCalendar::after() expects exactly 1 parameter, 2 given
+error: 0, IntlCalendar::after() expects exactly 1 argument, 2 given
-error: 0, IntlCalendar::before() expects exactly 1 parameter, 2 given
+error: 0, IntlCalendar::before() expects exactly 1 argument, 2 given
-error: 0, intlcal_after() expects exactly 2 parameters, 1 given
+error: 0, intlcal_after() expects exactly 2 arguments, 1 given
-error: 0, intlcal_before() expects exactly 2 parameters, 1 given
+error: 0, intlcal_before() expects exactly 2 arguments, 1 given
diff --git a/ext/intl/tests/calendar_equals_error.phpt b/ext/intl/tests/calendar_equals_error.phpt
index 41a7d17238..177518e381 100644
--- a/ext/intl/tests/calendar_equals_error.phpt
+++ b/ext/intl/tests/calendar_equals_error.phpt
@@ -46,11 +46,11 @@ try {
}
?>
--EXPECT--
-error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given
+error: 0, IntlCalendar::equals() expects exactly 1 argument, 0 given
error: 0, IntlCalendar::equals(): Argument #1 ($calendar) must be of type IntlCalendar, stdClass given
-error: 0, IntlCalendar::equals() expects exactly 1 parameter, 2 given
+error: 0, IntlCalendar::equals() expects exactly 1 argument, 2 given
error: 0, intlcal_equals(): Argument #2 ($calendar) must be of type IntlCalendar, array given
diff --git a/ext/intl/tests/calendar_fieldDifference_error.phpt b/ext/intl/tests/calendar_fieldDifference_error.phpt
index a7b83acdd6..c43cbfe92f 100644
--- a/ext/intl/tests/calendar_fieldDifference_error.phpt
+++ b/ext/intl/tests/calendar_fieldDifference_error.phpt
@@ -27,11 +27,11 @@ try {
var_dump(intlcal_field_difference(1, 0, 1));
?>
--EXPECTF--
-IntlCalendar::fieldDifference() expects exactly 2 parameters, 3 given
+IntlCalendar::fieldDifference() expects exactly 2 arguments, 3 given
Warning: IntlCalendar::fieldDifference(): intlcal_field_difference: Call to ICU method has failed in %s on line %d
bool(false)
-intlcal_field_difference() expects exactly 3 parameters, 4 given
+intlcal_field_difference() expects exactly 3 arguments, 4 given
Fatal error: Uncaught TypeError: intlcal_field_difference(): Argument #1 ($calendar) must be of type IntlCalendar, int given in %s:%d
Stack trace:
diff --git a/ext/intl/tests/calendar_getLocale_error.phpt b/ext/intl/tests/calendar_getLocale_error.phpt
index 7171b4934b..a7711e4565 100644
--- a/ext/intl/tests/calendar_getLocale_error.phpt
+++ b/ext/intl/tests/calendar_getLocale_error.phpt
@@ -13,7 +13,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_locale(1));
?>
--EXPECTF--
-Fatal error: Uncaught ArgumentCountError: intlcal_get_locale() expects exactly 2 parameters, 1 given in %s:%d
+Fatal error: Uncaught ArgumentCountError: intlcal_get_locale() expects exactly 2 arguments, 1 given in %s:%d
Stack trace:
#0 %s(%d): intlcal_get_locale(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
index d3fadb16ed..afc3df210a 100644
--- a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
+++ b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt
@@ -76,15 +76,15 @@ try {
}
?>
--EXPECT--
-ArgumentCountError: 0, intlcal_get() expects exactly 2 parameters, 1 given
-ArgumentCountError: 0, intlcal_get_actual_maximum() expects exactly 2 parameters, 1 given
-ArgumentCountError: 0, intlcal_get_actual_minimum() expects exactly 2 parameters, 1 given
+ArgumentCountError: 0, intlcal_get() expects exactly 2 arguments, 1 given
+ArgumentCountError: 0, intlcal_get_actual_maximum() expects exactly 2 arguments, 1 given
+ArgumentCountError: 0, intlcal_get_actual_minimum() expects exactly 2 arguments, 1 given
ValueError: 0, intlcal_get(): Argument #2 ($field) must be a valid field
ValueError: 0, intlcal_get_actual_maximum(): Argument #2 ($field) must be a valid field
ValueError: 0, intlcal_get_actual_minimum(): Argument #2 ($field) must be a valid field
TypeError: 0, intlcal_get(): Argument #2 ($field) must be of type int, string given
TypeError: 0, intlcal_get_actual_maximum(): Argument #2 ($field) must be of type int, string given
TypeError: 0, intlcal_get_actual_minimum(): Argument #2 ($field) must be of type int, string given
-ArgumentCountError: 0, intlcal_get() expects exactly 2 parameters, 1 given
-ArgumentCountError: 0, intlcal_get_actual_maximum() expects exactly 2 parameters, 1 given
-ArgumentCountError: 0, intlcal_get_actual_minimum() expects exactly 2 parameters, 1 given
+ArgumentCountError: 0, intlcal_get() expects exactly 2 arguments, 1 given
+ArgumentCountError: 0, intlcal_get_actual_maximum() expects exactly 2 arguments, 1 given
+ArgumentCountError: 0, intlcal_get_actual_minimum() expects exactly 2 arguments, 1 given
diff --git a/ext/intl/tests/calendar_isEquivalentTo_error.phpt b/ext/intl/tests/calendar_isEquivalentTo_error.phpt
index 1dc36c2a24..a387b8cbd0 100644
--- a/ext/intl/tests/calendar_isEquivalentTo_error.phpt
+++ b/ext/intl/tests/calendar_isEquivalentTo_error.phpt
@@ -52,11 +52,11 @@ try {
--EXPECT--
error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given
+error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 argument, 2 given
error: 0, IntlCalendar::isEquivalentTo(): Argument #1 ($calendar) must be of type IntlCalendar, int given
-error: 0, intlcal_is_equivalent_to() expects exactly 2 parameters, 1 given
+error: 0, intlcal_is_equivalent_to() expects exactly 2 arguments, 1 given
error: 0, intlcal_is_equivalent_to(): Argument #2 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_setTimeZone_error.phpt b/ext/intl/tests/calendar_setTimeZone_error.phpt
index 4d3e7fdc6d..0890d160c8 100644
--- a/ext/intl/tests/calendar_setTimeZone_error.phpt
+++ b/ext/intl/tests/calendar_setTimeZone_error.phpt
@@ -42,10 +42,10 @@ try{
}
?>
--EXPECT--
-error: 0, IntlCalendar::setTimeZone() expects exactly 1 parameter, 2 given
+error: 0, IntlCalendar::setTimeZone() expects exactly 1 argument, 2 given
-error: 0, IntlCalendar::setTimeZone() expects exactly 1 parameter, 0 given
+error: 0, IntlCalendar::setTimeZone() expects exactly 1 argument, 0 given
-error: 0, intlcal_set_time_zone() expects exactly 2 parameters, 3 given
+error: 0, intlcal_set_time_zone() expects exactly 2 arguments, 3 given
error: 0, intlcal_set_time_zone(): Argument #1 ($calendar) must be of type IntlCalendar, int given
diff --git a/ext/intl/tests/calendar_setTime_error.phpt b/ext/intl/tests/calendar_setTime_error.phpt
index 8d4f726081..64a2cdfb82 100644
--- a/ext/intl/tests/calendar_setTime_error.phpt
+++ b/ext/intl/tests/calendar_setTime_error.phpt
@@ -13,7 +13,7 @@ ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_set_time(1));
?>
--EXPECTF--
-Fatal error: Uncaught ArgumentCountError: intlcal_set_time() expects exactly 2 parameters, 1 given in %s:%d
+Fatal error: Uncaught ArgumentCountError: intlcal_set_time() expects exactly 2 arguments, 1 given in %s:%d
Stack trace:
#0 %s(%d): intlcal_set_time(1)
#1 {main}
diff --git a/ext/intl/tests/calendar_set_error.phpt b/ext/intl/tests/calendar_set_error.phpt
index bd44356f61..1ebd40164b 100644
--- a/ext/intl/tests/calendar_set_error.phpt
+++ b/ext/intl/tests/calendar_set_error.phpt
@@ -43,7 +43,7 @@ try {
}
?>
--EXPECT--
-IntlCalendar::set() expects at most 6 parameters, 7 given
+IntlCalendar::set() expects at most 6 arguments, 7 given
IntlCalendar::set() has no variant with exactly 4 parameters
IntlCalendar::set(): Argument #1 ($year) must be a valid field
intlcal_set(): Argument #2 ($year) must be a valid field
diff --git a/ext/intl/tests/formatter_fail.phpt b/ext/intl/tests/formatter_fail.phpt
index 15981178ac..937a52f098 100644
--- a/ext/intl/tests/formatter_fail.phpt
+++ b/ext/intl/tests/formatter_fail.phpt
@@ -95,13 +95,13 @@ foreach($args as $arg) {
?>
--EXPECTF--
-ArgumentCountError: NumberFormatter::__construct() expects at least 2 parameters, 0 given in %s on line %d
+ArgumentCountError: NumberFormatter::__construct() expects at least 2 arguments, 0 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: numfmt_create() expects at least 2 parameters, 0 given in %s on line %d
+ArgumentCountError: numfmt_create() expects at least 2 arguments, 0 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: NumberFormatter::create() expects at least 2 parameters, 0 given in %s on line %d
+ArgumentCountError: NumberFormatter::create() expects at least 2 arguments, 0 given in %s on line %d
'U_ZERO_ERROR'
Error: NumberFormatter object is already constructed in %s on line %d
diff --git a/ext/intl/tests/msgfmt_fail2.phpt b/ext/intl/tests/msgfmt_fail2.phpt
index b53e70e8ea..4061eab3dc 100644
--- a/ext/intl/tests/msgfmt_fail2.phpt
+++ b/ext/intl/tests/msgfmt_fail2.phpt
@@ -108,22 +108,22 @@ foreach($args as $arg) {
?>
--EXPECTF--
-ArgumentCountError: MessageFormatter::__construct() expects exactly 2 parameters, 0 given in %s on line %d
+ArgumentCountError: MessageFormatter::__construct() expects exactly 2 arguments, 0 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: msgfmt_create() expects exactly 2 parameters, 0 given in %s on line %d
+ArgumentCountError: msgfmt_create() expects exactly 2 arguments, 0 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: MessageFormatter::create() expects exactly 2 parameters, 0 given in %s on line %d
+ArgumentCountError: MessageFormatter::create() expects exactly 2 arguments, 0 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: MessageFormatter::__construct() expects exactly 2 parameters, 1 given in %s on line %d
+ArgumentCountError: MessageFormatter::__construct() expects exactly 2 arguments, 1 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: msgfmt_create() expects exactly 2 parameters, 1 given in %s on line %d
+ArgumentCountError: msgfmt_create() expects exactly 2 arguments, 1 given in %s on line %d
'U_ZERO_ERROR'
-ArgumentCountError: MessageFormatter::create() expects exactly 2 parameters, 1 given in %s on line %d
+ArgumentCountError: MessageFormatter::create() expects exactly 2 arguments, 1 given in %s on line %d
'U_ZERO_ERROR'
IntlException: Constructor failed in %s on line %d
diff --git a/ext/json/tests/json_last_error_error.phpt b/ext/json/tests/json_last_error_error.phpt
index d5c9b12232..d98d1988db 100644
--- a/ext/json/tests/json_last_error_error.phpt
+++ b/ext/json/tests/json_last_error_error.phpt
@@ -14,4 +14,4 @@ try {
?>
--EXPECT--
int(0)
-json_last_error() expects exactly 0 parameters, 1 given
+json_last_error() expects exactly 0 arguments, 1 given
diff --git a/ext/json/tests/json_last_error_msg_error.phpt b/ext/json/tests/json_last_error_msg_error.phpt
index 61e5e1fcc5..f34cdbbe62 100644
--- a/ext/json/tests/json_last_error_msg_error.phpt
+++ b/ext/json/tests/json_last_error_msg_error.phpt
@@ -14,4 +14,4 @@ try {
?>
--EXPECT--
string(8) "No error"
-json_last_error_msg() expects exactly 0 parameters, 1 given
+json_last_error_msg() expects exactly 0 arguments, 1 given
diff --git a/ext/mysqli/tests/mysqli_connect_errno.phpt b/ext/mysqli/tests/mysqli_connect_errno.phpt
index f542ba88e8..2bc86de5cc 100644
--- a/ext/mysqli/tests/mysqli_connect_errno.phpt
+++ b/ext/mysqli/tests/mysqli_connect_errno.phpt
@@ -40,5 +40,5 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECT--
-mysqli_connect_errno() expects exactly 0 parameters, 1 given
+mysqli_connect_errno() expects exactly 0 arguments, 1 given
done!
diff --git a/ext/mysqli/tests/mysqli_connect_error.phpt b/ext/mysqli/tests/mysqli_connect_error.phpt
index 0f51d15dfd..6643ed27f0 100644
--- a/ext/mysqli/tests/mysqli_connect_error.phpt
+++ b/ext/mysqli/tests/mysqli_connect_error.phpt
@@ -39,5 +39,5 @@ require_once('skipifconnectfailure.inc');
print "done!";
?>
--EXPECT--
-mysqli_connect_error() expects exactly 0 parameters, 1 given
+mysqli_connect_error() expects exactly 0 arguments, 1 given
done!
diff --git a/ext/mysqli/tests/mysqli_fetch_object_oo.phpt b/ext/mysqli/tests/mysqli_fetch_object_oo.phpt
index d67c3fe6a8..18aeb264ec 100644
--- a/ext/mysqli/tests/mysqli_fetch_object_oo.phpt
+++ b/ext/mysqli/tests/mysqli_fetch_object_oo.phpt
@@ -134,7 +134,7 @@ require_once('skipifconnectfailure.inc');
--EXPECTF--
mysqli object is not fully initialized
[0] Object of class mysqli could not be converted to string in %s on line %d
-[0] mysqli_result::fetch_object() expects at most 2 parameters, 3 given in %s on line %d
+[0] mysqli_result::fetch_object() expects at most 2 arguments, 3 given in %s on line %d
[0] mysqli_result::fetch_object(): Argument #2 ($params) must be of type array, null given in %s on line %d
Exception: Too few arguments to function mysqli_fetch_object_construct::__construct(), 1 passed and exactly 2 expected
NULL
diff --git a/ext/mysqli/tests/mysqli_pconn_max_links.phpt b/ext/mysqli/tests/mysqli_pconn_max_links.phpt
index b8be6f121c..a4f7558214 100644
--- a/ext/mysqli/tests/mysqli_pconn_max_links.phpt
+++ b/ext/mysqli/tests/mysqli_pconn_max_links.phpt
@@ -208,7 +208,7 @@ mysqli_query($link, 'DROP USER pcontest');
mysqli_close($link);
?>
--EXPECT--
-mysqli_get_links_stats() expects exactly 0 parameters, 1 given
+mysqli_get_links_stats() expects exactly 0 arguments, 1 given
Before pconnect:array(3) {
["total"]=>
int(1)
diff --git a/ext/oci8/tests/array_bind_013.phpt b/ext/oci8/tests/array_bind_013.phpt
index a04bccf304..1e5f826c00 100644
--- a/ext/oci8/tests/array_bind_013.phpt
+++ b/ext/oci8/tests/array_bind_013.phpt
@@ -28,7 +28,7 @@ var_dump($array);
echo "Done\n";
?>
--EXPECTF--
-oci_bind_array_by_name() expects at most 6 parameters, 7 given
+oci_bind_array_by_name() expects at most 6 arguments, 7 given
Warning: oci_bind_array_by_name(): You must provide max length value for empty arrays in %s on line %d
bool(false)
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index 3924419560..67f9f9cb95 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -1912,20 +1912,8 @@ static int zend_jit_throw_cannot_pass_by_ref_stub(dasm_State **Dst)
| mov EX->call, RX
|1:
| mov RX, r0
- |.if X64
- | xor CARG1, CARG1
- | LOAD_ADDR CARG2, "Cannot pass parameter %d by reference"
- | mov CARG3d, dword OP:r0->op2.num
- | EXT_CALL zend_throw_error, r0
- |.else
- | mov r1, dword OP:r0->op2.num
- | sub r4, 4
- | push r1
- | push "Cannot pass parameter %d by reference"
- | push 0
- | EXT_CALL zend_throw_error, r0
- | add r4, 16
- |.endif
+ | mov FCARG1d, dword OP:r0->op2.num
+ | EXT_CALL zend_cannot_pass_by_reference, r0
| cmp byte OP:RX->op1_type, IS_TMP_VAR
| jne >9
|.if X64
@@ -8991,7 +8979,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
}
if (call_num_args <= func->op_array.num_args) {
- if (!trace || (trace->op == ZEND_JIT_TRACE_END
+ if (!trace || (trace->op == ZEND_JIT_TRACE_END
&& trace->stop == ZEND_JIT_TRACE_STOP_INTERPRETER)) {
uint32_t num_args;
@@ -9040,7 +9028,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
}
}
} else {
- if (!trace || (trace->op == ZEND_JIT_TRACE_END
+ if (!trace || (trace->op == ZEND_JIT_TRACE_END
&& trace->stop == ZEND_JIT_TRACE_STOP_INTERPRETER)) {
if (func && zend_accel_in_shm(func->op_array.opcodes)) {
| LOAD_IP_ADDR (func->op_array.opcodes)
diff --git a/ext/opcache/tests/optimize_func_calls.phpt b/ext/opcache/tests/optimize_func_calls.phpt
index 5d74eaf8df..ac30405ac3 100644
--- a/ext/opcache/tests/optimize_func_calls.phpt
+++ b/ext/opcache/tests/optimize_func_calls.phpt
@@ -128,7 +128,7 @@ Array
string(7) "changed"
string(7) "changed"
-Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in %soptimize_func_calls.php:%d
+Fatal error: Uncaught Error: ref(): Argument #1 ($b) cannot be passed by reference in %soptimize_func_calls.php:%d
Stack trace:
#0 {main}
thrown in %soptimize_func_calls.php on line %d
diff --git a/ext/openssl/tests/bug71475.phpt b/ext/openssl/tests/bug71475.phpt
index 84f2343ba0..04f86d9950 100644
--- a/ext/openssl/tests/bug71475.phpt
+++ b/ext/openssl/tests/bug71475.phpt
@@ -15,5 +15,5 @@ try {
?>
DONE
--EXPECT--
-openssl_seal() expects at least 5 parameters, 4 given
+openssl_seal() expects at least 5 arguments, 4 given
DONE
diff --git a/ext/pcre/tests/preg_match_all_error3.phpt b/ext/pcre/tests/preg_match_all_error3.phpt
index b0ad8c3085..11427b7c68 100644
--- a/ext/pcre/tests/preg_match_all_error3.phpt
+++ b/ext/pcre/tests/preg_match_all_error3.phpt
@@ -17,7 +17,7 @@ echo "Done";
--EXPECTF--
*** Testing preg_match_all() : error conditions ***
-Fatal error: Uncaught Error: Cannot pass parameter 3 by reference in %s:%d
+Fatal error: Uncaught Error: preg_match_all(): Argument #3 ($subpatterns) cannot be passed by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
diff --git a/ext/pdo_mysql/tests/bug_37445.phpt b/ext/pdo_mysql/tests/bug_37445.phpt
index d43bedd619..b3251e335a 100644
--- a/ext/pdo_mysql/tests/bug_37445.phpt
+++ b/ext/pdo_mysql/tests/bug_37445.phpt
@@ -17,7 +17,7 @@ $stmt = $db->prepare("SELECT 1");
$stmt->bindParam(':a', 'b');
?>
--EXPECTF--
-Fatal error: Uncaught Error: Cannot pass parameter 2 by reference in %sbug_37445.php:%d
+Fatal error: Uncaught Error: PDOStatement::bindParam(): Argument #2 ($param) cannot be passed by reference in %sbug_37445.php:%d
Stack trace:
#0 {main}
thrown in %sbug_37445.php on line %d
diff --git a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
index 1b566be3e3..68a7142353 100644
--- a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
+++ b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt
@@ -39,7 +39,7 @@ SQL
printf("[002] Expecting false got %s\n", var_export($tmp, true));
$stmt->execute();
- // Warning: PDOStatement::getColumnMeta() expects exactly 1 parameter, 0 given in
+ // Warning: PDOStatement::getColumnMeta() expects exactly 1 argument, 0 given in
if (false !== ($tmp = @$stmt->getColumnMeta()))
printf("[003] Expecting false got %s\n", var_export($tmp, true));
@@ -51,7 +51,7 @@ SQL
if (false !== ($tmp = @$stmt->getColumnMeta(array())))
printf("[005] Expecting false got %s\n", var_export($tmp, true));
- // Warning: PDOStatement::getColumnMeta() expects exactly 1 parameter, 2 given in
+ // Warning: PDOStatement::getColumnMeta() expects exactly 1 argument, 2 given in
if (false !== ($tmp = @$stmt->getColumnMeta(1, 1)))
printf("[006] Expecting false got %s\n", var_export($tmp, true));
diff --git a/ext/phar/tests/002.phpt b/ext/phar/tests/002.phpt
index cfd8cc5e66..291c5a879d 100644
--- a/ext/phar/tests/002.phpt
+++ b/ext/phar/tests/002.phpt
@@ -17,5 +17,5 @@ try {
}
__HALT_COMPILER(); ?>
--EXPECTF--
-Phar::mapPhar() expects at most 2 parameters, 3 given
+Phar::mapPhar() expects at most 2 arguments, 3 given
internal corruption of phar "%s002.php" (truncated manifest at manifest length)
diff --git a/ext/phar/tests/badparameters.phpt b/ext/phar/tests/badparameters.phpt
index e06472233c..746858c7c4 100644
--- a/ext/phar/tests/badparameters.phpt
+++ b/ext/phar/tests/badparameters.phpt
@@ -253,16 +253,16 @@ Phar::compress(): Argument #1 ($compression_type) must be of type int, array giv
Cannot compress phar archive, phar is read-only
Phar::compressFiles(): Argument #1 ($compression_type) must be of type int, array given
Phar is readonly, cannot change compression
-Phar::copy() expects exactly 2 parameters, 1 given
+Phar::copy() expects exactly 2 arguments, 1 given
Cannot copy "a" to "b", phar is read-only
Phar::offsetExists(): Argument #1 ($entry) must be of type string, array given
Phar::offsetGet(): Argument #1 ($entry) must be of type string, array given
-Phar::offsetSet() expects exactly 2 parameters, 1 given
+Phar::offsetSet() expects exactly 2 arguments, 1 given
PharData::offsetUnset(): Argument #1 ($entry) must be of type string, array given
Write operations disabled by the php.ini setting phar.readonly
Phar::addEmptyDir(): Argument #1 ($dirname) must be of type string, array given
Phar::addFile(): Argument #1 ($filename) must be of type string, array given
-Phar::addFromString() expects exactly 2 parameters, 1 given
+Phar::addFromString() expects exactly 2 arguments, 1 given
Write operations disabled by the php.ini setting phar.readonly
-Phar::setMetadata() expects exactly 1 parameter, 2 given
+Phar::setMetadata() expects exactly 1 argument, 2 given
Write operations disabled by the php.ini setting phar.readonly
diff --git a/ext/phar/tests/bug60261.phpt b/ext/phar/tests/bug60261.phpt
index 7f32bf6482..a616dfe253 100644
--- a/ext/phar/tests/bug60261.phpt
+++ b/ext/phar/tests/bug60261.phpt
@@ -14,4 +14,4 @@ try {
?>
--EXPECT--
-Phar::__construct() expects at least 1 parameter, 0 given
+Phar::__construct() expects at least 1 argument, 0 given
diff --git a/ext/reflection/tests/ReflectionClass_constructor_002.phpt b/ext/reflection/tests/ReflectionClass_constructor_002.phpt
index 44ff37a962..7df620eaaa 100644
--- a/ext/reflection/tests/ReflectionClass_constructor_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_constructor_002.phpt
@@ -46,10 +46,10 @@ try {
?>
--EXPECT--
-ReflectionClass::__construct() expects exactly 1 parameter, 0 given
+ReflectionClass::__construct() expects exactly 1 argument, 0 given
Class "" does not exist
Class "1" does not exist
Class "1" does not exist
ReflectionClass::__construct(): Argument #1 ($objectOrClass) must be of type object|string, array given
-ReflectionClass::__construct() expects exactly 1 parameter, 2 given
+ReflectionClass::__construct() expects exactly 1 argument, 2 given
Class "X" does not exist
diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt
index 99d5bb7e86..8271822884 100644
--- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt
@@ -56,8 +56,8 @@ try {
?>
--EXPECT--
Check invalid params:
-ReflectionClass::getMethod() expects exactly 1 parameter, 0 given
-ReflectionClass::getMethod() expects exactly 1 parameter, 2 given
+ReflectionClass::getMethod() expects exactly 1 argument, 0 given
+ReflectionClass::getMethod() expects exactly 1 argument, 2 given
Method C::() does not exist
Method C::1() does not exist
Method C::1.5() does not exist
diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt
index 606a124d5c..80ef77c8a3 100644
--- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt
@@ -54,8 +54,8 @@ try {
?>
--EXPECT--
Check invalid params:
-ReflectionClass::getProperty() expects exactly 1 parameter, 0 given
-ReflectionClass::getProperty() expects exactly 1 parameter, 2 given
+ReflectionClass::getProperty() expects exactly 1 argument, 0 given
+ReflectionClass::getProperty() expects exactly 1 argument, 2 given
Property C::$ does not exist
Property C::$1 does not exist
Property C::$1.5 does not exist
diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
index 3e21780231..4a5a5929d5 100644
--- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt
@@ -39,8 +39,8 @@ try {
?>
--EXPECT--
-ReflectionClass::getStaticPropertyValue() expects at most 2 parameters, 3 given
-ReflectionClass::getStaticPropertyValue() expects at least 1 parameter, 0 given
+ReflectionClass::getStaticPropertyValue() expects at most 2 arguments, 3 given
+ReflectionClass::getStaticPropertyValue() expects at least 1 argument, 0 given
Property C::$ does not exist
string(3) "def"
ReflectionClass::getStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
diff --git a/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt b/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt
index 0ea64ca278..5fb158cb8d 100644
--- a/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt
+++ b/ext/reflection/tests/ReflectionClass_implementsInterface_001.phpt
@@ -144,8 +144,8 @@ Does I2 implement I2?
Test bad arguments:
-ReflectionClass::implementsInterface() expects exactly 1 parameter, 0 given
-ReflectionClass::implementsInterface() expects exactly 1 parameter, 2 given
+ReflectionClass::implementsInterface() expects exactly 1 argument, 0 given
+ReflectionClass::implementsInterface() expects exactly 1 argument, 2 given
Interface "" does not exist
Interface "ThisClassDoesNotExist" does not exist
Interface "2" does not exist
diff --git a/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt b/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt
index d69c16d6ac..51fc52b8ee 100644
--- a/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_isSubclassOf_002.phpt
@@ -37,8 +37,8 @@ try {
?>
--EXPECT--
Test bad arguments:
-ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given
-ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given
+ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given
+ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given
Class "" does not exist
Class "ThisClassDoesNotExist" does not exist
Class "2" does not exist
diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
index b9bb76c786..7bd2b1eecd 100644
--- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
+++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt
@@ -44,9 +44,9 @@ try {
?>
--EXPECT--
-ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 3 given
-ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 0 given
-ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 1 given
+ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 3 given
+ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 0 given
+ReflectionClass::setStaticPropertyValue() expects exactly 2 arguments, 1 given
Class C does not have a property named
Class C does not have a property named 1.5
ReflectionClass::setStaticPropertyValue(): Argument #1 ($name) must be of type string, array given
diff --git a/ext/reflection/tests/ReflectionExtension_constructor_error.phpt b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
index ccf2414e43..f4241bcd92 100644
--- a/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
+++ b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt
@@ -25,7 +25,7 @@ try {
?>
---EXPECTF--
-Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
-Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
+--EXPECT--
+Ok - ReflectionExtension::__construct() expects exactly 1 argument, 0 given
+Ok - ReflectionExtension::__construct() expects exactly 1 argument, 2 given
Ok - ReflectionExtension::__construct(): Argument #1 ($name) must be of type string, array given
diff --git a/ext/reflection/tests/ReflectionFunction_construct.001.phpt b/ext/reflection/tests/ReflectionFunction_construct.001.phpt
index 307da25e54..f7020699d5 100644
--- a/ext/reflection/tests/ReflectionFunction_construct.001.phpt
+++ b/ext/reflection/tests/ReflectionFunction_construct.001.phpt
@@ -37,6 +37,6 @@ try {
--EXPECT--
Ok - ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, array given
Function nonExistentFunction() does not exist
-Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 0 given
-Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 2 given
+Ok - ReflectionFunction::__construct() expects exactly 1 argument, 0 given
+Ok - ReflectionFunction::__construct() expects exactly 1 argument, 2 given
Ok - ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, array given
diff --git a/ext/reflection/tests/ReflectionMethod_006.phpt b/ext/reflection/tests/ReflectionMethod_006.phpt
index bb29b1cbed..e32c73b8be 100644
--- a/ext/reflection/tests/ReflectionMethod_006.phpt
+++ b/ext/reflection/tests/ReflectionMethod_006.phpt
@@ -19,5 +19,5 @@ try {
?>
--EXPECT--
-Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 0 given
-Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 3 given
+Ok - ReflectionMethod::__construct() expects exactly 1 argument, 0 given
+Ok - ReflectionMethod::__construct() expects exactly 1 argument, 3 given
diff --git a/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt b/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
index 0b02fb651c..2a8b30bf03 100644
--- a/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
+++ b/ext/reflection/tests/ReflectionMethod_constructor_error2.phpt
@@ -52,10 +52,10 @@ try{
?>
--EXPECT--
Too few arguments:
-Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 0 given
+Ok - ReflectionMethod::__construct() expects exactly 1 argument, 0 given
Too many arguments:
-Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 3 given
+Ok - ReflectionMethod::__construct() expects exactly 1 argument, 3 given
Ok - Class "InvalidClassName" does not exist
Ok - ReflectionMethod::__construct(): Argument #1 ($objectOrMethod) must be of type object|string, array given
-Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 2 given
+Ok - ReflectionMethod::__construct() expects exactly 1 argument, 2 given
diff --git a/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt b/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
index 73c04a687b..92bd054338 100644
--- a/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
+++ b/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt
@@ -102,7 +102,7 @@ Called methodWithArgs(1, arg2)
NULL
Static method:
-ReflectionMethod::invoke() expects at least 1 parameter, 0 given
+ReflectionMethod::invoke() expects at least 1 argument, 0 given
ReflectionMethod::invoke(): Argument #1 ($object) must be of type ?object, bool given
Called staticMethod()
Exception: Using $this when not in object context
diff --git a/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt b/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt
index 41042b7530..ceedc7d4f0 100644
--- a/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt
+++ b/ext/reflection/tests/ReflectionObject_isSubclassOf.002.phpt
@@ -37,8 +37,8 @@ try {
?>
--EXPECT--
Test bad arguments:
-ReflectionClass::isSubclassOf() expects exactly 1 parameter, 0 given
-ReflectionClass::isSubclassOf() expects exactly 1 parameter, 2 given
+ReflectionClass::isSubclassOf() expects exactly 1 argument, 0 given
+ReflectionClass::isSubclassOf() expects exactly 1 argument, 2 given
Class "" does not exist
Class "ThisClassDoesNotExist" does not exist
Class "2" does not exist
diff --git a/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt b/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt
index 5fa249a9b5..917f079fd9 100644
--- a/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt
+++ b/ext/reflection/tests/ReflectionParameter_invalidMethodInConstructor.phpt
@@ -43,6 +43,6 @@ echo "Done.\n";
Class "A" does not exist
Method C::b() does not exist
Method C::b() does not exist
-Ok - ReflectionParameter::__construct() expects exactly 2 parameters, 1 given
+Ok - ReflectionParameter::__construct() expects exactly 2 arguments, 1 given
Ok - ReflectionParameter::__construct(): Argument #1 ($function) must be either a string, an array(class, method) or a callable object, int given
Done.
diff --git a/ext/reflection/tests/ReflectionProperty_error.phpt b/ext/reflection/tests/ReflectionProperty_error.phpt
index 052bfcb97c..bb53599ce6 100644
--- a/ext/reflection/tests/ReflectionProperty_error.phpt
+++ b/ext/reflection/tests/ReflectionProperty_error.phpt
@@ -26,6 +26,6 @@ try {
?>
--EXPECT--
-Ok - ReflectionProperty::__construct() expects exactly 2 parameters, 0 given
-Ok - ReflectionProperty::__construct() expects exactly 2 parameters, 1 given
-Ok - ReflectionProperty::__construct() expects exactly 2 parameters, 3 given
+Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 0 given
+Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 1 given
+Ok - ReflectionProperty::__construct() expects exactly 2 arguments, 3 given
diff --git a/ext/reflection/tests/ReflectionProperty_getValue_error.phpt b/ext/reflection/tests/ReflectionProperty_getValue_error.phpt
index 49b3c7bd9a..544c1d6b25 100644
--- a/ext/reflection/tests/ReflectionProperty_getValue_error.phpt
+++ b/ext/reflection/tests/ReflectionProperty_getValue_error.phpt
@@ -57,7 +57,7 @@ try {
Instance without property:
Static property / too many args:
-ReflectionProperty::getValue() expects at most 1 parameter, 2 given
+ReflectionProperty::getValue() expects at most 1 argument, 2 given
Protected property:
Cannot access non-public property TestClass::$prot
diff --git a/ext/session/tests/session_set_save_handler_class_012.phpt b/ext/session/tests/session_set_save_handler_class_012.phpt
index 8f019d935b..601ca32b7f 100644
--- a/ext/session/tests/session_set_save_handler_class_012.phpt
+++ b/ext/session/tests/session_set_save_handler_class_012.phpt
@@ -45,7 +45,7 @@ var_dump(session_id(), $oldHandler, ini_get('session.save_handler'), $handler->i
Open
Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line %d
-SessionHandler::open() expects exactly 2 parameters, 0 given
+SessionHandler::open() expects exactly 2 arguments, 0 given
Warning: Undefined variable $_SESSION in %s on line %d
string(0) ""
diff --git a/ext/session/tests/session_set_save_handler_class_013.phpt b/ext/session/tests/session_set_save_handler_class_013.phpt
index 1ef12bd1f3..be701d3c5c 100644
--- a/ext/session/tests/session_set_save_handler_class_013.phpt
+++ b/ext/session/tests/session_set_save_handler_class_013.phpt
@@ -47,7 +47,7 @@ int(2)
array(0) {
}
-Fatal error: Uncaught ArgumentCountError: SessionHandler::close() expects exactly 0 parameters, 1 given in %s:%d
+Fatal error: Uncaught ArgumentCountError: SessionHandler::close() expects exactly 0 arguments, 1 given in %s:%d
Stack trace:
#0 %s(%d): SessionHandler->close(false)
#1 [internal function]: MySession->close()
diff --git a/ext/snmp/tests/snmp-object-error.phpt b/ext/snmp/tests/snmp-object-error.phpt
index 9185d8d576..a1268e4b4c 100644
--- a/ext/snmp/tests/snmp-object-error.phpt
+++ b/ext/snmp/tests/snmp-object-error.phpt
@@ -69,7 +69,7 @@ $session->max_oids = 0;
var_dump($session->max_oids);
?>
--EXPECTF--
-SNMP::__construct() expects at least 3 parameters, 2 given
+SNMP::__construct() expects at least 3 arguments, 2 given
SNMP::__construct(): Argument #4 ($timeout) must be of type int, string given
SNMP::__construct(): Argument #5 ($retries) must be of type int, string given
SNMP::__construct(): Argument #1 ($version) must be a valid SNMP protocol version
diff --git a/ext/soap/tests/bugs/bug31422.phpt b/ext/soap/tests/bugs/bug31422.phpt
index 4cf3a6332c..a7d3efcdb6 100644
--- a/ext/soap/tests/bugs/bug31422.phpt
+++ b/ext/soap/tests/bugs/bug31422.phpt
@@ -40,5 +40,5 @@ echo "ok\n";
?>
--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
-<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>fopen() expects at least 2 parameters, 0 given</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>fopen() expects at least 2 arguments, 0 given</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
ok
diff --git a/ext/sockets/tests/socket_connect_params.phpt b/ext/sockets/tests/socket_connect_params.phpt
index 608e5d1c2e..a73b270165 100644
--- a/ext/sockets/tests/socket_connect_params.phpt
+++ b/ext/sockets/tests/socket_connect_params.phpt
@@ -31,7 +31,7 @@ $s_w = socket_connect($s_c, '0.0.0.0', $port);
socket_close($s_c);
?>
--EXPECTF--
-socket_connect() expects at least 2 parameters, 1 given
+socket_connect() expects at least 2 arguments, 1 given
socket_connect(): Argument #3 ($port) cannot be null when the socket type is AF_INET
Warning: socket_connect(): unable to connect [%i]: %a in %s on line %d
diff --git a/ext/sodium/tests/bug78114.phpt b/ext/sodium/tests/bug78114.phpt
index c697ea16f8..6d7df4348f 100644
--- a/ext/sodium/tests/bug78114.phpt
+++ b/ext/sodium/tests/bug78114.phpt
@@ -13,4 +13,4 @@ try {
}
?>
--EXPECT--
-sodium_bin2hex() expects exactly 1 parameter, 0 given
+sodium_bin2hex() expects exactly 1 argument, 0 given
diff --git a/ext/spl/tests/AppendIterator_invalid_ctor.phpt b/ext/spl/tests/AppendIterator_invalid_ctor.phpt
index ae22270615..3c030632bf 100644
--- a/ext/spl/tests/AppendIterator_invalid_ctor.phpt
+++ b/ext/spl/tests/AppendIterator_invalid_ctor.phpt
@@ -7,7 +7,7 @@ new AppendIterator(null);
?>
--EXPECTF--
-Fatal error: Uncaught ArgumentCountError: AppendIterator::__construct() expects exactly 0 parameters, 1 given in %s:%d
+Fatal error: Uncaught ArgumentCountError: AppendIterator::__construct() expects exactly 0 arguments, 1 given in %s:%d
Stack trace:
#0 %s(%d): AppendIterator->__construct(NULL)
#1 {main}
diff --git a/ext/spl/tests/CallbackFilterIteratorTest-002.phpt b/ext/spl/tests/CallbackFilterIteratorTest-002.phpt
index c0c5aab1e9..b8a612f303 100644
--- a/ext/spl/tests/CallbackFilterIteratorTest-002.phpt
+++ b/ext/spl/tests/CallbackFilterIteratorTest-002.phpt
@@ -42,8 +42,8 @@ try {
}
?>
--EXPECT--
-CallbackFilterIterator::__construct() expects exactly 2 parameters, 0 given
-CallbackFilterIterator::__construct() expects exactly 2 parameters, 1 given
+CallbackFilterIterator::__construct() expects exactly 2 arguments, 0 given
+CallbackFilterIterator::__construct() expects exactly 2 arguments, 1 given
CallbackFilterIterator::__construct(): Argument #2 ($callback) must be a valid callback, no array or string given
CallbackFilterIterator::__construct(): Argument #2 ($callback) must be a valid callback, array must have exactly two members
some message
diff --git a/ext/spl/tests/arrayObject___construct_error2.phpt b/ext/spl/tests/arrayObject___construct_error2.phpt
index 742512e02c..7850a453b4 100644
--- a/ext/spl/tests/arrayObject___construct_error2.phpt
+++ b/ext/spl/tests/arrayObject___construct_error2.phpt
@@ -19,4 +19,4 @@ try {
?>
--EXPECT--
Too many arguments:
-ArrayObject::__construct() expects at most 3 parameters, 4 given(12)
+ArrayObject::__construct() expects at most 3 arguments, 4 given(12)
diff --git a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt
index 8eea9c96fd..ee149ad19b 100644
--- a/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt
+++ b/ext/spl/tests/arrayObject_exchangeArray_basic3.phpt
@@ -81,7 +81,7 @@ array(2) {
--> exchangeArray() with no arg:
-Exception: ArrayObject::exchangeArray() expects exactly 1 parameter, 0 given
+Exception: ArrayObject::exchangeArray() expects exactly 1 argument, 0 given
Warning: Undefined variable $copy in %s on line %d
object(ArrayObject)#2 (1) {
diff --git a/ext/spl/tests/arrayObject_natcasesort_basic1.phpt b/ext/spl/tests/arrayObject_natcasesort_basic1.phpt
index 6cffe4a621..9949fbda06 100644
--- a/ext/spl/tests/arrayObject_natcasesort_basic1.phpt
+++ b/ext/spl/tests/arrayObject_natcasesort_basic1.phpt
@@ -38,7 +38,7 @@ object(ArrayObject)#1 (1) {
string(5) "boo22"
}
}
-ArrayObject::natcasesort() expects exactly 0 parameters, 1 given
+ArrayObject::natcasesort() expects exactly 0 arguments, 1 given
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
array(5) {
diff --git a/ext/spl/tests/arrayObject_natsort_basic1.phpt b/ext/spl/tests/arrayObject_natsort_basic1.phpt
index 953e55ca28..474c142de0 100644
--- a/ext/spl/tests/arrayObject_natsort_basic1.phpt
+++ b/ext/spl/tests/arrayObject_natsort_basic1.phpt
@@ -38,7 +38,7 @@ object(ArrayObject)#1 (1) {
string(5) "boo22"
}
}
-ArrayObject::natsort() expects exactly 0 parameters, 1 given
+ArrayObject::natsort() expects exactly 0 arguments, 1 given
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
array(5) {
diff --git a/ext/spl/tests/arrayObject_uasort_error1.phpt b/ext/spl/tests/arrayObject_uasort_error1.phpt
index 30a9734110..d4c8532451 100644
--- a/ext/spl/tests/arrayObject_uasort_error1.phpt
+++ b/ext/spl/tests/arrayObject_uasort_error1.phpt
@@ -22,5 +22,5 @@ try {
}
?>
--EXPECT--
-ArrayObject::uasort() expects exactly 1 parameter, 0 given
-ArrayObject::uasort() expects exactly 1 parameter, 2 given
+ArrayObject::uasort() expects exactly 1 argument, 0 given
+ArrayObject::uasort() expects exactly 1 argument, 2 given
diff --git a/ext/spl/tests/arrayObject_uksort_error1.phpt b/ext/spl/tests/arrayObject_uksort_error1.phpt
index d1f5d5a650..71164383e4 100644
--- a/ext/spl/tests/arrayObject_uksort_error1.phpt
+++ b/ext/spl/tests/arrayObject_uksort_error1.phpt
@@ -22,5 +22,5 @@ try {
}
?>
--EXPECT--
-ArrayObject::uksort() expects exactly 1 parameter, 0 given
-ArrayObject::uksort() expects exactly 1 parameter, 2 given
+ArrayObject::uksort() expects exactly 1 argument, 0 given
+ArrayObject::uksort() expects exactly 1 argument, 2 given
diff --git a/ext/spl/tests/iterator_056.phpt b/ext/spl/tests/iterator_056.phpt
index 28dd444856..54a31d18ba 100644
--- a/ext/spl/tests/iterator_056.phpt
+++ b/ext/spl/tests/iterator_056.phpt
@@ -56,9 +56,9 @@ try {
?>
--EXPECT--
-FilterIterator::__construct() expects exactly 1 parameter, 0 given
-CachingIterator::__construct() expects at least 1 parameter, 0 given
-RecursiveCachingIterator::__construct() expects at least 1 parameter, 0 given
-ParentIterator::__construct() expects exactly 1 parameter, 0 given
-LimitIterator::__construct() expects at least 1 parameter, 0 given
-NoRewindIterator::__construct() expects exactly 1 parameter, 0 given
+FilterIterator::__construct() expects exactly 1 argument, 0 given
+CachingIterator::__construct() expects at least 1 argument, 0 given
+RecursiveCachingIterator::__construct() expects at least 1 argument, 0 given
+ParentIterator::__construct() expects exactly 1 argument, 0 given
+LimitIterator::__construct() expects at least 1 argument, 0 given
+NoRewindIterator::__construct() expects exactly 1 argument, 0 given
diff --git a/ext/spl/tests/iterator_062.phpt b/ext/spl/tests/iterator_062.phpt
index a1440439c1..904b7f0ccf 100644
--- a/ext/spl/tests/iterator_062.phpt
+++ b/ext/spl/tests/iterator_062.phpt
@@ -15,4 +15,4 @@ try {
}
?>
--EXPECT--
-RecursiveIteratorIterator::__construct() expects at least 1 parameter, 0 given
+RecursiveIteratorIterator::__construct() expects at least 1 argument, 0 given
diff --git a/ext/spl/tests/recursive_tree_iterator_002.phpt b/ext/spl/tests/recursive_tree_iterator_002.phpt
index 048dccaac3..01f12bf595 100644
--- a/ext/spl/tests/recursive_tree_iterator_002.phpt
+++ b/ext/spl/tests/recursive_tree_iterator_002.phpt
@@ -11,4 +11,4 @@ try {
}
?>
--EXPECT--
-RecursiveTreeIterator::__construct() expects at least 1 parameter, 0 given
+RecursiveTreeIterator::__construct() expects at least 1 argument, 0 given
diff --git a/ext/spl/tests/spl_004.phpt b/ext/spl/tests/spl_004.phpt
index c31d0b6157..d87b114a67 100644
--- a/ext/spl/tests/spl_004.phpt
+++ b/ext/spl/tests/spl_004.phpt
@@ -86,4 +86,4 @@ int(4)
===ERRORS===
iterator_apply(): Argument #3 ($args) must be of type ?array, int given
iterator_apply(): Argument #2 ($function) must be a valid callback, function "non_existing_function" not found or invalid function name
-iterator_apply() expects at most 3 parameters, 4 given
+iterator_apply() expects at most 3 arguments, 4 given
diff --git a/ext/spl/tests/spl_iterator_iterator_constructor.phpt b/ext/spl/tests/spl_iterator_iterator_constructor.phpt
index 95457484c8..2349a13e31 100644
--- a/ext/spl/tests/spl_iterator_iterator_constructor.phpt
+++ b/ext/spl/tests/spl_iterator_iterator_constructor.phpt
@@ -21,4 +21,4 @@ try {
?>
--EXPECT--
-IteratorIterator::__construct() expects at most 2 parameters, 3 given
+IteratorIterator::__construct() expects at most 2 arguments, 3 given
diff --git a/ext/sqlite3/tests/sqlite3_02_open.phpt b/ext/sqlite3/tests/sqlite3_02_open.phpt
index dcc38d1407..db31587f68 100644
--- a/ext/sqlite3/tests/sqlite3_02_open.phpt
+++ b/ext/sqlite3/tests/sqlite3_02_open.phpt
@@ -16,4 +16,4 @@ try {
?>
--EXPECT--
-string(60) "SQLite3::__construct() expects at least 1 parameter, 0 given"
+string(59) "SQLite3::__construct() expects at least 1 argument, 0 given"
diff --git a/ext/standard/array.c b/ext/standard/array.c
index b8996f8a34..7779ce7806 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -745,7 +745,7 @@ PHP_FUNCTION(count)
switch (Z_TYPE_P(array)) {
case IS_NULL:
/* Intentionally not converted to an exception */
- php_error_docref(NULL, E_WARNING, "Parameter must be an array or an object that implements Countable");
+ php_error_docref(NULL, E_WARNING, "%s(): Argument #1 ($var) must be of type Countable|array, %s given", get_active_function_name(), zend_zval_type_name(array));
RETURN_LONG(0);
break;
case IS_ARRAY:
@@ -780,13 +780,13 @@ PHP_FUNCTION(count)
/* If There's no handler and it doesn't implement Countable then add a warning */
/* Intentionally not converted to an exception */
- php_error_docref(NULL, E_WARNING, "Parameter must be an array or an object that implements Countable");
+ php_error_docref(NULL, E_WARNING, "%s(): Argument #1 ($var) must be of type Countable|array, %s given", get_active_function_name(), zend_zval_type_name(array));
RETURN_LONG(1);
break;
}
default:
/* Intentionally not converted to an exception */
- php_error_docref(NULL, E_WARNING, "Parameter must be an array or an object that implements Countable");
+ php_error_docref(NULL, E_WARNING, "%s(): Argument #1 ($var) must be of type Countable|array, %s given", get_active_function_name(), zend_zval_type_name(array));
RETURN_LONG(1);
break;
}
@@ -4637,7 +4637,7 @@ static void php_array_intersect_key(INTERNAL_FUNCTION_PARAMETERS, int data_compa
}
if (argc < req_args) {
- zend_argument_count_error("At least %d parameters are required, %d given", req_args, argc);
+ zend_argument_count_error("At least %d arguments are required, %d given", req_args, argc);
RETURN_THROWS();
}
@@ -4731,7 +4731,7 @@ static void php_array_intersect(INTERNAL_FUNCTION_PARAMETERS, int behavior, int
}
if (ZEND_NUM_ARGS() < req_args) {
- zend_argument_count_error("At least %d parameters are required, %d given", req_args, ZEND_NUM_ARGS());
+ zend_argument_count_error("At least %d arguments are required, %d given", req_args, ZEND_NUM_ARGS());
RETURN_THROWS();
}
@@ -4783,7 +4783,7 @@ static void php_array_intersect(INTERNAL_FUNCTION_PARAMETERS, int behavior, int
}
if (ZEND_NUM_ARGS() < req_args) {
- zend_argument_count_error("At least %d parameters are required, %d given", req_args, ZEND_NUM_ARGS());
+ zend_argument_count_error("At least %d arguments are required, %d given", req_args, ZEND_NUM_ARGS());
RETURN_THROWS();
}
@@ -5024,7 +5024,7 @@ static void php_array_diff_key(INTERNAL_FUNCTION_PARAMETERS, int data_compare_ty
argc = ZEND_NUM_ARGS();
if (data_compare_type == DIFF_COMP_DATA_USER) {
if (argc < 3) {
- zend_argument_count_error("At least 3 parameters are required, %d given", ZEND_NUM_ARGS());
+ zend_argument_count_error("At least 3 arguments are required, %d given", ZEND_NUM_ARGS());
RETURN_THROWS();
}
if (zend_parse_parameters(ZEND_NUM_ARGS(), "+f", &args, &argc, &BG(user_compare_fci), &BG(user_compare_fci_cache)) == FAILURE) {
@@ -5033,7 +5033,7 @@ static void php_array_diff_key(INTERNAL_FUNCTION_PARAMETERS, int data_compare_ty
diff_data_compare_func = zval_user_compare;
} else {
if (argc < 2) {
- zend_argument_count_error("At least 2 parameters are required, %d given", ZEND_NUM_ARGS());
+ zend_argument_count_error("At least 2 arguments are required, %d given", ZEND_NUM_ARGS());
RETURN_THROWS();
}
if (zend_parse_parameters(ZEND_NUM_ARGS(), "+", &args, &argc) == FAILURE) {
@@ -5130,7 +5130,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior, int data_
}
if (ZEND_NUM_ARGS() < req_args) {
- zend_argument_count_error("At least %d parameters are required, %d given", req_args, ZEND_NUM_ARGS());
+ zend_argument_count_error("At least %d arguments are required, %d given", req_args, ZEND_NUM_ARGS());
RETURN_THROWS();
}
@@ -5182,7 +5182,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior, int data_
}
if (ZEND_NUM_ARGS() < req_args) {
- zend_argument_count_error("At least %d parameters are required, %d given", req_args, ZEND_NUM_ARGS());
+ zend_argument_count_error("At least %d arguments are required, %d given", req_args, ZEND_NUM_ARGS());
RETURN_THROWS();
}
@@ -5378,7 +5378,7 @@ PHP_FUNCTION(array_diff)
zval dummy;
if (ZEND_NUM_ARGS() < 2) {
- zend_argument_count_error("At least 2 parameters are required, %d given", ZEND_NUM_ARGS());
+ zend_argument_count_error("At least 2 arguments are required, %d given", ZEND_NUM_ARGS());
RETURN_THROWS();
}
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php
index 9352b9712c..8ec2eef3a7 100755
--- a/ext/standard/basic_functions.stub.php
+++ b/ext/standard/basic_functions.stub.php
@@ -63,11 +63,11 @@ function krsort(array &$array, int $sort_flags = SORT_REGULAR): bool {}
function ksort(array &$array, int $sort_flags = SORT_REGULAR): bool {}
-/** @param array|Countable|null $var */
+/** @param Countable|array $var */
function count($var, int $mode = COUNT_NORMAL): int {}
/**
- * @param array|object|null $var
+ * @param Countable|array $var
* @alias count
*/
function sizeof($var, int $mode = COUNT_NORMAL): int {}
diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h
index 61a92dc185..17ab235dbb 100755
--- a/ext/standard/basic_functions_arginfo.h
+++ b/ext/standard/basic_functions_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: c51ad7a5f254f8d28f2b2c0b46e214c44f0f96cf */
+ * Stub hash: 1d2a7229aa506c8da54ecbed6480836aa14fd484 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
diff --git a/ext/standard/formatted_print.c b/ext/standard/formatted_print.c
index 12d3d3df7d..9bb4a5cb06 100644
--- a/ext/standard/formatted_print.c
+++ b/ext/standard/formatted_print.c
@@ -719,7 +719,7 @@ php_formatted_print(char *format, size_t format_len, zval *args, int argc, int n
if (nb_additional_parameters == -1) {
zend_value_error("The arguments array must contain %d items, %d given", max_missing_argnum + 1, argc);
} else {
- zend_argument_count_error("%d parameters are required, %d given", max_missing_argnum + nb_additional_parameters + 1, argc + nb_additional_parameters);
+ zend_argument_count_error("%d arguments are required, %d given", max_missing_argnum + nb_additional_parameters + 1, argc + nb_additional_parameters);
}
goto fail;
}
diff --git a/ext/standard/tests/array/array_diff_assoc_error.phpt b/ext/standard/tests/array/array_diff_assoc_error.phpt
index 02ee5f282b..bc2a1e7936 100644
--- a/ext/standard/tests/array/array_diff_assoc_error.phpt
+++ b/ext/standard/tests/array/array_diff_assoc_error.phpt
@@ -31,8 +31,8 @@ echo "Done";
*** Testing array_diff_assoc() : error conditions ***
-- Testing array_diff_assoc() function with zero arguments --
-At least 2 parameters are required, 0 given
+At least 2 arguments are required, 0 given
-- Testing array_diff_assoc() function with less than expected no. of arguments --
-At least 2 parameters are required, 1 given
+At least 2 arguments are required, 1 given
Done
diff --git a/ext/standard/tests/array/array_diff_error.phpt b/ext/standard/tests/array/array_diff_error.phpt
index 81481fd207..37a0681703 100644
--- a/ext/standard/tests/array/array_diff_error.phpt
+++ b/ext/standard/tests/array/array_diff_error.phpt
@@ -31,8 +31,8 @@ echo "Done";
*** Testing array_diff() : error conditions ***
-- Testing array_diff() function with zero arguments --
-At least 2 parameters are required, 0 given
+At least 2 arguments are required, 0 given
-- Testing array_diff() function with less than expected no. of arguments --
-At least 2 parameters are required, 1 given
+At least 2 arguments are required, 1 given
Done
diff --git a/ext/standard/tests/array/array_diff_key_error.phpt b/ext/standard/tests/array/array_diff_key_error.phpt
index a468b832b6..1ac25ea67c 100644
--- a/ext/standard/tests/array/array_diff_key_error.phpt
+++ b/ext/standard/tests/array/array_diff_key_error.phpt
@@ -27,7 +27,7 @@ try {
*** Testing array_diff_key() : error conditions ***
-- Testing array_diff_key() function with less than expected no. of arguments --
-At least 2 parameters are required, 1 given
+At least 2 arguments are required, 1 given
-- Testing array_diff_key() function with no arguments --
-At least 2 parameters are required, 0 given
+At least 2 arguments are required, 0 given
diff --git a/ext/standard/tests/array/array_diff_uassoc_error.phpt b/ext/standard/tests/array/array_diff_uassoc_error.phpt
index fa083f345c..2eddc16d5b 100644
--- a/ext/standard/tests/array/array_diff_uassoc_error.phpt
+++ b/ext/standard/tests/array/array_diff_uassoc_error.phpt
@@ -49,4 +49,4 @@ array_diff_uassoc(): Argument #4 must be a valid callback, array must have exact
array_diff_uassoc(): Argument #6 must be a valid callback, array must have exactly two members
-- Testing array_diff_uassoc() function with less than expected no. of arguments --
-At least 3 parameters are required, 2 given
+At least 3 arguments are required, 2 given
diff --git a/ext/standard/tests/array/array_filter_variation10.phpt b/ext/standard/tests/array/array_filter_variation10.phpt
index 5000783a8b..eef7b64620 100644
--- a/ext/standard/tests/array/array_filter_variation10.phpt
+++ b/ext/standard/tests/array/array_filter_variation10.phpt
@@ -87,5 +87,5 @@ array(2) {
["b"]=>
int(2)
}
-is_numeric() expects exactly 1 parameter, 2 given
+is_numeric() expects exactly 1 argument, 2 given
Done
diff --git a/ext/standard/tests/array/array_intersect_assoc_error.phpt b/ext/standard/tests/array/array_intersect_assoc_error.phpt
index 40d5bb3b16..db59d4e22d 100644
--- a/ext/standard/tests/array/array_intersect_assoc_error.phpt
+++ b/ext/standard/tests/array/array_intersect_assoc_error.phpt
@@ -27,8 +27,8 @@ echo "Done";
*** Testing array_intersect_assoc() : error conditions ***
-- Testing array_intersect_assoc() function with Zero arguments --
-At least 2 parameters are required, 0 given
+At least 2 arguments are required, 0 given
-- Testing array_intersect_assoc() function with less than expected no. of arguments --
-At least 2 parameters are required, 1 given
+At least 2 arguments are required, 1 given
Done
diff --git a/ext/standard/tests/array/array_intersect_error.phpt b/ext/standard/tests/array/array_intersect_error.phpt
index 5ddfaa42f0..623fd2f9a6 100644
--- a/ext/standard/tests/array/array_intersect_error.phpt
+++ b/ext/standard/tests/array/array_intersect_error.phpt
@@ -27,8 +27,8 @@ echo "Done";
*** Testing array_intersect() : error conditions ***
-- Testing array_intersect() function with Zero arguments --
-At least 2 parameters are required, 0 given
+At least 2 arguments are required, 0 given
-- Testing array_intersect() function with less than expected no. of arguments --
-At least 2 parameters are required, 1 given
+At least 2 arguments are required, 1 given
Done
diff --git a/ext/standard/tests/array/array_intersect_key_error.phpt b/ext/standard/tests/array/array_intersect_key_error.phpt
index 49df346972..81961f3afc 100644
--- a/ext/standard/tests/array/array_intersect_key_error.phpt
+++ b/ext/standard/tests/array/array_intersect_key_error.phpt
@@ -27,7 +27,7 @@ try {
*** Testing array_intersect_key() : error conditions ***
-- Testing array_intersect_key() function with less than expected no. of arguments --
-At least 2 parameters are required, 1 given
+At least 2 arguments are required, 1 given
-- Testing array_intersect_key() function with no arguments --
-At least 2 parameters are required, 0 given
+At least 2 arguments are required, 0 given
diff --git a/ext/standard/tests/array/array_map_error.phpt b/ext/standard/tests/array/array_map_error.phpt
index 5e770083e7..7d1d6986ab 100644
--- a/ext/standard/tests/array/array_map_error.phpt
+++ b/ext/standard/tests/array/array_map_error.phpt
@@ -37,7 +37,7 @@ echo "Done";
*** Testing array_map() : error conditions ***
-- Testing array_map() function with one less than expected no. of arguments --
-Exception: array_map() expects at least 2 parameters, 1 given
+Exception: array_map() expects at least 2 arguments, 1 given
-- Testing array_map() function with less no. of arrays than callback function arguments --
Exception: Too few arguments to function callback2(), 1 passed and exactly 2 expected
diff --git a/ext/standard/tests/array/array_map_variation12.phpt b/ext/standard/tests/array/array_map_variation12.phpt
index 1c4f3b23a1..b642bd0cb5 100644
--- a/ext/standard/tests/array/array_map_variation12.phpt
+++ b/ext/standard/tests/array/array_map_variation12.phpt
@@ -42,7 +42,7 @@ array(3) {
int(243)
}
-- with built-in function 'pow' and one parameter --
-pow() expects exactly 2 parameters, 1 given
+pow() expects exactly 2 arguments, 1 given
-- with language construct --
array_map(): Argument #1 ($callback) must be a valid callback, function "echo" not found or invalid function name
Done
diff --git a/ext/standard/tests/array/array_next_error2.phpt b/ext/standard/tests/array/array_next_error2.phpt
index 75aa778859..e9df624e0e 100644
--- a/ext/standard/tests/array/array_next_error2.phpt
+++ b/ext/standard/tests/array/array_next_error2.phpt
@@ -8,7 +8,7 @@ function f() {
var_dump(next(array(1, 2)));
?>
--EXPECTF--
-Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in %s:%d
+Fatal error: Uncaught Error: next(): Argument #1 ($arg) cannot be passed by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
diff --git a/ext/standard/tests/array/array_walk_error2.phpt b/ext/standard/tests/array/array_walk_error2.phpt
index d3209d87c2..57b082db95 100644
--- a/ext/standard/tests/array/array_walk_error2.phpt
+++ b/ext/standard/tests/array/array_walk_error2.phpt
@@ -56,5 +56,5 @@ Exception: Too few arguments to function callback2(), 3 passed and exactly 4 exp
Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected
Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected
-- Testing array_walk() function with too many callback parameters --
-Exception: array_walk() expects at most 3 parameters, 4 given
+Exception: array_walk() expects at most 3 arguments, 4 given
Done
diff --git a/ext/standard/tests/array/array_walk_recursive_error2.phpt b/ext/standard/tests/array/array_walk_recursive_error2.phpt
index ad4fd99ede..fa5161e5c1 100644
--- a/ext/standard/tests/array/array_walk_recursive_error2.phpt
+++ b/ext/standard/tests/array/array_walk_recursive_error2.phpt
@@ -56,5 +56,5 @@ Exception: Too few arguments to function callback2(), 3 passed and exactly 4 exp
Exception: Too few arguments to function callback1(), 2 passed and exactly 3 expected
Exception: Too few arguments to function callback2(), 3 passed and exactly 4 expected
-- Testing array_walk_recursive() function with too many callback parameters --
-Exception: array_walk_recursive() expects at most 3 parameters, 4 given
+Exception: array_walk_recursive() expects at most 3 arguments, 4 given
Done
diff --git a/ext/standard/tests/array/count_invalid.phpt b/ext/standard/tests/array/count_invalid.phpt
index 95da00dac5..4b146de85b 100644
--- a/ext/standard/tests/array/count_invalid.phpt
+++ b/ext/standard/tests/array/count_invalid.phpt
@@ -23,20 +23,20 @@ var_dump($result);
?>
--EXPECTF--
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, stdClass given in %s on line %d
int(1)
diff --git a/ext/standard/tests/array/count_recursive.phpt b/ext/standard/tests/array/count_recursive.phpt
index bae0fc9423..8532a74cb6 100644
--- a/ext/standard/tests/array/count_recursive.phpt
+++ b/ext/standard/tests/array/count_recursive.phpt
@@ -113,10 +113,10 @@ closedir( $resource2 );
*** Testing basic functionality of count() function ***
-- Testing NULL --
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): count(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
COUNT_NORMAL: should be 0, is 0
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): count(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
COUNT_RECURSIVE: should be 0, is 0
-- Testing arrays --
COUNT_NORMAL: should be 2, is 2
@@ -126,14 +126,14 @@ COUNT_NORMAL: should be 3, is 3
COUNT_RECURSIVE: should be 6, is 6
-- Testing strings --
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): count(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
COUNT_NORMAL: should be 1, is 1
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): count(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
COUNT_RECURSIVE: should be 1, is 1
-- Testing various types with no second argument --
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
COUNT_NORMAL: should be 1, is 1
COUNT_NORMAL: should be 2, is 2
-- Testing really cool arrays --
@@ -175,18 +175,18 @@ COUNT_RECURSIVE is 7
-- Testing count() on constants with no second argument --
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
COUNT_NORMAL: should be 1, is 1
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
COUNT_NORMAL: should be 1, is 1
-- Testing count() on NULL and Unset variables --
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
COUNT_NORMAL: should be 0, is 0
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
COUNT_NORMAL: should be 1, is 1
COUNT_NORMAL: should be 0, is 0
diff --git a/ext/standard/tests/array/prev_error3.phpt b/ext/standard/tests/array/prev_error3.phpt
index 35f3567467..7777527f16 100644
--- a/ext/standard/tests/array/prev_error3.phpt
+++ b/ext/standard/tests/array/prev_error3.phpt
@@ -10,7 +10,7 @@ prev - ensure we cannot pass a temporary
var_dump(prev(array(1, 2)));
?>
--EXPECTF--
-Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in %s:%d
+Fatal error: Uncaught Error: prev(): Argument #1 ($arg) cannot be passed by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
diff --git a/ext/standard/tests/array/sizeof_basic1.phpt b/ext/standard/tests/array/sizeof_basic1.phpt
index 68dcc52a23..4c5910e357 100644
--- a/ext/standard/tests/array/sizeof_basic1.phpt
+++ b/ext/standard/tests/array/sizeof_basic1.phpt
@@ -39,27 +39,27 @@ echo "Done";
*** Testing sizeof() : basic functionality ***
-- Testing sizeof() for integer type in default, COUNT_NORMAL and COUNT_RECURSIVE modes --
default mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
COUNT_NORMAL mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
COUNT_RECURSIVE mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
-- Testing sizeof() for float type in default, COUNT_NORMAL and COUNT_RECURSIVE modes --
default mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_NORMAL mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_RECURSIVE mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
Done
diff --git a/ext/standard/tests/array/sizeof_object2.phpt b/ext/standard/tests/array/sizeof_object2.phpt
index 513b239b12..9a96719eb6 100644
--- a/ext/standard/tests/array/sizeof_object2.phpt
+++ b/ext/standard/tests/array/sizeof_object2.phpt
@@ -95,67 +95,67 @@ echo "Done";
--- Testing sizeof() with objects which doesn't implement Countable interface ---
-- Iteration 1 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, test given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, test given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, test given in %s on line %d
int(1)
-- Iteration 2 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, test1 given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, test1 given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, test1 given in %s on line %d
int(1)
-- Iteration 3 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, test2 given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, test2 given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, test2 given in %s on line %d
int(1)
-- Iteration 4 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, child_test2 given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, child_test2 given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, child_test2 given in %s on line %d
int(1)
-- Iteration 5 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, concrete_class given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, concrete_class given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, concrete_class given in %s on line %d
int(1)
Done
diff --git a/ext/standard/tests/array/sizeof_variation1.phpt b/ext/standard/tests/array/sizeof_variation1.phpt
index 5f3988b8bd..13196d3170 100644
--- a/ext/standard/tests/array/sizeof_variation1.phpt
+++ b/ext/standard/tests/array/sizeof_variation1.phpt
@@ -74,249 +74,249 @@ echo "Done";
--- Testing sizeof() for all scalar types in default,COUNT_NORMAL and COUNT_RECURSIVE mode ---
-- Iteration 1 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
-- Iteration 2 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, int given in %s on line %d
int(1)
-- Iteration 3 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
-- Iteration 4 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
-- Iteration 5 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
-- Iteration 6 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
-- Iteration 7 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, float given in %s on line %d
int(1)
-- Iteration 8 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 9 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 10 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
-- Iteration 11 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
-- Iteration 12 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
-- Iteration 13 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, bool given in %s on line %d
int(1)
-- Iteration 14 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
-- Iteration 15 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
-- Iteration 16 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
-- Iteration 17 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, string given in %s on line %d
int(1)
-- Iteration 18 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 19 --
Default Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, resource given in %s on line %d
int(1)
COUNT_NORMAL Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, resource given in %s on line %d
int(1)
COUNT_RECURSIVE Mode:
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, resource given in %s on line %d
int(1)
Done
diff --git a/ext/standard/tests/array/sizeof_variation4.phpt b/ext/standard/tests/array/sizeof_variation4.phpt
index e0c4b13eaa..c8484d8451 100644
--- a/ext/standard/tests/array/sizeof_variation4.phpt
+++ b/ext/standard/tests/array/sizeof_variation4.phpt
@@ -84,380 +84,380 @@ echo "Done";
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 2 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 3 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 4 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 5 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 6 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 7 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 8 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 9 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 10 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 11 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 12 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 13 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 14 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 15 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 16 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 17 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 18 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 19 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
-- Iteration 20 --
Default Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_NORMAL Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
COUNT_RECURSIVE Mode:
Warning: Undefined variable $value in %s on line %d
-Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: sizeof(): sizeof(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
int(0)
Done
diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt
index 9bdefc334b..1e7516970e 100644
--- a/ext/standard/tests/general_functions/error_get_last.phpt
+++ b/ext/standard/tests/general_functions/error_get_last.phpt
@@ -19,7 +19,7 @@ echo "Done\n";
?>
--EXPECTF--
NULL
-error_get_last() expects exactly 0 parameters, 1 given
+error_get_last() expects exactly 0 arguments, 1 given
NULL
Warning: Undefined variable $b in %s on line %d
diff --git a/ext/standard/tests/general_functions/is_countable_with_variables.phpt b/ext/standard/tests/general_functions/is_countable_with_variables.phpt
index 0cb18769d6..7a4efc914b 100644
--- a/ext/standard/tests/general_functions/is_countable_with_variables.phpt
+++ b/ext/standard/tests/general_functions/is_countable_with_variables.phpt
@@ -25,4 +25,4 @@ bool(true)
bool(false)
int(2)
-Warning: count(): Parameter must be an array or an object that implements Countable in %s on line %d
+Warning: count(): Argument #1 ($var) must be of type Countable|array, null given in %s on line %d
diff --git a/ext/standard/tests/password/password_hash_error.phpt b/ext/standard/tests/password/password_hash_error.phpt
index ddb5793c81..a9e26f0916 100644
--- a/ext/standard/tests/password/password_hash_error.phpt
+++ b/ext/standard/tests/password/password_hash_error.phpt
@@ -36,7 +36,7 @@ try {
?>
--EXPECT--
-password_hash() expects at least 2 parameters, 1 given
+password_hash() expects at least 2 arguments, 1 given
password_hash(): Argument #2 ($algo) must be of type string|int|null, array given
password_hash(): Argument #3 ($options) must be of type array, stdClass given
password_hash(): Argument #3 ($options) must be of type array, string given
diff --git a/ext/standard/tests/password/password_needs_rehash_error.phpt b/ext/standard/tests/password/password_needs_rehash_error.phpt
index aef86ee124..283a6b5387 100644
--- a/ext/standard/tests/password/password_needs_rehash_error.phpt
+++ b/ext/standard/tests/password/password_needs_rehash_error.phpt
@@ -30,7 +30,7 @@ try {
echo "OK!";
?>
--EXPECT--
-password_needs_rehash() expects at least 2 parameters, 1 given
+password_needs_rehash() expects at least 2 arguments, 1 given
password_needs_rehash(): Argument #2 ($algo) must be of type string|int|null, array given
password_needs_rehash(): Argument #1 ($hash) must be of type string, array given
password_needs_rehash(): Argument #3 ($options) must be of type array, string given
diff --git a/ext/standard/tests/password/password_verify_error.phpt b/ext/standard/tests/password/password_verify_error.phpt
index 192a4ae288..76c4f6dcb6 100644
--- a/ext/standard/tests/password/password_verify_error.phpt
+++ b/ext/standard/tests/password/password_verify_error.phpt
@@ -12,4 +12,4 @@ try {
?>
--EXPECT--
-password_verify() expects exactly 2 parameters, 1 given
+password_verify() expects exactly 2 arguments, 1 given
diff --git a/ext/standard/tests/random/random_bytes_error.phpt b/ext/standard/tests/random/random_bytes_error.phpt
index 5a8b1d097c..bc0c1ccc20 100644
--- a/ext/standard/tests/random/random_bytes_error.phpt
+++ b/ext/standard/tests/random/random_bytes_error.phpt
@@ -18,5 +18,5 @@ try {
?>
--EXPECT--
-random_bytes() expects exactly 1 parameter, 0 given
+random_bytes() expects exactly 1 argument, 0 given
random_bytes(): Argument #1 ($length) must be greater than 0
diff --git a/ext/standard/tests/random/random_int_error.phpt b/ext/standard/tests/random/random_int_error.phpt
index 6d91b38258..fe461275c9 100644
--- a/ext/standard/tests/random/random_int_error.phpt
+++ b/ext/standard/tests/random/random_int_error.phpt
@@ -24,6 +24,6 @@ try {
?>
--EXPECT--
-random_int() expects exactly 2 parameters, 0 given
-random_int() expects exactly 2 parameters, 1 given
+random_int() expects exactly 2 arguments, 0 given
+random_int() expects exactly 2 arguments, 1 given
random_int(): Argument #1 ($min) must be less than or equal to argument #2 ($max)
diff --git a/ext/standard/tests/strings/chr_error.phpt b/ext/standard/tests/strings/chr_error.phpt
index 59dfffd53b..aee28604d5 100644
--- a/ext/standard/tests/strings/chr_error.phpt
+++ b/ext/standard/tests/strings/chr_error.phpt
@@ -25,7 +25,7 @@ try {
*** Testing chr() : error conditions ***
-- Testing chr() function with no arguments --
-chr() expects exactly 1 parameter, 0 given
+chr() expects exactly 1 argument, 0 given
-- Testing chr() function with more than expected no. of arguments --
-chr() expects exactly 1 parameter, 2 given
+chr() expects exactly 1 argument, 2 given
diff --git a/ext/standard/tests/strings/crypt.phpt b/ext/standard/tests/strings/crypt.phpt
index 462aea8b59..1d23656555 100644
--- a/ext/standard/tests/strings/crypt.phpt
+++ b/ext/standard/tests/strings/crypt.phpt
@@ -30,4 +30,4 @@ STD
EXT
MD5
BLO
-crypt() expects exactly 2 parameters, 1 given
+crypt() expects exactly 2 arguments, 1 given
diff --git a/ext/standard/tests/strings/fprintf_error.phpt b/ext/standard/tests/strings/fprintf_error.phpt
index 3671300e60..39bc3ebff3 100644
--- a/ext/standard/tests/strings/fprintf_error.phpt
+++ b/ext/standard/tests/strings/fprintf_error.phpt
@@ -31,7 +31,7 @@ echo "Done\n";
?>
--EXPECT--
*** Testing Error Conditions ***
-fprintf() expects at least 2 parameters, 0 given
-fprintf() expects at least 2 parameters, 1 given
-fprintf() expects at least 2 parameters, 1 given
+fprintf() expects at least 2 arguments, 0 given
+fprintf() expects at least 2 arguments, 1 given
+fprintf() expects at least 2 arguments, 1 given
Done
diff --git a/ext/standard/tests/strings/printf.phpt b/ext/standard/tests/strings/printf.phpt
index d77dd71c36..db47f58c53 100644
--- a/ext/standard/tests/strings/printf.phpt
+++ b/ext/standard/tests/strings/printf.phpt
@@ -238,10 +238,10 @@ printf("%d", $tempstring);
?>
--EXPECTF--
*** Output for zero argument ***
-printf() expects at least %d parameter, %d given
+printf() expects at least %d argument, %d given
*** Output for insufficient number of arguments ***
-Error found: 5 parameters are required, 3 given
+Error found: 5 arguments are required, 3 given
*** Output for scalar argument ***
3
*** Output for NULL as argument ***
diff --git a/ext/standard/tests/strings/printf_64bit.phpt b/ext/standard/tests/strings/printf_64bit.phpt
index b0e364b9c9..2886799cc7 100644
--- a/ext/standard/tests/strings/printf_64bit.phpt
+++ b/ext/standard/tests/strings/printf_64bit.phpt
@@ -238,10 +238,10 @@ printf("%d", $tempstring);
?>
--EXPECTF--
*** Output for zero argument ***
-printf() expects at least 1 parameter, 0 given
+printf() expects at least 1 argument, 0 given
*** Output for insufficient number of arguments ***
-Error found: 5 parameters are required, 3 given
+Error found: 5 arguments are required, 3 given
*** Output for scalar argument ***
3
*** Output for NULL as argument ***
diff --git a/ext/standard/tests/strings/printf_error.phpt b/ext/standard/tests/strings/printf_error.phpt
index 819bb7d1e0..2842f5cea1 100644
--- a/ext/standard/tests/strings/printf_error.phpt
+++ b/ext/standard/tests/strings/printf_error.phpt
@@ -60,18 +60,18 @@ try {
*** Testing printf() : error conditions ***
-- Testing printf() function with Zero arguments --
-printf() expects at least 1 parameter, 0 given
+printf() expects at least 1 argument, 0 given
-- Testing printf() function with less than expected no. of arguments --
-- Call printf with one argument less than expected --
-2 parameters are required, 1 given
-3 parameters are required, 2 given
-4 parameters are required, 3 given
+2 arguments are required, 1 given
+3 arguments are required, 2 given
+4 arguments are required, 3 given
-- Call printf with two argument less than expected --
-3 parameters are required, 1 given
-4 parameters are required, 2 given
+3 arguments are required, 1 given
+4 arguments are required, 2 given
-- Call printf with three argument less than expected --
-4 parameters are required, 1 given
+4 arguments are required, 1 given
diff --git a/ext/standard/tests/strings/sprintf_error.phpt b/ext/standard/tests/strings/sprintf_error.phpt
index 89ff16b72b..bab3fabae3 100644
--- a/ext/standard/tests/strings/sprintf_error.phpt
+++ b/ext/standard/tests/strings/sprintf_error.phpt
@@ -69,19 +69,19 @@ try {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : error conditions ***
-- Testing sprintf() function with Zero arguments --
-sprintf() expects at least %d parameter, %d given
+sprintf() expects at least 1 argument, 0 given
-- Testing sprintf() function with less than expected no. of arguments --
-2 parameters are required, 1 given
-3 parameters are required, 2 given
-4 parameters are required, 3 given
-3 parameters are required, 1 given
-4 parameters are required, 2 given
-4 parameters are required, 1 given
-101 parameters are required, 1 given
+2 arguments are required, 1 given
+3 arguments are required, 2 given
+4 arguments are required, 3 given
+3 arguments are required, 1 given
+4 arguments are required, 2 given
+4 arguments are required, 1 given
+101 arguments are required, 1 given
Missing format specifier at end of string
Done
diff --git a/ext/standard/tests/strings/vfprintf_error1.phpt b/ext/standard/tests/strings/vfprintf_error1.phpt
index d93de7dc56..1c114daee4 100644
--- a/ext/standard/tests/strings/vfprintf_error1.phpt
+++ b/ext/standard/tests/strings/vfprintf_error1.phpt
@@ -38,5 +38,5 @@ unlink( $file );
?>
--EXPECT--
-- Testing vfprintf() function with more than expected no. of arguments --
-vfprintf() expects exactly 3 parameters, 4 given
-vfprintf() expects exactly 3 parameters, 4 given
+vfprintf() expects exactly 3 arguments, 4 given
+vfprintf() expects exactly 3 arguments, 4 given
diff --git a/ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt b/ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt
index fd8fa429fc..b5c287f891 100644
--- a/ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt
+++ b/ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt
@@ -14,4 +14,4 @@ try {
}
?>
--EXPECT--
-XSLTProcessor::hasExsltSupport() expects exactly 0 parameters, 1 given
+XSLTProcessor::hasExsltSupport() expects exactly 0 arguments, 1 given