diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-29 20:06:13 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-02-17 14:22:17 +0100 |
commit | ac0853eb265784c4238af652de9c54c883ffa99f (patch) | |
tree | e9316872480304e9e74ce89bd15052965cc18438 /ext | |
parent | 72bd55902d1908857f47555ad69458861e1acd94 (diff) | |
download | php-git-ac0853eb265784c4238af652de9c54c883ffa99f.tar.gz |
Make type error messages more consistent
Closes GH-5092
Diffstat (limited to 'ext')
264 files changed, 715 insertions, 717 deletions
diff --git a/ext/curl/tests/curl_setopt_error.phpt b/ext/curl/tests/curl_setopt_error.phpt index 0a7db7265f..e6a76e7afa 100644 --- a/ext/curl/tests/curl_setopt_error.phpt +++ b/ext/curl/tests/curl_setopt_error.phpt @@ -20,6 +20,6 @@ curl_setopt($ch, -10, 0); ?> --EXPECTF-- *** curl_setopt() call with incorrect parameters -curl_setopt() expects parameter 2 to be int, string given +curl_setopt() expects argument #2 ($option) to be of type int, string given Warning: curl_setopt(): Invalid curl configuration option in %scurl_setopt_error.php on line %d diff --git a/ext/date/tests/014.phpt b/ext/date/tests/014.phpt index f57f3e4b1d..ce346c2ba9 100644 --- a/ext/date/tests/014.phpt +++ b/ext/date/tests/014.phpt @@ -33,7 +33,7 @@ object(DateTimeZone)#%d (2) { } int(0) -Fatal error: Uncaught TypeError: timezone_offset_get() expects parameter 1 to be DateTimeZone, object given in %s:%d +Fatal error: Uncaught TypeError: timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given in %s:%d Stack trace: #0 %s(%d): timezone_offset_get(Object(DateTime), Object(DateTimeZone)) #1 {main} diff --git a/ext/date/tests/68062.phpt b/ext/date/tests/68062.phpt index 1270382158..63e40a3bd0 100644 --- a/ext/date/tests/68062.phpt +++ b/ext/date/tests/68062.phpt @@ -14,4 +14,4 @@ try { } --EXPECT-- 3600 -DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given +DateTimeZone::getOffset() expects argument #1 ($datetime) to be of type DateTimeInterface, int given diff --git a/ext/date/tests/DateTimeImmutable_createFromMutable.phpt b/ext/date/tests/DateTimeImmutable_createFromMutable.phpt index 671afc1229..8651a90d34 100644 --- a/ext/date/tests/DateTimeImmutable_createFromMutable.phpt +++ b/ext/date/tests/DateTimeImmutable_createFromMutable.phpt @@ -24,4 +24,4 @@ object(DateTimeImmutable)#%d (3) { ["timezone"]=> string(13) "Europe/London" } -DateTimeImmutable::createFromMutable() expects parameter 1 to be DateTime, object given +DateTimeImmutable::createFromMutable() expects argument #1 ($object) to be of type DateTime, object given diff --git a/ext/date/tests/DateTime_createFromImmutable.phpt b/ext/date/tests/DateTime_createFromImmutable.phpt index 841a3d4d33..153e7f3cbf 100644 --- a/ext/date/tests/DateTime_createFromImmutable.phpt +++ b/ext/date/tests/DateTime_createFromImmutable.phpt @@ -30,4 +30,4 @@ object(DateTime)#%d (3) { string(13) "Europe/London" } bool(true) -DateTime::createFromImmutable() expects parameter 1 to be DateTimeImmutable, object given +DateTime::createFromImmutable() expects argument #1 ($object) to be of type DateTimeImmutable, object given diff --git a/ext/date/tests/bug36988.phpt b/ext/date/tests/bug36988.phpt index 691bb4a7e2..ecb6e8ad7a 100644 --- a/ext/date/tests/bug36988.phpt +++ b/ext/date/tests/bug36988.phpt @@ -13,4 +13,4 @@ try { } ?> --EXPECT-- -mktime() expects parameter 6 to be int, float given +mktime() expects argument #6 ($year) to be of type int, float given diff --git a/ext/date/tests/bug52062.phpt b/ext/date/tests/bug52062.phpt index b1f7f25d7b..639868aecb 100644 --- a/ext/date/tests/bug52062.phpt +++ b/ext/date/tests/bug52062.phpt @@ -28,7 +28,7 @@ var_dump($i->format('%s')); string(32) "5138-11-16 09:46:40 100000000000" bool(false) string(12) "100000000000" -DateTime::setTimestamp() expects parameter 1 to be int, float given +DateTime::setTimestamp() expects argument #1 ($timestamp) to be of type int, float given string(32) "5138-11-16 09:46:40 100000000000" bool(false) string(10) "1215752192" diff --git a/ext/date/tests/bug70245.phpt b/ext/date/tests/bug70245.phpt index b480192326..2443d91d01 100644 --- a/ext/date/tests/bug70245.phpt +++ b/ext/date/tests/bug70245.phpt @@ -9,5 +9,5 @@ try { echo $e->getMessage(), "\n"; } ?> ---EXPECTF-- -strtotime() expects parameter 2 to be int, object given +--EXPECT-- +strtotime() expects argument #2 ($now) to be of type int, object given diff --git a/ext/date/tests/microtime_error.phpt b/ext/date/tests/microtime_error.phpt index 0736d3cf24..d746e5b3ac 100644 --- a/ext/date/tests/microtime_error.phpt +++ b/ext/date/tests/microtime_error.phpt @@ -47,11 +47,11 @@ float(%s) int(0) } } -microtime() expects parameter 1 to be bool, array given +microtime() expects argument #1 ($get_as_float) to be of type bool, array given --> bad arg: object(stdClass)#%d (0) { } -microtime() expects parameter 1 to be bool, object given +microtime() expects argument #1 ($get_as_float) to be of type bool, object given --> bad arg: int(1) float(%s) diff --git a/ext/date/tests/timezone_offset_get_error.phpt b/ext/date/tests/timezone_offset_get_error.phpt index 69e81cb846..1782ced195 100644 --- a/ext/date/tests/timezone_offset_get_error.phpt +++ b/ext/date/tests/timezone_offset_get_error.phpt @@ -65,17 +65,16 @@ try { *** Testing timezone_offset_get() : error conditions *** -- Testing timezone_offset_get() function with an invalid values for $object argument -- -string(74) "timezone_offset_get() expects parameter 1 to be DateTimeZone, object given" +string(92) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, object given" -string(71) "timezone_offset_get() expects parameter 1 to be DateTimeZone, int given" +string(89) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, int given" -string(72) "timezone_offset_get() expects parameter 1 to be DateTimeZone, null given" +string(90) "timezone_offset_get() expects argument #1 ($object) to be of type DateTimeZone, null given" -- Testing timezone_offset_get() function with an invalid values for $datetime argument -- -string(79) "timezone_offset_get() expects parameter 2 to be DateTimeInterface, object given" +string(99) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, object given" -string(76) "timezone_offset_get() expects parameter 2 to be DateTimeInterface, int given" - -string(77) "timezone_offset_get() expects parameter 2 to be DateTimeInterface, null given" +string(96) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, int given" +string(97) "timezone_offset_get() expects argument #2 ($datetime) to be of type DateTimeInterface, null given" diff --git a/ext/ffi/tests/045.phpt b/ext/ffi/tests/045.phpt index 981b7c31d2..411a03702b 100644 --- a/ext/ffi/tests/045.phpt +++ b/ext/ffi/tests/045.phpt @@ -23,5 +23,5 @@ try { --EXPECTF-- bool(true) bool(false) -TypeError: FFI::isNull() expects parameter 1 to be FFI\CData, null given +TypeError: FFI::isNull() expects argument #1 ($ptr) to be of type FFI\CData, null given FFI\Exception: Cannot instantiate FFI\CData of zero size diff --git a/ext/fileinfo/tests/finfo_open_001.phpt b/ext/fileinfo/tests/finfo_open_001.phpt index af06278fae..2ceb80444c 100644 --- a/ext/fileinfo/tests/finfo_open_001.phpt +++ b/ext/fileinfo/tests/finfo_open_001.phpt @@ -19,7 +19,7 @@ var_dump(finfo_open(FILEINFO_MIME, '/foo/bar/inexistent')); ?> --EXPECTF-- -finfo_open() expects parameter 2 to be a valid path, string given +finfo_open() expects argument #2 ($arg) to be a valid path, string given resource(%d) of type (file_info) resource(%d) of type (file_info) diff --git a/ext/fileinfo/tests/finfo_open_error.phpt b/ext/fileinfo/tests/finfo_open_error.phpt index deb35bb95f..6e0c02c489 100644 --- a/ext/fileinfo/tests/finfo_open_error.phpt +++ b/ext/fileinfo/tests/finfo_open_error.phpt @@ -42,5 +42,5 @@ bool(false) Notice: finfo_open(): Warning: using regular magic file `%smagic' in %sfinfo_open_error.php on line %d resource(6) of type (file_info) -finfo_open() expects parameter 1 to be int, string given -finfo::__construct() expects parameter 1 to be int, string given +finfo_open() expects argument #1 ($options) to be of type int, string given +finfo::__construct() expects argument #1 ($options) to be of type int, string given diff --git a/ext/gd/tests/imagegd2_nullbyte_injection.phpt b/ext/gd/tests/imagegd2_nullbyte_injection.phpt index 30394cc1a5..775da28b7f 100644 --- a/ext/gd/tests/imagegd2_nullbyte_injection.phpt +++ b/ext/gd/tests/imagegd2_nullbyte_injection.phpt @@ -14,4 +14,4 @@ try { } ?> --EXPECT-- -imagegd() expects parameter 2 to be a valid path, string given +imagegd() expects argument #2 ($to) to be a valid path, string given diff --git a/ext/gd/tests/imagegd_nullbyte_injection.phpt b/ext/gd/tests/imagegd_nullbyte_injection.phpt index f53d9b5dac..e9d0af3c93 100644 --- a/ext/gd/tests/imagegd_nullbyte_injection.phpt +++ b/ext/gd/tests/imagegd_nullbyte_injection.phpt @@ -14,4 +14,4 @@ try { } ?> --EXPECT-- -imagegd() expects parameter 2 to be a valid path, string given +imagegd() expects argument #2 ($to) to be a valid path, string given diff --git a/ext/gd/tests/imagexbm_nullbyte_injection.phpt b/ext/gd/tests/imagexbm_nullbyte_injection.phpt index a24aa3c007..a84bc78eeb 100644 --- a/ext/gd/tests/imagexbm_nullbyte_injection.phpt +++ b/ext/gd/tests/imagexbm_nullbyte_injection.phpt @@ -14,4 +14,4 @@ try { } ?> --EXPECTF-- -imagexbm() expects parameter 2 to be a valid path, string given +imagexbm() expects argument #2 ($filename) to be a valid path, string given diff --git a/ext/gmp/tests/gmp_clrbit.phpt b/ext/gmp/tests/gmp_clrbit.phpt index 255b9947b9..5169cc7986 100644 --- a/ext/gmp/tests/gmp_clrbit.phpt +++ b/ext/gmp/tests/gmp_clrbit.phpt @@ -47,5 +47,5 @@ Warning: gmp_clrbit(): Index must be greater than or equal to zero in %s on line string(7) "1000000" string(7) "1000000" string(30) "238462734628347239571822592658" -gmp_clrbit() expects parameter 1 to be GMP, array given +gmp_clrbit() expects argument #1 ($a) to be of type GMP, array given Done diff --git a/ext/gmp/tests/gmp_pow.phpt b/ext/gmp/tests/gmp_pow.phpt index e9525867e1..afa8cc13e9 100644 --- a/ext/gmp/tests/gmp_pow.phpt +++ b/ext/gmp/tests/gmp_pow.phpt @@ -47,7 +47,7 @@ Warning: gmp_pow(): Negative exponent not supported in %s on line %d string(1) "0" string(14) "10240000000000" string(14) "10240000000000" -gmp_pow() expects parameter 2 to be int, array given +gmp_pow() expects argument #2 ($exp) to be of type int, array given Warning: gmp_pow(): Unable to convert variable to GMP - wrong type in %s on line %d bool(false) diff --git a/ext/gmp/tests/gmp_setbit.phpt b/ext/gmp/tests/gmp_setbit.phpt index 15270eaf7b..30d9021247 100644 --- a/ext/gmp/tests/gmp_setbit.phpt +++ b/ext/gmp/tests/gmp_setbit.phpt @@ -57,6 +57,6 @@ string(1) "7" string(12) "100008388608" string(12) "100000000000" string(12) "100000000008" -gmp_setbit() expects parameter 1 to be GMP, string given -gmp_setbit() expects parameter 1 to be GMP, array given +gmp_setbit() expects argument #1 ($a) to be of type GMP, string given +gmp_setbit() expects argument #1 ($a) to be of type GMP, array given Done diff --git a/ext/imap/tests/imap_expunge_error.phpt b/ext/imap/tests/imap_expunge_error.phpt index f1298843bb..3b6686a68d 100644 --- a/ext/imap/tests/imap_expunge_error.phpt +++ b/ext/imap/tests/imap_expunge_error.phpt @@ -22,6 +22,6 @@ Checking with no parameters Warning: imap_num_recent() expects exactly 1 parameter, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_num_recent() expects parameter 1 to be resource, string given in %s on line %d +Warning: imap_num_recent() expects argument #1 to be of type resource, string given in %s on line %d -Warning: imap_num_recent() expects parameter 1 to be resource, bool given in %s on line %d +Warning: imap_num_recent() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_gc_error.phpt b/ext/imap/tests/imap_gc_error.phpt index 9606c1ae2d..e3c05c6855 100644 --- a/ext/imap/tests/imap_gc_error.phpt +++ b/ext/imap/tests/imap_gc_error.phpt @@ -28,8 +28,8 @@ Checking with no parameters Warning: imap_gc() Expects exactly 2 parameters, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_gc() Expects parameter 1 to be resource, string given in %s on line %d +Warning: imap_gc() expects argument #1 to be of type resource, string given in %s on line %d -Warning: imap_gc() Expects parameter 1 to be resource, bool given in %s on line %d +Warning: imap_gc() expects argument #1 to be of type resource, bool given in %s on line %d Warning: imap_gc(): Invalid value for the flags parameter in %s on line %d diff --git a/ext/imap/tests/imap_headers.phpt b/ext/imap/tests/imap_headers.phpt index cd9d6d387f..73c0c52306 100644 --- a/ext/imap/tests/imap_headers.phpt +++ b/ext/imap/tests/imap_headers.phpt @@ -22,6 +22,6 @@ Checking with no parameters Warning: imap_headers() expects exactly 1 parameter, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_headers() expects parameter 1 to be resource, string given in %s on line %d +Warning: imap_headers() expects argument #1 to be of type resource, string given in %s on line %d -Warning: imap_headers() expects parameter 1 to be resource, bool given in %s on line %d +Warning: imap_headers() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_num_msg_error.phpt b/ext/imap/tests/imap_num_msg_error.phpt index fffa3ae951..e6a5650e6d 100644 --- a/ext/imap/tests/imap_num_msg_error.phpt +++ b/ext/imap/tests/imap_num_msg_error.phpt @@ -22,6 +22,6 @@ Checking with no parameters Warning: imap_num_msg() expects exactly 1 parameter, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_num_msg() expects parameter 1 to be resource, string given in %s on line %d +Warning: imap_num_msg() expects argument #1 to be of type resource, string given in %s on line %d -Warning: imap_num_msg() expects parameter 1 to be resource, bool given in %s on line %d +Warning: imap_num_msg() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_num_recent_error.phpt b/ext/imap/tests/imap_num_recent_error.phpt index b0ad5cefa0..4f4fef5054 100644 --- a/ext/imap/tests/imap_num_recent_error.phpt +++ b/ext/imap/tests/imap_num_recent_error.phpt @@ -22,6 +22,6 @@ Checking with no parameters Warning: imap_expunge() expects exactly 1 parameter, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_expunge() expects parameter 1 to be resource, string given in %s on line %d +Warning: imap_expunge() expects argument #1 to be of type resource, string given in %s on line %d -Warning: imap_expunge() expects parameter 1 to be resource, bool given in %s on line %d +Warning: imap_expunge() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_ping_error.phpt b/ext/imap/tests/imap_ping_error.phpt index 5c2498c302..918407ac06 100644 --- a/ext/imap/tests/imap_ping_error.phpt +++ b/ext/imap/tests/imap_ping_error.phpt @@ -22,6 +22,6 @@ Checking with no parameters Warning: imap_ping() expects exactly 1 parameter, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_ping() expects parameter 1 to be resource, string given in %s on line %d +Warning: imap_ping() expects argument #1 to be of type resource, string given in %s on line %d -Warning: imap_ping() expects parameter 1 to be resource, bool given in %s on line %d +Warning: imap_ping() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_timeout_basic.phpt b/ext/imap/tests/imap_timeout_basic.phpt index a69b86b595..7b83309ef7 100644 --- a/ext/imap/tests/imap_timeout_basic.phpt +++ b/ext/imap/tests/imap_timeout_basic.phpt @@ -44,7 +44,7 @@ Checking with no parameters Warning: imap_timeout() expects at least 1 parameter, 0 given in %s on line %d Checking with incorrect parameter type -Warning: imap_timeout() expects parameter 1 to be int, %s given in %s on line %d +Warning: imap_timeout() expects argument #1 to be of type int, %s given in %s on line %d GET values: int(%d) int(%d) diff --git a/ext/intl/tests/breakiter___construct_error.phpt b/ext/intl/tests/breakiter___construct_error.phpt index 8b36b4a7cf..35a145dcec 100644 --- a/ext/intl/tests/breakiter___construct_error.phpt +++ b/ext/intl/tests/breakiter___construct_error.phpt @@ -43,6 +43,6 @@ Exception: IntlRuleBasedBreakIterator::__construct() expects at least 1 paramete Exception: IntlRuleBasedBreakIterator::__construct() expects at most 2 parameters, 3 given in %s on line %d -Exception: IntlRuleBasedBreakIterator::__construct() expects parameter 2 to be bool, array given in %s on line %d +Exception: IntlRuleBasedBreakIterator::__construct() expects argument #2 ($areCompiled) to be of type bool, array given in %s on line %d Exception: IntlRuleBasedBreakIterator::__construct(): rbbi_create_instance: unable to create instance from compiled rules in %s on line %d diff --git a/ext/intl/tests/bug48227.phpt b/ext/intl/tests/bug48227.phpt index a5946e035f..28a614da03 100644 --- a/ext/intl/tests/bug48227.phpt +++ b/ext/intl/tests/bug48227.phpt @@ -16,7 +16,7 @@ foreach (['', 1, NULL, $x] as $value) { ?> --EXPECT-- -NumberFormatter::format() expects parameter 1 to be number, string given +NumberFormatter::format() expects argument #1 ($value) to be of type number, string given string(1) "1" string(1) "0" -NumberFormatter::format() expects parameter 1 to be number, object given +NumberFormatter::format() expects argument #1 ($value) to be of type number, object given diff --git a/ext/intl/tests/calendar_add_error.phpt b/ext/intl/tests/calendar_add_error.phpt index f0fd43558e..e30ed02856 100644 --- a/ext/intl/tests/calendar_add_error.phpt +++ b/ext/intl/tests/calendar_add_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_add(1, 2, 3)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_add() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_add() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_add(1, 2, 3) #1 {main} diff --git a/ext/intl/tests/calendar_before_after_error.phpt b/ext/intl/tests/calendar_before_after_error.phpt index 66fb62f224..a9bbed25e6 100644 --- a/ext/intl/tests/calendar_before_after_error.phpt +++ b/ext/intl/tests/calendar_before_after_error.phpt @@ -65,9 +65,9 @@ error: 0, IntlCalendar::after() expects exactly 1 parameter, 0 given error: 0, IntlCalendar::before() expects exactly 1 parameter, 0 given -error: 0, IntlCalendar::after() expects parameter 1 to be IntlCalendar, int given +error: 0, IntlCalendar::after() expects argument #1 ($calendar) to be of type IntlCalendar, int given -error: 0, IntlCalendar::before() expects parameter 1 to be IntlCalendar, int given +error: 0, IntlCalendar::before() expects argument #1 ($calendar) to be of type IntlCalendar, int given error: 0, IntlCalendar::after() expects exactly 1 parameter, 2 given diff --git a/ext/intl/tests/calendar_clear_error.phpt b/ext/intl/tests/calendar_clear_error.phpt index 7fec27399e..c56f9065fc 100644 --- a/ext/intl/tests/calendar_clear_error.phpt +++ b/ext/intl/tests/calendar_clear_error.phpt @@ -23,7 +23,7 @@ bool(false) Warning: intlcal_clear(): intlcal_clear: invalid field in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_clear() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_clear() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_clear(1, 2) #1 {main} diff --git a/ext/intl/tests/calendar_equals_error.phpt b/ext/intl/tests/calendar_equals_error.phpt index 04896458b2..0d4665af60 100644 --- a/ext/intl/tests/calendar_equals_error.phpt +++ b/ext/intl/tests/calendar_equals_error.phpt @@ -47,10 +47,10 @@ try { --EXPECT-- error: 0, IntlCalendar::equals() expects exactly 1 parameter, 0 given -error: 0, IntlCalendar::equals() expects parameter 1 to be IntlCalendar, object given +error: 0, IntlCalendar::equals() expects argument #1 ($calendar) to be of type IntlCalendar, object given error: 0, IntlCalendar::equals() expects exactly 1 parameter, 2 given -error: 0, intlcal_equals() expects parameter 2 to be IntlCalendar, array given +error: 0, intlcal_equals() expects argument #2 ($calendar) to be of type IntlCalendar, array given -error: 0, intlcal_equals() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_equals() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given diff --git a/ext/intl/tests/calendar_fieldDifference_error.phpt b/ext/intl/tests/calendar_fieldDifference_error.phpt index 1957dbbc2d..872fea825d 100644 --- a/ext/intl/tests/calendar_fieldDifference_error.phpt +++ b/ext/intl/tests/calendar_fieldDifference_error.phpt @@ -32,7 +32,7 @@ Warning: IntlCalendar::fieldDifference(): intlcal_field_difference: Call to ICU bool(false) intlcal_field_difference() expects exactly 3 parameters, 4 given -Fatal error: Uncaught TypeError: intlcal_field_difference() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_field_difference() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_field_difference(1, 0, 1) #1 {main} diff --git a/ext/intl/tests/calendar_getDayOfWeekType_error.phpt b/ext/intl/tests/calendar_getDayOfWeekType_error.phpt index c138be8196..644e580f11 100644 --- a/ext/intl/tests/calendar_getDayOfWeekType_error.phpt +++ b/ext/intl/tests/calendar_getDayOfWeekType_error.phpt @@ -19,7 +19,7 @@ var_dump(intlcal_get_day_of_week_type(1, 1)); Warning: IntlCalendar::getDayOfWeekType(): intlcal_get_day_of_week_type: invalid day of week in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_day_of_week_type() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_day_of_week_type(1, 1) #1 {main} diff --git a/ext/intl/tests/calendar_getErrorCode_error.phpt b/ext/intl/tests/calendar_getErrorCode_error.phpt index 9dafc0ed94..4d69bdedfd 100644 --- a/ext/intl/tests/calendar_getErrorCode_error.phpt +++ b/ext/intl/tests/calendar_getErrorCode_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_error_code(null)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_error_code() expects parameter 1 to be IntlCalendar, null given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_error_code() expects argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d Stack trace: #0 %s(%d): intlcal_get_error_code(NULL) #1 {main} diff --git a/ext/intl/tests/calendar_getErrorMessage_error.phpt b/ext/intl/tests/calendar_getErrorMessage_error.phpt index abdfef45b6..68b1ad1d6c 100644 --- a/ext/intl/tests/calendar_getErrorMessage_error.phpt +++ b/ext/intl/tests/calendar_getErrorMessage_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_error_message(null)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_error_message() expects parameter 1 to be IntlCalendar, null given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_error_message() expects argument #1 ($calendar) to be of type IntlCalendar, null given in %s:%d Stack trace: #0 %s(%d): intlcal_get_error_message(NULL) #1 {main} diff --git a/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt b/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt index f91e81dd69..22de5dadcd 100644 --- a/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt +++ b/ext/intl/tests/calendar_getFirstDayOfWeek_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_first_day_of_week(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_first_day_of_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_first_day_of_week(1) #1 {main} diff --git a/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt b/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt index 64e7530d9c..644a7eab1c 100644 --- a/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt +++ b/ext/intl/tests/calendar_getMinimalDaysInFirstWeek_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_minimal_days_in_first_week(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_minimal_days_in_first_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_minimal_days_in_first_week(1) #1 {main} diff --git a/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt b/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt index 1e2b3f85db..b49861ba49 100644 --- a/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt +++ b/ext/intl/tests/calendar_getSkipped_RepeatedWallTimeOption_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_skipped_wall_time_option(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_skipped_wall_time_option() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_skipped_wall_time_option(1) #1 {main} diff --git a/ext/intl/tests/calendar_getTimeZone_error.phpt b/ext/intl/tests/calendar_getTimeZone_error.phpt index 683d1e66ee..be9585a821 100644 --- a/ext/intl/tests/calendar_getTimeZone_error.phpt +++ b/ext/intl/tests/calendar_getTimeZone_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_time_zone(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_time_zone() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_time_zone() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_time_zone(1) #1 {main} diff --git a/ext/intl/tests/calendar_getTime_error.phpt b/ext/intl/tests/calendar_getTime_error.phpt index ca0924ee97..6c917103cb 100644 --- a/ext/intl/tests/calendar_getTime_error.phpt +++ b/ext/intl/tests/calendar_getTime_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_time(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_time() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_time(1) #1 {main} diff --git a/ext/intl/tests/calendar_getType_error.phpt b/ext/intl/tests/calendar_getType_error.phpt index 1c0e92b07f..f623bd3e8b 100644 --- a/ext/intl/tests/calendar_getType_error.phpt +++ b/ext/intl/tests/calendar_getType_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_type(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_get_type() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_type() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_type(1) #1 {main} diff --git a/ext/intl/tests/calendar_getWeekendTransition_error.phpt b/ext/intl/tests/calendar_getWeekendTransition_error.phpt index 12bfbaa5fb..b9d7f30299 100644 --- a/ext/intl/tests/calendar_getWeekendTransition_error.phpt +++ b/ext/intl/tests/calendar_getWeekendTransition_error.phpt @@ -18,7 +18,7 @@ var_dump(intlcal_get_weekend_transition(1, 1)); Warning: IntlCalendar::getWeekendTransition(): intlcal_get_weekend_transition: invalid day of week in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_get_weekend_transition() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_get_weekend_transition() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_get_weekend_transition(1, 1) #1 {main} diff --git a/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt b/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt index 211636cd63..7392294b96 100644 --- a/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt +++ b/ext/intl/tests/calendar_get_Least_Greatest_Minimum_Maximum_error.phpt @@ -71,10 +71,10 @@ bool(false) Warning: intlcal_get_minimum(): intlcal_get_minimum: invalid field in %s on line %d bool(false) -error: 0, intlcal_get_least_maximum() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_get_least_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given -error: 0, intlcal_get_maximum() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_get_maximum() expects argument #1 ($calendar) to be of type IntlCalendar, int given -error: 0, intlcal_get_greatest_minimum() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_get_greatest_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given -error: 0, intlcal_get_minimum() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_get_minimum() expects argument #1 ($calendar) to be of type IntlCalendar, int given diff --git a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt index 5921d0c0d3..5fe75fe17a 100644 --- a/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt +++ b/ext/intl/tests/calendar_get_getActualMaximum_Minumum_error2.phpt @@ -93,11 +93,11 @@ error: 2, intlcal_get_actual_maximum(): intlcal_get_actual_maximum: invalid fiel bool(false) error: 2, intlcal_get_actual_minimum(): intlcal_get_actual_minimum: invalid field bool(false) -error: 0, intlcal_get() expects parameter 2 to be int, string given +error: 0, intlcal_get() expects argument #2 ($field) to be of type int, string given -error: 0, intlcal_get_actual_maximum() expects parameter 2 to be int, string given +error: 0, intlcal_get_actual_maximum() expects argument #2 ($field) to be of type int, string given -error: 0, intlcal_get_actual_minimum() expects parameter 2 to be int, string given +error: 0, intlcal_get_actual_minimum() expects argument #2 ($field) to be of type int, string given error: 0, intlcal_get() expects exactly 2 parameters, 1 given diff --git a/ext/intl/tests/calendar_inDaylightTime_error.phpt b/ext/intl/tests/calendar_inDaylightTime_error.phpt index 4eab7b2fe4..fb4492cb08 100644 --- a/ext/intl/tests/calendar_inDaylightTime_error.phpt +++ b/ext/intl/tests/calendar_inDaylightTime_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_in_daylight_time(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_in_daylight_time() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_in_daylight_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_in_daylight_time(1) #1 {main} diff --git a/ext/intl/tests/calendar_isEquivalentTo_error.phpt b/ext/intl/tests/calendar_isEquivalentTo_error.phpt index ce1536f920..4acb3b6143 100644 --- a/ext/intl/tests/calendar_isEquivalentTo_error.phpt +++ b/ext/intl/tests/calendar_isEquivalentTo_error.phpt @@ -49,14 +49,14 @@ try { echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; } --EXPECT-- -error: 0, IntlCalendar::isEquivalentTo() expects parameter 1 to be IntlCalendar, int given +error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to be of type IntlCalendar, int given error: 0, IntlCalendar::isEquivalentTo() expects exactly 1 parameter, 2 given -error: 0, IntlCalendar::isEquivalentTo() expects parameter 1 to be IntlCalendar, int given +error: 0, IntlCalendar::isEquivalentTo() expects argument #1 ($calendar) to 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 parameter 2 to be IntlCalendar, int given +error: 0, intlcal_is_equivalent_to() expects argument #2 ($calendar) to be of type IntlCalendar, int given -error: 0, intlcal_is_equivalent_to() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_is_equivalent_to() expects argument #1 ($calendarObject) to be of type IntlCalendar, int given diff --git a/ext/intl/tests/calendar_isLenient_error.phpt b/ext/intl/tests/calendar_isLenient_error.phpt index 4edbf70e55..9e4a573908 100644 --- a/ext/intl/tests/calendar_isLenient_error.phpt +++ b/ext/intl/tests/calendar_isLenient_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_is_lenient(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_is_lenient() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_is_lenient() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_is_lenient(1) #1 {main} diff --git a/ext/intl/tests/calendar_isSet_error.phpt b/ext/intl/tests/calendar_isSet_error.phpt index 169fb2dd43..905e7c082d 100644 --- a/ext/intl/tests/calendar_isSet_error.phpt +++ b/ext/intl/tests/calendar_isSet_error.phpt @@ -19,7 +19,7 @@ var_dump(intlcal_is_set(1, 2)); Warning: IntlCalendar::isSet(): intlcal_is_set: invalid field in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_is_set() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_is_set() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_is_set(1, 2) #1 {main} diff --git a/ext/intl/tests/calendar_isWeekend_error.phpt b/ext/intl/tests/calendar_isWeekend_error.phpt index 0ed3e507b0..138939d61e 100644 --- a/ext/intl/tests/calendar_isWeekend_error.phpt +++ b/ext/intl/tests/calendar_isWeekend_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_is_weekend(1)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_is_weekend() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_is_weekend() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_is_weekend(1) #1 {main} diff --git a/ext/intl/tests/calendar_roll_error.phpt b/ext/intl/tests/calendar_roll_error.phpt index b627e83617..e37c6d24b2 100644 --- a/ext/intl/tests/calendar_roll_error.phpt +++ b/ext/intl/tests/calendar_roll_error.phpt @@ -19,7 +19,7 @@ var_dump(intlcal_roll(1, 2, 3)); Warning: IntlCalendar::roll(): intlcal_roll: invalid field in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_roll() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_roll() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_roll(1, 2, 3) #1 {main} diff --git a/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt b/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt index bb4e01ca00..abaad15708 100644 --- a/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt +++ b/ext/intl/tests/calendar_setFirstDayOfWeek_error.phpt @@ -23,7 +23,7 @@ bool(false) Warning: intlcal_set_first_day_of_week(): intlcal_set_first_day_of_week: invalid day of week in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_set_first_day_of_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_set_first_day_of_week(1, 2) #1 {main} diff --git a/ext/intl/tests/calendar_setLenient_error.phpt b/ext/intl/tests/calendar_setLenient_error.phpt index 896b2e430a..7e16004dc2 100644 --- a/ext/intl/tests/calendar_setLenient_error.phpt +++ b/ext/intl/tests/calendar_setLenient_error.phpt @@ -12,7 +12,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intlcal_set_lenient(1, false)); --EXPECTF-- -Fatal error: Uncaught TypeError: intlcal_set_lenient() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_set_lenient() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_set_lenient(1, false) #1 {main} diff --git a/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt b/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt index 9bf3cb17dc..1973018628 100644 --- a/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt +++ b/ext/intl/tests/calendar_setMinimalDaysInFirstWeek_error.phpt @@ -23,7 +23,7 @@ bool(false) Warning: intlcal_set_minimal_days_in_first_week(): intlcal_set_minimal_days_in_first_week: invalid number of days; must be between 1 and 7 in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_set_minimal_days_in_first_week() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_set_minimal_days_in_first_week(1, 2) #1 {main} diff --git a/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt b/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt index 079517b290..795d5d56f9 100644 --- a/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt +++ b/ext/intl/tests/calendar_setSkipped_RepeatedWallTimeOption_error.phpt @@ -23,7 +23,7 @@ bool(false) Warning: IntlCalendar::setRepeatedWallTimeOption(): intlcal_set_repeated_wall_time_option: invalid option in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_set_repeated_wall_time_option() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_set_repeated_wall_time_option(1, 1) #1 {main} diff --git a/ext/intl/tests/calendar_setTimeZone_error.phpt b/ext/intl/tests/calendar_setTimeZone_error.phpt index c44208d1ce..e8204c0d9f 100644 --- a/ext/intl/tests/calendar_setTimeZone_error.phpt +++ b/ext/intl/tests/calendar_setTimeZone_error.phpt @@ -47,4 +47,4 @@ error: 0, IntlCalendar::setTimeZone() expects exactly 1 parameter, 0 given error: 0, intlcal_set_time_zone() expects exactly 2 parameters, 3 given -error: 0, intlcal_set_time_zone() expects parameter 1 to be IntlCalendar, int given +error: 0, intlcal_set_time_zone() expects argument #1 ($calendar) to be of type IntlCalendar, int given diff --git a/ext/intl/tests/calendar_set_error.phpt b/ext/intl/tests/calendar_set_error.phpt index 77623147f5..397deb48da 100644 --- a/ext/intl/tests/calendar_set_error.phpt +++ b/ext/intl/tests/calendar_set_error.phpt @@ -38,7 +38,7 @@ bool(false) Warning: intlcal_set(): intlcal_set: invalid field in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intlcal_set() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_set() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_set(1, 2, 3) #1 {main} diff --git a/ext/intl/tests/calendar_toDateTime_error.phpt b/ext/intl/tests/calendar_toDateTime_error.phpt index ef799db610..e6ed8faf9c 100644 --- a/ext/intl/tests/calendar_toDateTime_error.phpt +++ b/ext/intl/tests/calendar_toDateTime_error.phpt @@ -21,7 +21,7 @@ var_dump(intlcal_to_date_time(3)); Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception in %s on line %d string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)" -Fatal error: Uncaught TypeError: intlcal_to_date_time() expects parameter 1 to be IntlCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlcal_to_date_time() expects argument #1 ($calendar) to be of type IntlCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlcal_to_date_time(3) #1 {main} diff --git a/ext/intl/tests/formatter_fail.phpt b/ext/intl/tests/formatter_fail.phpt index 4bce9184cc..8103f1f1a3 100644 --- a/ext/intl/tests/formatter_fail.phpt +++ b/ext/intl/tests/formatter_fail.phpt @@ -100,13 +100,13 @@ IntlException: Constructor failed in %s on line %d 'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR' 'numfmt_create: number formatter creation failed: U_UNSUPPORTED_ERROR' -TypeError: NumberFormatter::__construct() expects parameter 1 to be string, array given in %s on line %d +TypeError: NumberFormatter::__construct() expects argument #1 ($locale) to be of type string, array given in %s on line %d 'U_ZERO_ERROR' -TypeError: NumberFormatter::create() expects parameter 1 to be string, array given in %s on line %d +TypeError: NumberFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d 'U_ZERO_ERROR' -TypeError: numfmt_create() expects parameter 1 to be string, array given in %s on line %d +TypeError: numfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d 'U_ZERO_ERROR' IntlException: Constructor failed in %s on line %d diff --git a/ext/intl/tests/gregoriancalendar___construct_error.phpt b/ext/intl/tests/gregoriancalendar___construct_error.phpt index 41bfc49398..83de556587 100644 --- a/ext/intl/tests/gregoriancalendar___construct_error.phpt +++ b/ext/intl/tests/gregoriancalendar___construct_error.phpt @@ -38,4 +38,4 @@ Too many arguments Too many arguments No variant with 4 arguments (excluding trailing NULLs) No variant with 4 arguments (excluding trailing NULLs) -IntlGregorianCalendar::__construct() expects parameter 6 to be int, array given +IntlGregorianCalendar::__construct() expects argument #6 to be of type int, array given diff --git a/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt b/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt index 37a0315c45..2caa055388 100644 --- a/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt +++ b/ext/intl/tests/gregoriancalendar_getGregorianChange_error.phpt @@ -14,7 +14,7 @@ var_dump(intlgregcal_get_gregorian_change(1)); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change() expects parameter 1 to be IntlGregorianCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlgregcal_get_gregorian_change() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlgregcal_get_gregorian_change(1) #1 {main} diff --git a/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt b/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt index 9b7c3e0be8..6223256def 100644 --- a/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt +++ b/ext/intl/tests/gregoriancalendar_isLeapYear_error.phpt @@ -14,7 +14,7 @@ var_dump(intlgregcal_is_leap_year(1, 2)); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intlgregcal_is_leap_year() expects parameter 1 to be IntlGregorianCalendar, int given in %s:%d +Fatal error: Uncaught TypeError: intlgregcal_is_leap_year() expects argument #1 ($calendar) to be of type IntlGregorianCalendar, int given in %s:%d Stack trace: #0 %s(%d): intlgregcal_is_leap_year(1, 2) #1 {main} diff --git a/ext/intl/tests/msgfmt_fail2.phpt b/ext/intl/tests/msgfmt_fail2.phpt index 060976d19e..c02fcb35c3 100644 --- a/ext/intl/tests/msgfmt_fail2.phpt +++ b/ext/intl/tests/msgfmt_fail2.phpt @@ -136,13 +136,13 @@ IntlException: Constructor failed in %s on line %d 'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR' 'msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR' -TypeError: MessageFormatter::__construct() expects parameter 1 to be string, array given in %s on line %d +TypeError: MessageFormatter::__construct() expects argument #1 ($locale) to be of type string, array given in %s on line %d 'U_ZERO_ERROR' -TypeError: MessageFormatter::create() expects parameter 1 to be string, array given in %s on line %d +TypeError: MessageFormatter::create() expects argument #1 ($locale) to be of type string, array given in %s on line %d 'U_ZERO_ERROR' -TypeError: msgfmt_create() expects parameter 1 to be string, array given in %s on line %d +TypeError: msgfmt_create() expects argument #1 ($locale) to be of type string, array given in %s on line %d 'U_ZERO_ERROR' IntlException: Constructor failed in %s on line %d diff --git a/ext/intl/tests/timezone_getDSTSavings_error.phpt b/ext/intl/tests/timezone_getDSTSavings_error.phpt index c20da9021a..e5802d1ef4 100644 --- a/ext/intl/tests/timezone_getDSTSavings_error.phpt +++ b/ext/intl/tests/timezone_getDSTSavings_error.phpt @@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intltz_get_dst_savings(null)); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intltz_get_dst_savings() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_dst_savings() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_dst_savings(NULL) #1 {main} diff --git a/ext/intl/tests/timezone_getDisplayName_error.phpt b/ext/intl/tests/timezone_getDisplayName_error.phpt index 7f8d913a17..7861f25fe6 100644 --- a/ext/intl/tests/timezone_getDisplayName_error.phpt +++ b/ext/intl/tests/timezone_getDisplayName_error.phpt @@ -16,7 +16,7 @@ var_dump(intltz_get_display_name(null, IntlTimeZone::DISPLAY_SHORT, false, 'pt_P Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: wrong display type in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intltz_get_display_name() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_display_name() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_display_name(NULL, 1, false, 'pt_PT') #1 {main} diff --git a/ext/intl/tests/timezone_getErrorCode_error.phpt b/ext/intl/tests/timezone_getErrorCode_error.phpt index 5b4a59f17f..91d0167b8a 100644 --- a/ext/intl/tests/timezone_getErrorCode_error.phpt +++ b/ext/intl/tests/timezone_getErrorCode_error.phpt @@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intltz_get_error_code(null)); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intltz_get_error_code() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_error_code() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_error_code(NULL) #1 {main} diff --git a/ext/intl/tests/timezone_getErrorMessage_error.phpt b/ext/intl/tests/timezone_getErrorMessage_error.phpt index ffceff358c..d492a956ea 100644 --- a/ext/intl/tests/timezone_getErrorMessage_error.phpt +++ b/ext/intl/tests/timezone_getErrorMessage_error.phpt @@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING); var_dump(intltz_get_error_message(null)); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intltz_get_error_message() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_error_message() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_error_message(NULL) #1 {main} diff --git a/ext/intl/tests/timezone_getID_error.phpt b/ext/intl/tests/timezone_getID_error.phpt index 1ba7d7482f..23c4cd1726 100644 --- a/ext/intl/tests/timezone_getID_error.phpt +++ b/ext/intl/tests/timezone_getID_error.phpt @@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING); intltz_get_id(null); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intltz_get_id() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_id() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_id(NULL) #1 {main} diff --git a/ext/intl/tests/timezone_getOffset_error.phpt b/ext/intl/tests/timezone_getOffset_error.phpt index 9ca81e4650..d9715b4998 100644 --- a/ext/intl/tests/timezone_getOffset_error.phpt +++ b/ext/intl/tests/timezone_getOffset_error.phpt @@ -23,7 +23,7 @@ intltz_get_offset(null, time()*1000, false, $a, $a); Warning: IntlTimeZone::getOffset(): intltz_get_offset: error obtaining offset in %s on line %d bool(false) -Fatal error: Uncaught TypeError: intltz_get_offset() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_offset() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_offset(NULL, %d, false, NULL, NULL) #1 {main} diff --git a/ext/intl/tests/timezone_getRawOffset_error.phpt b/ext/intl/tests/timezone_getRawOffset_error.phpt index a16b62468b..5b495322a1 100644 --- a/ext/intl/tests/timezone_getRawOffset_error.phpt +++ b/ext/intl/tests/timezone_getRawOffset_error.phpt @@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING); intltz_get_raw_offset(null); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intltz_get_raw_offset() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_get_raw_offset() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_get_raw_offset(NULL) #1 {main} diff --git a/ext/intl/tests/timezone_hasSameRules_error.phpt b/ext/intl/tests/timezone_hasSameRules_error.phpt index e1cfb754ba..4f99dc6eb5 100644 --- a/ext/intl/tests/timezone_hasSameRules_error.phpt +++ b/ext/intl/tests/timezone_hasSameRules_error.phpt @@ -31,7 +31,7 @@ try { } --EXPECT-- int(0) -string(81) "IntlTimeZone::hasSameRules() expects parameter 1 to be IntlTimeZone, string given" +string(106) "IntlTimeZone::hasSameRules() expects argument #1 ($otherTimeZone) to be of type IntlTimeZone, string given" int(0) -string(74) "intltz_has_same_rules() expects parameter 1 to be IntlTimeZone, null given" +string(88) "intltz_has_same_rules() expects argument #1 ($tz) to be of type IntlTimeZone, null given" diff --git a/ext/intl/tests/timezone_toDateTimeZone_error.phpt b/ext/intl/tests/timezone_toDateTimeZone_error.phpt index 119977b124..fc07b16ad5 100644 --- a/ext/intl/tests/timezone_toDateTimeZone_error.phpt +++ b/ext/intl/tests/timezone_toDateTimeZone_error.phpt @@ -21,7 +21,7 @@ var_dump(intltz_to_date_time_zone(1)); Warning: IntlTimeZone::toDateTimeZone(): intltz_to_date_time_zone: DateTimeZone constructor threw exception in %s on line %d string(66) "DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)" -Fatal error: Uncaught TypeError: intltz_to_date_time_zone() expects parameter 1 to be IntlTimeZone, int given in %s:%d +Fatal error: Uncaught TypeError: intltz_to_date_time_zone() expects argument #1 ($tz) to be of type IntlTimeZone, int given in %s:%d Stack trace: #0 %s(%d): intltz_to_date_time_zone(1) #1 {main} diff --git a/ext/intl/tests/timezone_useDaylightTime_error.phpt b/ext/intl/tests/timezone_useDaylightTime_error.phpt index 5b37cd16b1..283e42ea23 100644 --- a/ext/intl/tests/timezone_useDaylightTime_error.phpt +++ b/ext/intl/tests/timezone_useDaylightTime_error.phpt @@ -11,7 +11,7 @@ ini_set("intl.error_level", E_WARNING); intltz_use_daylight_time(null); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: intltz_use_daylight_time() expects parameter 1 to be IntlTimeZone, null given in %s:%d +Fatal error: Uncaught TypeError: intltz_use_daylight_time() expects argument #1 ($tz) to be of type IntlTimeZone, null given in %s:%d Stack trace: #0 %s(%d): intltz_use_daylight_time(NULL) #1 {main} diff --git a/ext/intl/tests/transliterator_create_inverse_error.phpt b/ext/intl/tests/transliterator_create_inverse_error.phpt index c8d6bdc5a6..3b069cb230 100644 --- a/ext/intl/tests/transliterator_create_inverse_error.phpt +++ b/ext/intl/tests/transliterator_create_inverse_error.phpt @@ -10,7 +10,7 @@ ini_set("intl.error_level", E_WARNING); transliterator_create_inverse("jj"); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: transliterator_create_inverse() expects parameter 1 to be Transliterator, string given in %s:%d +Fatal error: Uncaught TypeError: transliterator_create_inverse() expects argument #1 ($orig_trans) to be of type Transliterator, string given in %s:%d Stack trace: #0 %s(%d): transliterator_create_inverse('jj') #1 {main} diff --git a/ext/intl/tests/transliterator_get_error_code_error.phpt b/ext/intl/tests/transliterator_get_error_code_error.phpt index ed766fd968..bfd3c1b118 100644 --- a/ext/intl/tests/transliterator_get_error_code_error.phpt +++ b/ext/intl/tests/transliterator_get_error_code_error.phpt @@ -8,7 +8,7 @@ ini_set("intl.error_level", E_WARNING); echo transliterator_get_error_code(array()), "\n"; ?> --EXPECTF-- -Fatal error: Uncaught TypeError: transliterator_get_error_code() expects parameter 1 to be Transliterator, array given in %s:%d +Fatal error: Uncaught TypeError: transliterator_get_error_code() expects argument #1 ($trans) to be of type Transliterator, array given in %s:%d Stack trace: #0 %s(%d): transliterator_get_error_code(Array) #1 {main} diff --git a/ext/intl/tests/transliterator_get_error_message_error.phpt b/ext/intl/tests/transliterator_get_error_message_error.phpt index 04746c7a5f..543480d55e 100644 --- a/ext/intl/tests/transliterator_get_error_message_error.phpt +++ b/ext/intl/tests/transliterator_get_error_message_error.phpt @@ -8,7 +8,7 @@ ini_set("intl.error_level", E_WARNING); echo transliterator_get_error_message(array()), "\n"; ?> --EXPECTF-- -Fatal error: Uncaught TypeError: transliterator_get_error_message() expects parameter 1 to be Transliterator, array given in %s:%d +Fatal error: Uncaught TypeError: transliterator_get_error_message() expects argument #1 ($trans) to be of type Transliterator, array given in %s:%d Stack trace: #0 %s(%d): transliterator_get_error_message(Array) #1 {main} diff --git a/ext/libxml/tests/004.phpt b/ext/libxml/tests/004.phpt index e3daa41d24..ad05ca1b9f 100644 --- a/ext/libxml/tests/004.phpt +++ b/ext/libxml/tests/004.phpt @@ -27,16 +27,16 @@ foreach ($ctxs as $ctx) { echo "Done\n"; ?> ---EXPECTF-- -libxml_set_streams_context() expects parameter 1 to be resource, null given +--EXPECT-- +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, null given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, string given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, int given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, int given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, object given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, object given bool(true) -libxml_set_streams_context() expects parameter 1 to be resource, array given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, array given bool(true) NULL bool(true) diff --git a/ext/libxml/tests/bug63389.phpt b/ext/libxml/tests/bug63389.phpt index 92c3e83567..12b3a032a5 100644 --- a/ext/libxml/tests/bug63389.phpt +++ b/ext/libxml/tests/bug63389.phpt @@ -14,5 +14,5 @@ try { echo "okey"; ?> --EXPECT-- -libxml_set_streams_context() expects parameter 1 to be resource, string given +libxml_set_streams_context() expects argument #1 ($context) to be of type resource, string given okey diff --git a/ext/mbstring/tests/mb_ereg1.phpt b/ext/mbstring/tests/mb_ereg1.phpt index 875426a6c7..3f6c1132d1 100644 --- a/ext/mbstring/tests/mb_ereg1.phpt +++ b/ext/mbstring/tests/mb_ereg1.phpt @@ -45,7 +45,7 @@ array(3) { array(0) { } } -mb_ereg() expects parameter 1 to be string, array given +mb_ereg() expects argument #1 ($pattern) to be of type string, array given array(3) { [0]=> array(0) { @@ -55,7 +55,7 @@ array(3) { [2]=> &string(0) "" } -mb_ereg() expects parameter 2 to be string, array given +mb_ereg() expects argument #2 ($string) to be of type string, array given array(3) { [0]=> int(1) diff --git a/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt b/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt index 127777fc6a..0cd2696c5a 100644 --- a/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt +++ b/ext/mysqli/tests/mysqli_class_mysqli_warning.phpt @@ -96,7 +96,7 @@ if (!$TEST_EXPERIMENTAL) --EXPECTF-- Warning: Wrong parameter count for mysqli_warning::mysqli_warning() in %s on line %d -Warning: mysqli_warning::mysqli_warning() expects parameter 1 to be object, null given in %s on line %d +Warning: mysqli_warning::mysqli_warning() expects argument #1 to be of type object, null given in %s on line %d Warning: Wrong parameter count for mysqli_warning::mysqli_warning() in %s on line %d diff --git a/ext/mysqli/tests/mysqli_embedded_connect.phpt b/ext/mysqli/tests/mysqli_embedded_connect.phpt index 7c6ca78ad4..ecd096953f 100644 --- a/ext/mysqli/tests/mysqli_embedded_connect.phpt +++ b/ext/mysqli/tests/mysqli_embedded_connect.phpt @@ -28,5 +28,5 @@ require_once('skipifconnectfailure.inc'); print "done!"; ?> --EXPECTF-- -Warning: mysqli_embedded_connect() expects parameter 1 to be mysqli, null given in %s on line %d +Warning: mysqli_embedded_connect() expects argument #1 to be of type mysqli, null given in %s on line %d done! diff --git a/ext/mysqli/tests/mysqli_fetch_object.phpt b/ext/mysqli/tests/mysqli_fetch_object.phpt index cc6d4c8d14..f1bbab7e39 100644 --- a/ext/mysqli/tests/mysqli_fetch_object.phpt +++ b/ext/mysqli/tests/mysqli_fetch_object.phpt @@ -145,6 +145,6 @@ Exception: Too few arguments to function mysqli_fetch_object_construct::__constr NULL NULL mysqli_result object is already closed -[0] mysqli_fetch_object() expects parameter 3 to be array, string given in %s on line %d +[0] mysqli_fetch_object() expects argument #3 ($params) to be of type array, string given in %s on line %d Fatal error: Class 'this_class_does_not_exist' not found in %s on line %d diff --git a/ext/mysqli/tests/mysqli_fetch_object_oo.phpt b/ext/mysqli/tests/mysqli_fetch_object_oo.phpt index 0e90b29e71..82e1814050 100644 --- a/ext/mysqli/tests/mysqli_fetch_object_oo.phpt +++ b/ext/mysqli/tests/mysqli_fetch_object_oo.phpt @@ -130,9 +130,9 @@ require_once('skipifconnectfailure.inc'); ?> --EXPECTF-- mysqli object is not fully initialized -[0] mysqli_result::fetch_object() expects parameter 1 to be string, object given in %s on line %d +[0] mysqli_result::fetch_object() expects argument #1 ($class_name) to be of type string, object given 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 parameter 2 to be array, null given in %s on line %d +[0] mysqli_result::fetch_object() expects argument #2 ($params) to 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 NULL diff --git a/ext/oci8/tests/bug51291_1.phpt b/ext/oci8/tests/bug51291_1.phpt index 5d46a370f5..4875b1dc17 100644 --- a/ext/oci8/tests/bug51291_1.phpt +++ b/ext/oci8/tests/bug51291_1.phpt @@ -165,7 +165,7 @@ array(4) { Test 2 - Parse -Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d +Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d bool(false) array(4) { ["code"]=> @@ -180,7 +180,7 @@ array(4) { NULL 2nd call -Warning: oci_error() expects parameter 1 to be resource, bool%sgiven in %sbug51291_1.php on line %d +Warning: oci_error() expects argument #1 to be of type resource, bool%sgiven in %sbug51291_1.php on line %d bool(false) array(4) { ["code"]=> diff --git a/ext/oci8/tests/conn_attr_4.phpt b/ext/oci8/tests/conn_attr_4.phpt index 7a7f5269eb..14bdfb73d6 100644 --- a/ext/oci8/tests/conn_attr_4.phpt +++ b/ext/oci8/tests/conn_attr_4.phpt @@ -79,37 +79,37 @@ echo "Done\n"; Invalid Connection resource -Warning: oci_set_action() expects parameter 1 to be resource, null given in %s on line %d +Warning: oci_set_action() expects argument #1 to be of type resource, null given in %s on line %d NULL Invalid Connection resource 2 -Warning: oci_set_client_info() expects parameter 1 to be resource, %s given in %s on line %d +Warning: oci_set_client_info() expects argument #1 to be of type resource, %s given in %s on line %d NULL -Invalid Value +Invalid Value -Warning: oci_set_action() expects parameter 2 to be %s, resource given in %s on line %d +Warning: oci_set_action() expects argument #2 to be of type %s, resource given in %s on line %d NULL -Set Values multiple times +Set Values multiple times bool(true) bool(true) bool(true) bool(true) The value of ACTION is ACTION1 -Setting to different values +Setting to different values Values set successfully to 1000 The value of MODULE is 1000 The value of ACTION is 1000 The value of CLIENT_INFO is 1000 The value of CLIENT_IDENTIFIER is 1000 -Values set successfully to -The value of MODULE is -The value of ACTION is -The value of CLIENT_INFO is -The value of CLIENT_IDENTIFIER is +Values set successfully to +The value of MODULE is +The value of ACTION is +The value of CLIENT_INFO is +The value of CLIENT_IDENTIFIER is Warning: oci_set_module_name(): ORA-24960: %s OCI_ATTR_MODULE %s on line %d diff --git a/ext/oci8/tests/lob_002.phpt b/ext/oci8/tests/lob_002.phpt index 156fd668d3..e69de8e0db 100644 --- a/ext/oci8/tests/lob_002.phpt +++ b/ext/oci8/tests/lob_002.phpt @@ -60,13 +60,13 @@ object(OCI-Lob)#%d (1) { } int(0) -Warning: OCI-Lob::write() expects parameter 2 to be int%s string given in %slob_002.php on line %d +Warning: OCI-Lob::write() expects argument #2 to be of type int%s string given in %slob_002.php on line %d NULL int(4) int(40000) int(40004) -Warning: OCI-Lob::seek() expects parameter 1 to be int%s string given in %slob_002.php on line %d +Warning: OCI-Lob::seek() expects argument #1 to be of type int%s string given in %slob_002.php on line %d NULL bool(false) int(40004) diff --git a/ext/oci8/tests/lob_021.phpt b/ext/oci8/tests/lob_021.phpt index 609003603b..0745c76c3c 100644 --- a/ext/oci8/tests/lob_021.phpt +++ b/ext/oci8/tests/lob_021.phpt @@ -61,7 +61,7 @@ bool(false) Warning: oci_free_descriptor(): %s is not a valid oci8 descriptor resource in %s on line %d bool(false) -Warning: oci_free_descriptor() expects parameter 1 to be OCI-Lob, object given in %s on line %d +Warning: oci_free_descriptor() expects argument #1 to be of type OCI-Lob, object given in %s on line %d NULL Warning: oci_free_descriptor(): Unable to find descriptor property in %s on line %d diff --git a/ext/oci8/tests/lob_026.phpt b/ext/oci8/tests/lob_026.phpt index acada8a9d3..2a39db46d6 100644 --- a/ext/oci8/tests/lob_026.phpt +++ b/ext/oci8/tests/lob_026.phpt @@ -73,7 +73,7 @@ NULL bool(true) int(3) -Warning: oci_lob_seek() expects parameter 1 to be OCI-Lob, int%sgiven in %s on line %d +Warning: oci_lob_seek() expects argument #1 to be of type OCI-Lob, int%sgiven in %s on line %d NULL bool(true) array(2) { diff --git a/ext/oci8/tests/null_byte_1.phpt b/ext/oci8/tests/null_byte_1.phpt index 5c8075cc81..e5857450f8 100644 --- a/ext/oci8/tests/null_byte_1.phpt +++ b/ext/oci8/tests/null_byte_1.phpt @@ -35,9 +35,9 @@ var_dump($r); --EXPECTF-- Test 1: Import -Warning: OCI-Lob::savefile() expects parameter 1 to be a valid path, string given in %snull_byte_1.php on line %d +Warning: OCI-Lob::savefile() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d NULL Test 2: Export -Warning: OCI-Lob::export() expects parameter 1 to be a valid path, string given in %snull_byte_1.php on line %d +Warning: OCI-Lob::export() expects argument #1 ($function) to be a valid path, string given in %snull_byte_1.php on line %d NULL diff --git a/ext/oci8/tests/privileged_connect.phpt b/ext/oci8/tests/privileged_connect.phpt index 5d9fbb0a45..ca785aa361 100644 --- a/ext/oci8/tests/privileged_connect.phpt +++ b/ext/oci8/tests/privileged_connect.phpt @@ -21,5 +21,5 @@ Warning: oci_connect(): Privileged connect is disabled. Enable oci8.privileged_c Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d -Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d +Warning: oci_connect() expects argument #5 to be of type int%s string given in %s on line %d Done diff --git a/ext/oci8/tests/privileged_connect1.phpt b/ext/oci8/tests/privileged_connect1.phpt index 181dba5f1d..aaa819ca92 100644 --- a/ext/oci8/tests/privileged_connect1.phpt +++ b/ext/oci8/tests/privileged_connect1.phpt @@ -23,5 +23,5 @@ Warning: oci_connect(): ORA-%d: %s in %s on line %d Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d -Warning: oci_connect() expects parameter 5 to be int%s string given in %s on line %d +Warning: oci_connect() expects argument #5 to be of type int%s string given in %s on line %d Done diff --git a/ext/odbc/tests/odbc_exec_001.phpt b/ext/odbc/tests/odbc_exec_001.phpt index dd1fa26a67..195520484f 100644 --- a/ext/odbc/tests/odbc_exec_001.phpt +++ b/ext/odbc/tests/odbc_exec_001.phpt @@ -28,11 +28,11 @@ odbc_exec($conn, NULL); ?> --EXPECTF-- -Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d +Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d Warning: odbc_exec(): SQL error: %s in %s on line %d -Warning: odbc_exec() expects parameter 3 to be int, string given in %s on line %d +Warning: odbc_exec() expects argument #3 to be of type int, string given in %s on line %d Warning: odbc_exec(): SQL error: %s in %s on line %d diff --git a/ext/opcache/tests/iterable_type_optimization.phpt b/ext/opcache/tests/iterable_type_optimization.phpt index b5247cd69c..26d9971d37 100644 --- a/ext/opcache/tests/iterable_type_optimization.phpt +++ b/ext/opcache/tests/iterable_type_optimization.phpt @@ -10,7 +10,7 @@ test(new stdClass); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: Return value of test() must be iterable, object returned in %s:%d +Fatal error: Uncaught TypeError: Return value of test() must be of type iterable, object returned in %s:%d Stack trace: #0 %s(%d): test(Object(stdClass)) #1 {main} diff --git a/ext/opcache/tests/ssa_bug_003.phpt b/ext/opcache/tests/ssa_bug_003.phpt index c8014383ca..b53d24d482 100644 --- a/ext/opcache/tests/ssa_bug_003.phpt +++ b/ext/opcache/tests/ssa_bug_003.phpt @@ -36,5 +36,5 @@ try { ?> --EXPECT-- -Error: Return value of test1() must be callable, string returned -Error: Return value of test2() must be an instance of Foo, instance of stdClass returned +Error: Return value of test1() must be of type callable, string returned +Error: Return value of test2() must be of type Foo, stdClass returned diff --git a/ext/openssl/tests/openssl_csr_export_bacis.phpt b/ext/openssl/tests/openssl_csr_export_bacis.phpt index 3a252d8a8f..714b9f7092 100644 --- a/ext/openssl/tests/openssl_csr_export_bacis.phpt +++ b/ext/openssl/tests/openssl_csr_export_bacis.phpt @@ -41,6 +41,6 @@ var_dump(openssl_csr_export($csr, $output, false)); ?> --EXPECT-- bool(true) -openssl_csr_export() expects parameter 1 to be resource, string given +openssl_csr_export() expects argument #1 ($csr) to be of type resource, string given openssl_csr_export(): supplied resource is not a valid OpenSSL X.509 CSR resource bool(true) diff --git a/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt b/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt index 57092293db..907b7fd844 100644 --- a/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt +++ b/ext/openssl/tests/openssl_csr_export_to_file_basic.phpt @@ -76,6 +76,6 @@ sfBgVeqg0P4SWez5fHXqBNcjMdMI5f0bikcDZSIfTHS8FX+PMurLBC8UPB0YNIOl JViHkCA9x6m8RJXAFvqmgLlWlUzbDv/cRrDfjWjR -----END CERTIFICATE REQUEST----- " -openssl_csr_export_to_file() expects parameter 1 to be resource, string given +openssl_csr_export_to_file() expects argument #1 ($csr) to be of type resource, string given openssl_csr_export_to_file(): supplied resource is not a valid OpenSSL X.509 CSR resource bool(true) diff --git a/ext/openssl/tests/openssl_pkey_new_error.phpt b/ext/openssl/tests/openssl_pkey_new_error.phpt index 7fada8239a..1a6235db70 100644 --- a/ext/openssl/tests/openssl_pkey_new_error.phpt +++ b/ext/openssl/tests/openssl_pkey_new_error.phpt @@ -28,6 +28,6 @@ try { } ?> --EXPECT-- -openssl_pkey_get_details() expects parameter 1 to be resource, bool given -openssl_pkey_get_details() expects parameter 1 to be resource, bool given -openssl_pkey_get_details() expects parameter 1 to be resource, bool given +openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given +openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given +openssl_pkey_get_details() expects argument #1 ($key) to be of type resource, bool given diff --git a/ext/pcre/tests/preg_grep_error1.phpt b/ext/pcre/tests/preg_grep_error1.phpt index 1bf23bb640..5b191a72dc 100644 --- a/ext/pcre/tests/preg_grep_error1.phpt +++ b/ext/pcre/tests/preg_grep_error1.phpt @@ -57,7 +57,7 @@ Warning: preg_grep(): Unknown modifier 'F' in %spreg_grep_error1.php on line %d bool(false) Arg value is Array -preg_grep() expects parameter 1 to be string, array given +preg_grep() expects argument #1 ($regex) to be of type string, array given Arg value is /[a-zA-Z]/ array(2) { @@ -66,5 +66,5 @@ array(2) { [2]=> string(4) "test" } -preg_grep() expects parameter 1 to be string, object given +preg_grep() expects argument #1 ($regex) to be of type string, object given Done diff --git a/ext/pcre/tests/preg_match_all_error1.phpt b/ext/pcre/tests/preg_match_all_error1.phpt index 6a5a0055a9..3a65fca852 100644 --- a/ext/pcre/tests/preg_match_all_error1.phpt +++ b/ext/pcre/tests/preg_match_all_error1.phpt @@ -62,7 +62,7 @@ bool(false) NULL Arg value is Array -preg_match_all() expects parameter 1 to be string, array given +preg_match_all() expects argument #1 ($pattern) to be of type string, array given NULL Arg value is /[a-zA-Z]/ @@ -80,5 +80,5 @@ array(1) { string(1) "t" } } -preg_match_all() expects parameter 1 to be string, object given +preg_match_all() expects argument #1 ($pattern) to be of type string, object given NULL diff --git a/ext/pcre/tests/preg_match_all_error2.phpt b/ext/pcre/tests/preg_match_all_error2.phpt index 29762739c4..98e70385c0 100644 --- a/ext/pcre/tests/preg_match_all_error2.phpt +++ b/ext/pcre/tests/preg_match_all_error2.phpt @@ -23,11 +23,11 @@ foreach($input as $value) { } echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing preg_match_all() : error conditions *** Arg value is: Array -preg_match_all() expects parameter 2 to be string, array given +preg_match_all() expects argument #2 ($subject) to be of type string, array given NULL Arg value is: test diff --git a/ext/pcre/tests/preg_match_error1.phpt b/ext/pcre/tests/preg_match_error1.phpt index 2f1b39d67f..3dbb7c2f03 100644 --- a/ext/pcre/tests/preg_match_error1.phpt +++ b/ext/pcre/tests/preg_match_error1.phpt @@ -56,8 +56,8 @@ Warning: preg_match(): Unknown modifier 'F' in %spreg_match_error1.php on line % bool(false) Arg value is Array -preg_match() expects parameter 1 to be string, array given +preg_match() expects argument #1 ($pattern) to be of type string, array given Arg value is /[a-zA-Z]/ int(1) -preg_match() expects parameter 1 to be string, object given +preg_match() expects argument #1 ($pattern) to be of type string, object given diff --git a/ext/pcre/tests/preg_match_error2.phpt b/ext/pcre/tests/preg_match_error2.phpt index 18a42c6445..bc48facc0a 100644 --- a/ext/pcre/tests/preg_match_error2.phpt +++ b/ext/pcre/tests/preg_match_error2.phpt @@ -28,13 +28,13 @@ try { } echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing preg_match() : error conditions *** Arg value is: this is a string int(1) Arg value is: Array -preg_match() expects parameter 2 to be string, array given -preg_match() expects parameter 2 to be string, object given +preg_match() expects argument #2 ($subject) to be of type string, array given +preg_match() expects argument #2 ($subject) to be of type string, object given Done diff --git a/ext/pcre/tests/preg_split_error1.phpt b/ext/pcre/tests/preg_split_error1.phpt index b69caf1aed..0ec80d99f1 100644 --- a/ext/pcre/tests/preg_split_error1.phpt +++ b/ext/pcre/tests/preg_split_error1.phpt @@ -56,7 +56,7 @@ Warning: preg_split(): Unknown modifier 'F' in %spreg_split_error1.php on line % bool(false) Arg value is Array -preg_split() expects parameter 1 to be string, array given +preg_split() expects argument #1 ($pattern) to be of type string, array given Arg value is /[a-zA-Z]/ array(3) { @@ -67,4 +67,4 @@ array(3) { [2]=> string(4) " 5 6" } -preg_split() expects parameter 1 to be string, object given +preg_split() expects argument #1 ($pattern) to be of type string, object given diff --git a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt index 4f3a19c8be..b2ee84a945 100644 --- a/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt +++ b/ext/pdo_oci/tests/pdo_oci_stmt_getcolumnmeta.phpt @@ -47,7 +47,7 @@ SQL if (false !== ($tmp = @$stmt->getColumnMeta(-1))) printf("[004] Expecting false got %s\n", var_export($tmp, true)); - // Warning: PDOStatement::getColumnMeta() expects parameter 1 to be int, array given in + // Warning: PDOStatement::getColumnMeta() expects argument #1 to be of type int, array given in if (false !== ($tmp = @$stmt->getColumnMeta(array()))) printf("[005] Expecting false got %s\n", var_export($tmp, true)); diff --git a/ext/phar/tests/badparameters.phpt b/ext/phar/tests/badparameters.phpt index 3ee49890c9..e086e89c28 100644 --- a/ext/phar/tests/badparameters.phpt +++ b/ext/phar/tests/badparameters.phpt @@ -228,40 +228,40 @@ try { } ?> --EXPECTF-- -Phar::mungServer() expects parameter 1 to be array, string given -Phar::createDefaultStub() expects parameter 1 to be a valid path, array given -Phar::loadPhar() expects parameter 1 to be a valid path, array given -Phar::canCompress() expects parameter 1 to be int, string given -Phar::__construct() expects parameter 1 to be a valid path, array given -Phar::convertToExecutable() expects parameter 1 to be int, array given -Phar::convertToData() expects parameter 1 to be int, array given -PharData::delete() expects parameter 1 to be a valid path, array given +Phar::mungServer() expects argument #1 ($munglist) to be of type array, string given +Phar::createDefaultStub() expects argument #1 ($index) to be a valid path, array given +Phar::loadPhar() expects argument #1 ($filename) to be a valid path, array given +Phar::canCompress() expects argument #1 ($method) to be of type int, string given +Phar::__construct() expects argument #1 ($filename) to be a valid path, array given +Phar::convertToExecutable() expects argument #1 ($format) to be of type int, array given +Phar::convertToData() expects argument #1 ($format) to be of type int, array given +PharData::delete() expects argument #1 ($entry) to be a valid path, array given Cannot write out phar archive, phar is read-only Entry oops does not exist and cannot be deleted %sfrontcontroller10.phar Cannot write out phar archive, phar is read-only A Phar alias cannot be set in a plain tar archive -Phar::setAlias() expects parameter 1 to be string, array given +Phar::setAlias() expects argument #1 ($alias) to be of type string, array given Cannot change stub, phar is read-only A Phar stub cannot be set in a plain tar archive -Phar::setStub() expects parameter 1 to be string, array given +Phar::setStub() expects argument #1 ($newstub) to be of type string, array given A Phar stub cannot be set in a plain tar archive -Phar::setDefaultStub() expects parameter 1 to be string, array given +Phar::setDefaultStub() expects argument #1 ($index) to be of type string, array given Cannot change stub: phar.readonly=1 Cannot set signature algorithm, phar is read-only -Phar::compress() expects parameter 1 to be int, array given +Phar::compress() expects argument #1 ($compression_type) to be of type int, array given Cannot compress phar archive, phar is read-only -Phar::compressFiles() expects parameter 1 to be int, array given +Phar::compressFiles() expects argument #1 ($compression_type) to be of type int, array given Phar is readonly, cannot change compression Phar::copy() expects exactly 2 parameters, 1 given Cannot copy "a" to "b", phar is read-only -Phar::offsetExists() expects parameter 1 to be a valid path, array given -Phar::offsetGet() expects parameter 1 to be a valid path, array given +Phar::offsetExists() expects argument #1 ($entry) to be a valid path, array given +Phar::offsetGet() expects argument #1 ($entry) to be a valid path, array given Phar::offsetSet() expects exactly 2 parameters, 1 given -PharData::offsetUnset() expects parameter 1 to be a valid path, array given +PharData::offsetUnset() expects argument #1 ($entry) to be a valid path, array given Write operations disabled by the php.ini setting phar.readonly -Phar::addEmptyDir() expects parameter 1 to be a valid path, array given -Phar::addFile() expects parameter 1 to be a valid path, array given +Phar::addEmptyDir() expects argument #1 ($dirname) to be a valid path, array given +Phar::addFile() expects argument #1 ($filename) to be a valid path, array given Phar::addFromString() expects exactly 2 parameters, 1 given Write operations disabled by the php.ini setting phar.readonly Phar::setMetadata() expects exactly 1 parameter, 2 given diff --git a/ext/phar/tests/bug64931/bug64931.phpt b/ext/phar/tests/bug64931/bug64931.phpt index 6bf3bea7c3..8c25692c3f 100644 --- a/ext/phar/tests/bug64931/bug64931.phpt +++ b/ext/phar/tests/bug64931/bug64931.phpt @@ -47,10 +47,10 @@ try { <?php @unlink(__DIR__."/bug64931.phar"); ?> ---EXPECTF-- +--EXPECT-- Test CAUGHT: Cannot create any files in magic ".phar" directory CAUGHT: Cannot create any files in magic ".phar" directory CAUGHT: Cannot create any files in magic ".phar" directory CAUGHT: Cannot create any files in magic ".phar" directory -CAUGHT: Phar::addFromString() expects parameter 1 to be a valid path, string given +CAUGHT: Phar::addFromString() expects argument #1 ($localname) to be a valid path, string given diff --git a/ext/phar/tests/create_path_error.phpt b/ext/phar/tests/create_path_error.phpt index ff4fa4530a..458ec8b6f5 100644 --- a/ext/phar/tests/create_path_error.phpt +++ b/ext/phar/tests/create_path_error.phpt @@ -78,4 +78,4 @@ string(5) "query" 11:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character 12:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character 13:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character -Exception: Phar::offsetSet() expects parameter 1 to be a valid path, string given +Exception: Phar::offsetSet() expects argument #1 ($entry) to be a valid path, string given diff --git a/ext/phar/tests/fgc_edgecases.phpt b/ext/phar/tests/fgc_edgecases.phpt index aa037ca5f8..861933ba4e 100644 --- a/ext/phar/tests/fgc_edgecases.phpt +++ b/ext/phar/tests/fgc_edgecases.phpt @@ -49,7 +49,7 @@ include $pname . '/foo/hi'; <?php rmdir(__DIR__ . '/poo'); ?> <?php unlink(__DIR__ . '/fgc_edgecases.txt'); ?> --EXPECTF-- -file_get_contents() expects parameter 1 to be a valid path, array given +file_get_contents() expects argument #1 ($filename) to be a valid path, array given blah <?php echo file_get_contents("foo/" . basename(__FILE__)); diff --git a/ext/phar/tests/fopen_edgecases2.phpt b/ext/phar/tests/fopen_edgecases2.phpt index 5b520ad0ca..548f50a362 100644 --- a/ext/phar/tests/fopen_edgecases2.phpt +++ b/ext/phar/tests/fopen_edgecases2.phpt @@ -38,7 +38,7 @@ include $pname . '/foo/hi'; <?php rmdir(__DIR__ . '/poo'); ?> <?php unlink(__DIR__ . '/fopen_edgecases2.txt'); ?> --EXPECTF-- -fopen() expects parameter 1 to be a valid path, array given +fopen() expects argument #1 ($filename) to be a valid path, array given blah test diff --git a/ext/phar/tests/opendir_edgecases.phpt b/ext/phar/tests/opendir_edgecases.phpt index 30c137baf2..59deca53c8 100644 --- a/ext/phar/tests/opendir_edgecases.phpt +++ b/ext/phar/tests/opendir_edgecases.phpt @@ -55,7 +55,7 @@ include $pname . '/foo'; <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> <?php rmdir(__DIR__ . '/poo'); --EXPECTF-- -opendir() expects parameter 1 to be a valid path, array given +opendir() expects argument #1 ($path) to be a valid path, array given . .. foo diff --git a/ext/phar/tests/phar_extract.phpt b/ext/phar/tests/phar_extract.phpt index a354e0a608..e5bba5d757 100644 --- a/ext/phar/tests/phar_extract.phpt +++ b/ext/phar/tests/phar_extract.phpt @@ -142,7 +142,7 @@ string(3) "hi3" string(3) "hi2" bool(false) Invalid argument, expected a filename (string) or array of filenames -Phar::extractTo() expects parameter 1 to be a valid path, array given +Phar::extractTo() expects argument #1 ($pathto) to be a valid path, array given Invalid argument, extraction path must be non-zero length Unable to use path "%soops" for extraction, it is a file, must be a directory Invalid argument, array of filenames to extract contains non-string value diff --git a/ext/phar/tests/phar_oo_006.phpt b/ext/phar/tests/phar_oo_006.phpt index 4b1201cc24..5de390600f 100644 --- a/ext/phar/tests/phar_oo_006.phpt +++ b/ext/phar/tests/phar_oo_006.phpt @@ -40,7 +40,7 @@ unlink(__DIR__ . '/files/phar_oo_006.phar.php'); __halt_compiler(); ?> --EXPECTF-- -SplFileInfo::setFileClass() expects parameter 1 to be a class name derived from SplFileObject, 'SplFileInfo' given +SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'SplFileInfo' given MyFile::__construct(phar://%s/a.php) a.php MyFile::__construct(phar://%s/b/c.php) diff --git a/ext/phar/tests/phar_unlinkarchive.phpt b/ext/phar/tests/phar_unlinkarchive.phpt index 8789c37e79..70b251257d 100644 --- a/ext/phar/tests/phar_unlinkarchive.phpt +++ b/ext/phar/tests/phar_unlinkarchive.phpt @@ -92,7 +92,7 @@ __HALT_COMPILER(); Unknown phar archive "" Unknown phar archive "%sphar_unlinkarchive.phar" Unknown phar archive "%sphar_unlinkarchive.phar.tar": internal corruption of phar "%sphar_unlinkarchive.phar.tar" (truncated entry) -Phar::unlinkArchive() expects parameter 1 to be a valid path, array given +Phar::unlinkArchive() expects argument #1 ($archive) to be a valid path, array given bool(false) string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>" phar archive "%sphar_unlinkarchive.phar" has open file handles or objects. fclose() all file handles, and unset() all objects prior to calling unlinkArchive() diff --git a/ext/phar/tests/pharfileinfo_construct.phpt b/ext/phar/tests/pharfileinfo_construct.phpt index 4597660d80..5ac63d82f5 100644 --- a/ext/phar/tests/pharfileinfo_construct.phpt +++ b/ext/phar/tests/pharfileinfo_construct.phpt @@ -49,7 +49,7 @@ echo $e->getMessage() . "\n"; <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?> --EXPECTF-- Cannot open phar file 'phar://%spharfileinfo_construct.phar/oops': internal corruption of phar "%spharfileinfo_construct.phar" (truncated entry) -PharFileInfo::__construct() expects parameter 1 to be a valid path, array given +PharFileInfo::__construct() expects argument #1 ($filename) to be a valid path, array given Cannot access phar file entry '%s' in archive '%s' Cannot call constructor twice '%s' is not a valid phar archive URL (must have at least phar://filename.phar) diff --git a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt index cebb5cd089..721ad337cc 100644 --- a/ext/reflection/tests/ReflectionClass_getMethod_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethod_002.phpt @@ -62,5 +62,5 @@ Method does not exist Method 1 does not exist Method 1.5 does not exist Method 1 does not exist -ReflectionClass::getMethod() expects parameter 1 to be string, array given -ReflectionClass::getMethod() expects parameter 1 to be string, object given +ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, array given +ReflectionClass::getMethod() expects argument #1 ($name) to be of type string, object given diff --git a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt index 904162b263..dd3b5f33a2 100644 --- a/ext/reflection/tests/ReflectionClass_getProperty_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperty_002.phpt @@ -60,5 +60,5 @@ Property does not exist Property 1 does not exist Property 1.5 does not exist Property 1 does not exist -ReflectionClass::getProperty() expects parameter 1 to be string, array given -ReflectionClass::getProperty() expects parameter 1 to be string, object given +ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, array given +ReflectionClass::getProperty() expects argument #1 ($name) to be of type string, object given diff --git a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt index 672c7f3e1d..2cdbcebefb 100644 --- a/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt +++ b/ext/reflection/tests/ReflectionClass_getStaticPropertyValue_002.phpt @@ -43,4 +43,4 @@ ReflectionClass::getStaticPropertyValue() expects at most 2 parameters, 3 given ReflectionClass::getStaticPropertyValue() expects at least 1 parameter, 0 given Class C does not have a property named string(3) "def" -ReflectionClass::getStaticPropertyValue() expects parameter 1 to be string, array given +ReflectionClass::getStaticPropertyValue() expects argument #1 ($name) to be of type string, array given diff --git a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt index 3295f06108..1805607e19 100644 --- a/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt +++ b/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt @@ -16,7 +16,7 @@ var_dump($a); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs() expects parameter 1 to be array, string given in %s:%d +Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs() expects argument #1 ($args) to be of type array, string given in %s:%d Stack trace: #0 %s(%d): ReflectionClass->newInstanceArgs('x') #1 {main} diff --git a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt index 9e4c69b489..87cb894ea8 100644 --- a/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt +++ b/ext/reflection/tests/ReflectionClass_setStaticPropertyValue_002.phpt @@ -49,4 +49,4 @@ ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 0 given ReflectionClass::setStaticPropertyValue() expects exactly 2 parameters, 1 given Class C does not have a property named Class C does not have a property named 1.5 -ReflectionClass::setStaticPropertyValue() expects parameter 1 to be string, array given +ReflectionClass::setStaticPropertyValue() expects argument #1 ($name) to 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 9f25858402..1047c927dc 100644 --- a/ext/reflection/tests/ReflectionExtension_constructor_error.phpt +++ b/ext/reflection/tests/ReflectionExtension_constructor_error.phpt @@ -28,4 +28,4 @@ try { --EXPECTF-- Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given -Ok - ReflectionExtension::__construct() expects parameter 1 to be string, array given +Ok - ReflectionExtension::__construct() expects argument #1 ($name) to 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 945060b073..dbd829252b 100644 --- a/ext/reflection/tests/ReflectionFunction_construct.001.phpt +++ b/ext/reflection/tests/ReflectionFunction_construct.001.phpt @@ -35,8 +35,8 @@ try { ?> --EXPECT-- -Ok - ReflectionFunction::__construct() expects parameter 1 to be string, array given +Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type 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 parameter 1 to be string, array given +Ok - ReflectionFunction::__construct() expects argument #1 ($name) to be of type string, array given diff --git a/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt b/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt index 34e73c9a69..0d585d2a73 100644 --- a/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt +++ b/ext/reflection/tests/ReflectionMethod_invokeArgs_error2.phpt @@ -24,4 +24,4 @@ try { ?> --EXPECT-- -string(74) "ReflectionMethod::invokeArgs() expects parameter 2 to be array, bool given" +string(90) "ReflectionMethod::invokeArgs() expects argument #2 ($args) to be of type array, bool given" diff --git a/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt b/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt index 3ff1052a0a..3dc0ed626e 100644 --- a/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt +++ b/ext/reflection/tests/ReflectionMethod_invoke_basic.phpt @@ -103,7 +103,7 @@ NULL Static method: ReflectionMethod::invoke() expects at least 1 parameter, 0 given -ReflectionMethod::invoke() expects parameter 1 to be object, bool given +ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given Called staticMethod() Exception: Using $this when not in object context NULL diff --git a/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt b/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt index 4fa86eb363..8788370b2f 100644 --- a/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt +++ b/ext/reflection/tests/ReflectionMethod_invoke_error1.phpt @@ -57,9 +57,9 @@ try { } ?> ---EXPECTF-- +--EXPECT-- invoke() on a non-object: -string(71) "ReflectionMethod::invoke() expects parameter 1 to be object, bool given" +string(89) "ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, bool given" invoke() on a non-instance: string(72) "Given object is not an instance of the class this method was declared in" diff --git a/ext/reflection/tests/ReflectionReference_errors.phpt b/ext/reflection/tests/ReflectionReference_errors.phpt index 8e52a1d223..e70348cba1 100644 --- a/ext/reflection/tests/ReflectionReference_errors.phpt +++ b/ext/reflection/tests/ReflectionReference_errors.phpt @@ -41,7 +41,7 @@ var_dump(unserialize('O:19:"ReflectionReference":0:{}')); ?> --EXPECTF-- Call to private ReflectionReference::__construct() from invalid context -ReflectionReference::fromArrayElement() expects parameter 1 to be array, object given +ReflectionReference::fromArrayElement() expects argument #1 ($array) to be of type array, object given Key must be array or string Array key not found Serialization of 'ReflectionReference' is not allowed diff --git a/ext/reflection/tests/bug42976.phpt b/ext/reflection/tests/bug42976.phpt index d8ab797b92..014d0d0321 100644 --- a/ext/reflection/tests/bug42976.phpt +++ b/ext/reflection/tests/bug42976.phpt @@ -26,9 +26,9 @@ echo "Done\n"; --EXPECTF-- string(9) "x.changed" -Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 15 +Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d string(10) "x.original" -Warning: Parameter 1 to C::__construct() expected to be a reference, value given in %sbug42976.php on line 18 +Warning: C::__construct() expects argument #1 ($x) to be passed by reference, value given in %s on line %d string(10) "x.original" Done diff --git a/ext/reflection/tests/request38992.phpt b/ext/reflection/tests/request38992.phpt index e6eab83415..0266cee430 100644 --- a/ext/reflection/tests/request38992.phpt +++ b/ext/reflection/tests/request38992.phpt @@ -23,5 +23,5 @@ try { } ?> --EXPECT-- -ReflectionMethod::invoke() expects parameter 1 to be object, string given -ReflectionMethod::invokeArgs() expects parameter 1 to be object, string given +ReflectionMethod::invoke() expects argument #1 ($object) to be of type object, string given +ReflectionMethod::invokeArgs() expects argument #1 ($object) to be of type object, string given diff --git a/ext/session/tests/session_set_save_handler_iface_002.phpt b/ext/session/tests/session_set_save_handler_iface_002.phpt index cd8f6af9d9..269005565d 100644 --- a/ext/session/tests/session_set_save_handler_iface_002.phpt +++ b/ext/session/tests/session_set_save_handler_iface_002.phpt @@ -83,8 +83,8 @@ try { } session_start(); ---EXPECTF-- +--EXPECT-- *** Testing session_set_save_handler() function: interface wrong *** bool(true) -session_set_save_handler() expects parameter 1 to be SessionHandlerInterface, object given +session_set_save_handler() expects argument #1 ($open) to be of type SessionHandlerInterface, object given good handler writing diff --git a/ext/simplexml/tests/bug37565.phpt b/ext/simplexml/tests/bug37565.phpt index 53508dc9b6..38e475a744 100644 --- a/ext/simplexml/tests/bug37565.phpt +++ b/ext/simplexml/tests/bug37565.phpt @@ -29,5 +29,5 @@ try { ?> --EXPECT-- -Error: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given -Error: simplexml_load_file() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given +Error: simplexml_load_string() expects argument #2 ($class_name) to be a class name derived from SimpleXMLElement, 'Setting' given +Error: simplexml_load_file() expects argument #2 ($class_name) to be a class name derived from SimpleXMLElement, 'Setting' given diff --git a/ext/snmp/tests/snmp-object-error.phpt b/ext/snmp/tests/snmp-object-error.phpt index 606a8cf7b0..c7adf8f25c 100644 --- a/ext/snmp/tests/snmp-object-error.phpt +++ b/ext/snmp/tests/snmp-object-error.phpt @@ -70,8 +70,8 @@ var_dump($session->max_oids); ?> --EXPECTF-- SNMP::__construct() expects at least 3 parameters, 2 given -SNMP::__construct() expects parameter 4 to be int, string given -SNMP::__construct() expects parameter 5 to be int, string given +SNMP::__construct() expects argument #4 to be of type int, string given +SNMP::__construct() expects argument #5 to be of type int, string given Unknown SNMP protocol version Exception handling diff --git a/ext/soap/tests/bug77088.phpt b/ext/soap/tests/bug77088.phpt index 17945e136f..ed2bea1465 100644 --- a/ext/soap/tests/bug77088.phpt +++ b/ext/soap/tests/bug77088.phpt @@ -21,7 +21,7 @@ catch(TypeError $e) --EXPECTF-- object(TypeError)#%d (%d) { ["message":protected]=> - string(%d) "SoapClient::__construct() expects parameter 2 to be array, null given" + string(%d) "SoapClient::__construct() expects argument #2 ($options) to be of type array, null given" ["string":"Error":private]=> string(0) "" ["code":protected]=> diff --git a/ext/sodium/tests/sodium_error_001.phpt b/ext/sodium/tests/sodium_error_001.phpt index a9801e21ce..b5b19b1d12 100644 --- a/ext/sodium/tests/sodium_error_001.phpt +++ b/ext/sodium/tests/sodium_error_001.phpt @@ -15,7 +15,7 @@ $key = random_bytes(SODIUM_CRYPTO_SHORTHASH_KEYBYTES); $hash = do_crypto_shorthash($m, $key); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: sodium_crypto_shorthash() expects parameter 1 to be string, int given in %s:%d +Fatal error: Uncaught TypeError: sodium_crypto_shorthash() expects argument #1 ($string) to be of type string, int given in %s:%d Stack trace: #0 %s(%d): sodium_crypto_shorthash() #1 %s(%d): do_crypto_shorthash() diff --git a/ext/spl/tests/CallbackFilterIteratorTest-002.phpt b/ext/spl/tests/CallbackFilterIteratorTest-002.phpt index 62beb88cd5..e1d37ecce5 100644 --- a/ext/spl/tests/CallbackFilterIteratorTest-002.phpt +++ b/ext/spl/tests/CallbackFilterIteratorTest-002.phpt @@ -43,6 +43,6 @@ try { --EXPECT-- CallbackFilterIterator::__construct() expects exactly 2 parameters, 0 given CallbackFilterIterator::__construct() expects exactly 2 parameters, 1 given -CallbackFilterIterator::__construct() expects parameter 2 to be a valid callback, no array or string given -CallbackFilterIterator::__construct() expects parameter 2 to be a valid callback, array must have exactly two members +CallbackFilterIterator::__construct() expects argument #2 ($callback) to be a valid callback, no array or string given +CallbackFilterIterator::__construct() expects argument #2 ($callback) to be a valid callback, array must have exactly two members some message diff --git a/ext/spl/tests/SplFileInfo_setFileClass_error.phpt b/ext/spl/tests/SplFileInfo_setFileClass_error.phpt index db0186f218..b8aea64ea2 100644 --- a/ext/spl/tests/SplFileInfo_setFileClass_error.phpt +++ b/ext/spl/tests/SplFileInfo_setFileClass_error.phpt @@ -13,4 +13,4 @@ try { ?> --EXPECT-- -SplFileInfo::setFileClass() expects parameter 1 to be a class name derived from SplFileObject, 'stdClass' given +SplFileInfo::setFileClass() expects argument #1 ($class_name) to be a class name derived from SplFileObject, 'stdClass' given diff --git a/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt b/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt index 9a2e71defe..b0a358a9b3 100644 --- a/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt +++ b/ext/spl/tests/SplFileInfo_setInfoClass_error.phpt @@ -13,4 +13,4 @@ try { ?> --EXPECT-- -SplFileInfo::setInfoClass() expects parameter 1 to be a class name derived from SplFileInfo, 'stdClass' given +SplFileInfo::setInfoClass() expects argument #1 ($class_name) to be a class name derived from SplFileInfo, 'stdClass' given diff --git a/ext/spl/tests/SplFixedArray__construct_param_array.phpt b/ext/spl/tests/SplFixedArray__construct_param_array.phpt index 15e1c0c438..f4fb329989 100644 --- a/ext/spl/tests/SplFixedArray__construct_param_array.phpt +++ b/ext/spl/tests/SplFixedArray__construct_param_array.phpt @@ -13,4 +13,4 @@ try { ?> --EXPECT-- -Ok - SplFixedArray::__construct() expects parameter 1 to be int, array given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, array given diff --git a/ext/spl/tests/SplFixedArray__construct_param_string.phpt b/ext/spl/tests/SplFixedArray__construct_param_string.phpt index 654ac4b95f..240631cc88 100644 --- a/ext/spl/tests/SplFixedArray__construct_param_string.phpt +++ b/ext/spl/tests/SplFixedArray__construct_param_string.phpt @@ -13,4 +13,4 @@ try { ?> --EXPECT-- -Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given diff --git a/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt b/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt index efb1d0e65d..cfb0ca79a9 100644 --- a/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt +++ b/ext/spl/tests/SplFixedArray_construct_param_SplFixedArray.phpt @@ -12,4 +12,4 @@ try { ?> --EXPECT-- -Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given diff --git a/ext/spl/tests/SplTempFileObject_constructor_error.phpt b/ext/spl/tests/SplTempFileObject_constructor_error.phpt index 37b00991ff..aaf2738915 100644 --- a/ext/spl/tests/SplTempFileObject_constructor_error.phpt +++ b/ext/spl/tests/SplTempFileObject_constructor_error.phpt @@ -9,4 +9,4 @@ try { } ?> --EXPECT-- -SplTempFileObject::__construct() expects parameter 1 to be int, string given +SplTempFileObject::__construct() expects argument #1 ($max_memory) to be of type int, string given diff --git a/ext/spl/tests/arrayObject___construct_error1.phpt b/ext/spl/tests/arrayObject___construct_error1.phpt index aaf38ac499..b7700e4e31 100644 --- a/ext/spl/tests/arrayObject___construct_error1.phpt +++ b/ext/spl/tests/arrayObject___construct_error1.phpt @@ -20,6 +20,6 @@ try { ?> --EXPECT-- Bad iterator type: -ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'Exception' given(6) +ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'Exception' given(6) Non-existent class: -ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'nonExistentClassName' given(13) +ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClassName' given(13) diff --git a/ext/spl/tests/arrayObject_asort_basic1.phpt b/ext/spl/tests/arrayObject_asort_basic1.phpt index 0ec5269692..db751c6fba 100644 --- a/ext/spl/tests/arrayObject_asort_basic1.phpt +++ b/ext/spl/tests/arrayObject_asort_basic1.phpt @@ -38,7 +38,7 @@ object(ArrayObject)#%d (1) { int(4) } } -asort() expects parameter 2 to be int, string given +asort() expects argument #2 ($sort_flags) to be of type int, string given object(ArrayObject)#%d (1) { ["storage":"ArrayObject":private]=> array(3) { diff --git a/ext/spl/tests/arrayObject_ksort_basic1.phpt b/ext/spl/tests/arrayObject_ksort_basic1.phpt index 01375b7277..6e20013177 100644 --- a/ext/spl/tests/arrayObject_ksort_basic1.phpt +++ b/ext/spl/tests/arrayObject_ksort_basic1.phpt @@ -37,7 +37,7 @@ object(ArrayObject)#%d (1) { int(3) } } -ksort() expects parameter 2 to be int, string given +ksort() expects argument #2 ($sort_flags) to be of type int, string given object(ArrayObject)#2 (1) { ["storage":"ArrayObject":private]=> array(4) { diff --git a/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt b/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt index 591f84c3d4..a80c8cbb0d 100644 --- a/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt +++ b/ext/spl/tests/arrayObject_setIteratorClass_error1.phpt @@ -42,8 +42,8 @@ try { } ?> ---EXPECTF-- -string(118) "ArrayObject::setIteratorClass() expects parameter 1 to be a class name derived from Iterator, 'nonExistentClass' given" -string(110) "ArrayObject::setIteratorClass() expects parameter 1 to be a class name derived from Iterator, 'stdClass' given" -string(113) "ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'nonExistentClass' given" -string(105) "ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'stdClass' given" +--EXPECT-- +string(135) "ArrayObject::setIteratorClass() expects argument #1 ($iteratorClass) to be a class name derived from Iterator, 'nonExistentClass' given" +string(127) "ArrayObject::setIteratorClass() expects argument #1 ($iteratorClass) to be a class name derived from Iterator, 'stdClass' given" +string(131) "ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'nonExistentClass' given" +string(123) "ArrayObject::__construct() expects argument #3 ($iterator_class) to be a class name derived from Iterator, 'stdClass' given" diff --git a/ext/spl/tests/bug54291.phpt b/ext/spl/tests/bug54291.phpt index 9f3bd49912..e48f80fe00 100644 --- a/ext/spl/tests/bug54291.phpt +++ b/ext/spl/tests/bug54291.phpt @@ -5,7 +5,7 @@ Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0) $dir = new DirectoryIterator("\x00/abc"); $dir->isFile(); --EXPECTF-- -Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d +Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d Stack trace: #0 %s(%d): DirectoryIterator->__construct('\x00/abc') #1 {main} diff --git a/ext/spl/tests/bug54292.phpt b/ext/spl/tests/bug54292.phpt index ac0cee10d4..9355ef4408 100644 --- a/ext/spl/tests/bug54292.phpt +++ b/ext/spl/tests/bug54292.phpt @@ -11,4 +11,4 @@ try { ?> --EXPECT-- -string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given" +string(95) "SplFileObject::__construct() expects argument #2 ($open_mode) to be of type string, array given" diff --git a/ext/spl/tests/bug77431.phpt b/ext/spl/tests/bug77431.phpt index eb1ca96b75..20545fb141 100644 --- a/ext/spl/tests/bug77431.phpt +++ b/ext/spl/tests/bug77431.phpt @@ -5,5 +5,5 @@ Bug #77431 (SplFileInfo::__construct() accepts NUL bytes) new SplFileInfo("bad\0good"); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects parameter 1 to be a valid path, string given in %s:%d -Stack trace:%A
\ No newline at end of file +Fatal error: Uncaught TypeError: SplFileInfo::__construct() expects argument #1 ($file_name) to be a valid path, string given in %s:%d +Stack trace:%A diff --git a/ext/spl/tests/bug78863.phpt b/ext/spl/tests/bug78863.phpt index c08c88a5d7..4db36c202e 100644 --- a/ext/spl/tests/bug78863.phpt +++ b/ext/spl/tests/bug78863.phpt @@ -16,7 +16,7 @@ foreach ($it as $fileinfo) { } ?> --EXPECTF-- -Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects parameter 1 to be a valid path, string given in %s:%d +Fatal error: Uncaught TypeError: DirectoryIterator::__construct() expects argument #1 ($path) to be a valid path, string given in %s:%d Stack trace: #0 %s(%d): DirectoryIterator->__construct('%s') #1 {main} diff --git a/ext/spl/tests/fixedarray_005.phpt b/ext/spl/tests/fixedarray_005.phpt index 7295a317ab..80fffd1566 100644 --- a/ext/spl/tests/fixedarray_005.phpt +++ b/ext/spl/tests/fixedarray_005.phpt @@ -23,6 +23,6 @@ try { ?> --EXPECT-- -Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given -Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given -Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, object given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given diff --git a/ext/spl/tests/fixedarray_009.phpt b/ext/spl/tests/fixedarray_009.phpt index 71d6a42a6f..6dc6e4cbca 100644 --- a/ext/spl/tests/fixedarray_009.phpt +++ b/ext/spl/tests/fixedarray_009.phpt @@ -10,4 +10,4 @@ try { } ?> --EXPECT-- -Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given diff --git a/ext/spl/tests/fixedarray_015.phpt b/ext/spl/tests/fixedarray_015.phpt index 2a2d5a26f7..74814268e7 100644 --- a/ext/spl/tests/fixedarray_015.phpt +++ b/ext/spl/tests/fixedarray_015.phpt @@ -12,5 +12,5 @@ try { echo "Done\n"; ?> --EXPECT-- -Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given +Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given Done diff --git a/ext/spl/tests/iterator_042.phpt b/ext/spl/tests/iterator_042.phpt index 2c14fc3d40..f768e47077 100644 --- a/ext/spl/tests/iterator_042.phpt +++ b/ext/spl/tests/iterator_042.phpt @@ -39,7 +39,7 @@ foreach($it as $k => $v) ?> --EXPECTF-- -Error AppendIterator::append() expects parameter 1 to be Iterator, array given in %s on line %d +Error AppendIterator::append() expects argument #1 ($iterator) to be of type Iterator, array given in %s on line %d object(ArrayIterator)#%d (1) { %s"storage"%s"ArrayIterator":private]=> array(2) { diff --git a/ext/spl/tests/iterator_044.phpt b/ext/spl/tests/iterator_044.phpt index 89d8bef772..c62abb5c1a 100644 --- a/ext/spl/tests/iterator_044.phpt +++ b/ext/spl/tests/iterator_044.phpt @@ -83,8 +83,8 @@ NULL ===1=== object(stdClass)#%d (0) { } -CachingIterator::offsetExists() expects parameter 1 to be string, object given -CachingIterator::offsetGet() expects parameter 1 to be string, object given +CachingIterator::offsetExists() expects argument #1 ($index) to be of type string, object given +CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given ===2=== object(MyFoo)#%d (0) { } @@ -124,8 +124,8 @@ int(0) ===1=== object(stdClass)#1 (0) { } -CachingIterator::offsetExists() expects parameter 1 to be string, object given -CachingIterator::offsetGet() expects parameter 1 to be string, object given +CachingIterator::offsetExists() expects argument #1 ($index) to be of type string, object given +CachingIterator::offsetGet() expects argument #1 ($index) to be of type string, object given ===2=== object(MyFoo)#2 (0) { } diff --git a/ext/spl/tests/iterator_count.phpt b/ext/spl/tests/iterator_count.phpt index a115a7329c..3071f9b06c 100644 --- a/ext/spl/tests/iterator_count.phpt +++ b/ext/spl/tests/iterator_count.phpt @@ -13,7 +13,7 @@ iterator_count('1'); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: iterator_count() expects parameter 1 to be Traversable, string given in %s:%d +Fatal error: Uncaught TypeError: iterator_count() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d Stack trace: #0 %s(%d): iterator_count('1') #1 {main} diff --git a/ext/spl/tests/iterator_to_array.phpt b/ext/spl/tests/iterator_to_array.phpt index 9225f03c00..09dcf5d02f 100644 --- a/ext/spl/tests/iterator_to_array.phpt +++ b/ext/spl/tests/iterator_to_array.phpt @@ -13,7 +13,7 @@ iterator_to_array('test','test'); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: iterator_to_array() expects parameter 1 to be Traversable, string given in %s:%d +Fatal error: Uncaught TypeError: iterator_to_array() expects argument #1 ($iterator) to be of type Traversable, string given in %s:%d Stack trace: #0 %s(%d): iterator_to_array('test', 'test') #1 {main} diff --git a/ext/spl/tests/recursive_tree_iterator_003.phpt b/ext/spl/tests/recursive_tree_iterator_003.phpt index c87f942f0d..0f4fed97b3 100644 --- a/ext/spl/tests/recursive_tree_iterator_003.phpt +++ b/ext/spl/tests/recursive_tree_iterator_003.phpt @@ -9,4 +9,4 @@ try { } ?> --EXPECT-- -RecursiveCachingIterator::__construct() expects parameter 1 to be RecursiveIterator, object given +RecursiveCachingIterator::__construct() expects argument #1 ($iterator) to be of type RecursiveIterator, object given diff --git a/ext/spl/tests/spl_004.phpt b/ext/spl/tests/spl_004.phpt index 570b4ae226..0b628d3ee1 100644 --- a/ext/spl/tests/spl_004.phpt +++ b/ext/spl/tests/spl_004.phpt @@ -84,6 +84,6 @@ int(5) int(6) int(4) ===ERRORS=== -iterator_apply() expects parameter 3 to be array, int given -iterator_apply() expects parameter 2 to be a valid callback, function 'non_existing_function' not found or invalid function name +iterator_apply() expects argument #3 ($args) to be of type array, int given +iterator_apply() expects argument #2 ($function) to be a valid callback, function 'non_existing_function' not found or invalid function name iterator_apply() expects at most 3 parameters, 4 given diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index ab10bc06e9..88821296fc 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -353,7 +353,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */ option = PHP_STREAM_META_GROUP_NAME; value = Z_STRVAL_P(group); } else { - zend_type_error("Parameter 2 should be string or int, %s given", zend_zval_type_name(group)); + zend_type_error("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group)); RETURN_THROWS(); } if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) { @@ -382,7 +382,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */ RETURN_FALSE; } } else { - zend_type_error("Parameter 2 should be string or int, %s given", zend_zval_type_name(group)); + zend_type_error("chgrp() expects argument #2 ($group) to be of type string|int, %s given", zend_zval_type_name(group)); RETURN_THROWS(); } diff --git a/ext/standard/string.c b/ext/standard/string.c index 6fb9683c5a..bd68a6c08b 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1276,7 +1276,7 @@ PHP_FUNCTION(implode) if (pieces == NULL) { if (arg1_array == NULL) { - zend_type_error("Argument must be an array"); + zend_type_error("%s() expects argument #1 ($pieces) to be of type array, string given", get_active_function_name()); RETURN_THROWS(); } @@ -1284,7 +1284,7 @@ PHP_FUNCTION(implode) pieces = arg1_array; } else { if (arg1_str == NULL) { - zend_type_error("The first argument must be a string"); + zend_type_error("%s() expects argument #1 ($glue) to be of type string, array given", get_active_function_name()); RETURN_THROWS(); } } diff --git a/ext/standard/tests/array/array_change_key_case_variation.phpt b/ext/standard/tests/array/array_change_key_case_variation.phpt index f2b185523f..e8b8fe174d 100644 --- a/ext/standard/tests/array/array_change_key_case_variation.phpt +++ b/ext/standard/tests/array/array_change_key_case_variation.phpt @@ -23,8 +23,8 @@ var_dump( array_change_key_case( array("ONE" => 1, "one" => 1, "One" => 2), 5 ) echo "end\n"; ?> ---EXPECTF-- -array_change_key_case() expects parameter 2 to be int, string given +--EXPECT-- +array_change_key_case() expects argument #2 ($case) to be of type int, string given array(4) { ["ONE"]=> int(1) diff --git a/ext/standard/tests/array/array_diff_uassoc_error.phpt b/ext/standard/tests/array/array_diff_uassoc_error.phpt index 33fa0e7bea..7cd0c1a1fa 100644 --- a/ext/standard/tests/array/array_diff_uassoc_error.phpt +++ b/ext/standard/tests/array/array_diff_uassoc_error.phpt @@ -51,8 +51,8 @@ try { *** Testing array_diff_uassoc() : error conditions *** -- Testing array_diff_uassoc() function with more than expected no. of arguments -- -array_diff_uassoc() expects parameter 4 to be a valid callback, array must have exactly two members -array_diff_uassoc() expects parameter 6 to be a valid callback, array must have exactly two members +array_diff_uassoc() expects argument #4 to be a valid callback, array must have exactly two members +array_diff_uassoc() expects argument #6 to 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 diff --git a/ext/standard/tests/array/array_diff_ukey_variation10.phpt b/ext/standard/tests/array/array_diff_ukey_variation10.phpt index b2304bb446..a3be16c21c 100644 --- a/ext/standard/tests/array/array_diff_ukey_variation10.phpt +++ b/ext/standard/tests/array/array_diff_ukey_variation10.phpt @@ -30,5 +30,5 @@ try { ?> --EXPECT-- *** Testing array_diff_ukey() : usage variation *** -array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name -array_diff_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name +array_diff_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name +array_diff_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name diff --git a/ext/standard/tests/array/array_filter_variation9.phpt b/ext/standard/tests/array/array_filter_variation9.phpt index 240f5c10fa..cedaf840df 100644 --- a/ext/standard/tests/array/array_filter_variation9.phpt +++ b/ext/standard/tests/array/array_filter_variation9.phpt @@ -37,7 +37,7 @@ try { echo "Done" ?> ---EXPECTF-- +--EXPECT-- *** Testing array_filter() : usage variations - built-in functions as 'callback' argument *** array(6) { [0]=> @@ -69,6 +69,6 @@ array(7) { [6]=> NULL } -array_filter() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name -array_filter() expects parameter 2 to be a valid callback, function 'exit' not found or invalid function name +array_filter() expects argument #2 ($callback) to be a valid callback, function 'echo' not found or invalid function name +array_filter() expects argument #2 ($callback) to be a valid callback, function 'exit' not found or invalid function name Done diff --git a/ext/standard/tests/array/array_intersect_ukey_variation8.phpt b/ext/standard/tests/array/array_intersect_ukey_variation8.phpt index b83c3302b2..f277285cb6 100644 --- a/ext/standard/tests/array/array_intersect_ukey_variation8.phpt +++ b/ext/standard/tests/array/array_intersect_ukey_variation8.phpt @@ -30,5 +30,5 @@ try { ?> --EXPECTF-- *** Testing array_intersect_ukey() : usage variation *** -array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name -array_intersect_ukey() expects parameter 3 to be a valid callback, function 'unknown_function' not found or invalid function name +array_intersect_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name +array_intersect_ukey() expects argument #3 to be a valid callback, function 'unknown_function' not found or invalid function name diff --git a/ext/standard/tests/array/array_key_exists.phpt b/ext/standard/tests/array/array_key_exists.phpt index a436e7363e..0e6c6a5263 100644 --- a/ext/standard/tests/array/array_key_exists.phpt +++ b/ext/standard/tests/array/array_key_exists.phpt @@ -91,7 +91,7 @@ try { echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing basic functionalities *** -- Iteration 1 -- bool(true) @@ -224,5 +224,5 @@ bool(true) Illegal offset type *** Testing operation on objects *** -array_key_exists() expects parameter 2 to be array, object given +array_key_exists() expects argument #2 ($array) to be of type array, object given Done diff --git a/ext/standard/tests/array/array_map_object1.phpt b/ext/standard/tests/array/array_map_object1.phpt index c95395e04d..46fed27691 100644 --- a/ext/standard/tests/array/array_map_object1.phpt +++ b/ext/standard/tests/array/array_map_object1.phpt @@ -124,7 +124,7 @@ class InterClass implements myInterface test(array('InterClass', 'square'), array(1, 2)); ?> ---EXPECTF-- +--EXPECT-- *** Testing array_map() : object functionality *** -- simple class with public variable and method -- SimpleClass::square @@ -137,15 +137,15 @@ array(2) { -- simple class with private variable and method -- SimpleClassPri::add -array_map() expects parameter 1 to be a valid callback, cannot access private method SimpleClassPri::add() +array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method SimpleClassPri::add() -- simple class with protected variable and method -- SimpleClassPro::mul -array_map() expects parameter 1 to be a valid callback, cannot access protected method SimpleClassPro::mul() +array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method SimpleClassPro::mul() -- class without members -- EmptyClass -array_map() expects parameter 1 to be a valid callback, array must have exactly two members +array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members -- abstract class -- ChildClass::emptyFunction @@ -178,9 +178,9 @@ array(2) { int(4) } StaticClass::cube -array_map() expects parameter 1 to be a valid callback, cannot access private method StaticClass::cube() +array_map() expects argument #1 ($callback) to be a valid callback, cannot access private method StaticClass::cube() StaticClass::retVal -array_map() expects parameter 1 to be a valid callback, cannot access protected method StaticClass::retVal() +array_map() expects argument #1 ($callback) to be a valid callback, cannot access protected method StaticClass::retVal() -- class implementing an interface -- InterClass::square array(2) { diff --git a/ext/standard/tests/array/array_map_object2.phpt b/ext/standard/tests/array/array_map_object2.phpt index e5218ccbe4..de43ff2c93 100644 --- a/ext/standard/tests/array/array_map_object2.phpt +++ b/ext/standard/tests/array/array_map_object2.phpt @@ -41,10 +41,10 @@ try { echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing array_map() : with non-existent class and method *** -- with non-existent class -- -array_map() expects parameter 1 to be a valid callback, class 'non-existent' not found +array_map() expects argument #1 ($callback) to be a valid callback, class 'non-existent' not found -- with existent class and non-existent method -- -array_map() expects parameter 1 to be a valid callback, class 'SimpleClass' does not have a method 'non-existent' +array_map() expects argument #1 ($callback) to be a valid callback, class 'SimpleClass' does not have a method 'non-existent' Done diff --git a/ext/standard/tests/array/array_map_object3.phpt b/ext/standard/tests/array/array_map_object3.phpt index 2f1536df5c..98f14789b9 100644 --- a/ext/standard/tests/array/array_map_object3.phpt +++ b/ext/standard/tests/array/array_map_object3.phpt @@ -69,7 +69,7 @@ try { echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing array_map() : class methods as callback function *** -- accessing parent method from child class -- array(3) { @@ -81,7 +81,7 @@ array(3) { int(7) } -- accessing child method from parent class -- -array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have a method 'staticChild' +array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild' -- accessing parent method using child class object -- array(3) { [0]=> @@ -92,5 +92,5 @@ array(3) { int(7) } -- accessing child method using parent class object -- -array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have a method 'staticChild' +array_map() expects argument #1 ($callback) to be a valid callback, class 'ParentClass' does not have a method 'staticChild' Done diff --git a/ext/standard/tests/array/array_map_variation12.phpt b/ext/standard/tests/array/array_map_variation12.phpt index 67abde0108..4f1dba9c85 100644 --- a/ext/standard/tests/array/array_map_variation12.phpt +++ b/ext/standard/tests/array/array_map_variation12.phpt @@ -35,7 +35,7 @@ try { echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing array_map() : built-in function *** -- with built-in function 'pow' and two parameters -- array(3) { @@ -49,5 +49,5 @@ array(3) { -- with built-in function 'pow' and one parameter -- pow() expects exactly 2 parameters, 1 given -- with language construct -- -array_map() expects parameter 1 to be a valid callback, function 'echo' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name Done diff --git a/ext/standard/tests/array/array_map_variation14.phpt b/ext/standard/tests/array/array_map_variation14.phpt index 2764cb7374..f0b931eddb 100644 --- a/ext/standard/tests/array/array_map_variation14.phpt +++ b/ext/standard/tests/array/array_map_variation14.phpt @@ -51,7 +51,7 @@ try { echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing array_map() : null value for 'callback' argument *** -- with null -- array(2) { @@ -123,7 +123,7 @@ array(2) { int(2) } -- with empty string -- -array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name -- with empty array -- -array_map() expects parameter 1 to be a valid callback, array must have exactly two members +array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members Done diff --git a/ext/standard/tests/array/array_map_variation15.phpt b/ext/standard/tests/array/array_map_variation15.phpt index f36d55bd5f..f352fabc71 100644 --- a/ext/standard/tests/array/array_map_variation15.phpt +++ b/ext/standard/tests/array/array_map_variation15.phpt @@ -28,5 +28,5 @@ echo "Done"; ?> --EXPECT-- *** Testing array_map() : non existent 'callback' function *** -array_map() expects parameter 1 to be a valid callback, function 'non_existent' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'non_existent' not found or invalid function name Done diff --git a/ext/standard/tests/array/array_map_variation16.phpt b/ext/standard/tests/array/array_map_variation16.phpt index 0c80337c76..b9d9b51b14 100644 --- a/ext/standard/tests/array/array_map_variation16.phpt +++ b/ext/standard/tests/array/array_map_variation16.phpt @@ -40,22 +40,22 @@ for($count = 0; $count < count($callback_names); $count++) echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing array_map() : non-permmited built-in functions *** -- Iteration 1 -- -array_map() expects parameter 1 to be a valid callback, function 'echo' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'echo' not found or invalid function name -- Iteration 2 -- -array_map() expects parameter 1 to be a valid callback, function 'array' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'array' not found or invalid function name -- Iteration 3 -- -array_map() expects parameter 1 to be a valid callback, function 'empty' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'empty' not found or invalid function name -- Iteration 4 -- -array_map() expects parameter 1 to be a valid callback, function 'eval' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'eval' not found or invalid function name -- Iteration 5 -- -array_map() expects parameter 1 to be a valid callback, function 'exit' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'exit' not found or invalid function name -- Iteration 6 -- -array_map() expects parameter 1 to be a valid callback, function 'isset' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'isset' not found or invalid function name -- Iteration 7 -- -array_map() expects parameter 1 to be a valid callback, function 'list' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'list' not found or invalid function name -- Iteration 8 -- -array_map() expects parameter 1 to be a valid callback, function 'print' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function 'print' not found or invalid function name Done diff --git a/ext/standard/tests/array/array_map_variation17.phpt b/ext/standard/tests/array/array_map_variation17.phpt index 4558dc999f..65268ac914 100644 --- a/ext/standard/tests/array/array_map_variation17.phpt +++ b/ext/standard/tests/array/array_map_variation17.phpt @@ -81,62 +81,62 @@ echo "Done"; *** Testing array_map() : unexpected values for 'callback' argument *** -- Iteration 1 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 2 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 3 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 4 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 5 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 6 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 7 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 8 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 9 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 10 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 11 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 12 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 13 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 14 -- -array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name -- Iteration 15 -- -array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name +array_map() expects argument #1 ($callback) to be a valid callback, function '' not found or invalid function name -- Iteration 16 -- -array_map() expects parameter 1 to be a valid callback, array must have exactly two members +array_map() expects argument #1 ($callback) to be a valid callback, array must have exactly two members -- Iteration 17 -- -array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object +array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object -- Iteration 18 -- -array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object +array_map() expects argument #1 ($callback) to be a valid callback, first array member is not a valid class name or object -- Iteration 19 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given -- Iteration 20 -- -array_map() expects parameter 1 to be a valid callback, no array or string given +array_map() expects argument #1 ($callback) to be a valid callback, no array or string given Done diff --git a/ext/standard/tests/array/array_search_variation3.phpt b/ext/standard/tests/array/array_search_variation3.phpt index 596c36f805..ad356ba01d 100644 --- a/ext/standard/tests/array/array_search_variation3.phpt +++ b/ext/standard/tests/array/array_search_variation3.phpt @@ -49,14 +49,14 @@ var_dump( array_search("one", $array_search_obj->array_var) ); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing sub-arrays with array_search() *** int(4) string(5) "three" int(5) *** Testing objects with array_search() *** -array_search() expects parameter 2 to be array, object given -array_search() expects parameter 2 to be array, object given +array_search() expects argument #2 ($haystack) to be of type array, object given +array_search() expects argument #2 ($haystack) to be of type array, object given int(1) Done diff --git a/ext/standard/tests/array/array_slice_variation1.phpt b/ext/standard/tests/array/array_slice_variation1.phpt index 46f33b9503..270206a747 100644 --- a/ext/standard/tests/array/array_slice_variation1.phpt +++ b/ext/standard/tests/array/array_slice_variation1.phpt @@ -28,7 +28,7 @@ try { var_dump($a); ?> ---EXPECTF-- +--EXPECT-- array(3) { [0]=> int(1) @@ -61,6 +61,6 @@ array(1) { [2]=> int(3) } -array_slice() expects parameter 3 to be int, string given -array_slice() expects parameter 3 to be int, string given +array_slice() expects argument #3 ($length) to be of type int, string given +array_slice() expects argument #3 ($length) to be of type int, string given string(3) "foo" diff --git a/ext/standard/tests/array/array_walk_objects.phpt b/ext/standard/tests/array/array_walk_objects.phpt index a4a517746d..7800a9f6f5 100644 --- a/ext/standard/tests/array/array_walk_objects.phpt +++ b/ext/standard/tests/array/array_walk_objects.phpt @@ -43,5 +43,5 @@ string(10) "%r\0%r*%r\0%rvar_pro" string(14) "test_protected" string(7) "var_pub" string(11) "test_public" -array_walk() expects parameter 1 to be array, string given +array_walk() expects argument #1 ($input) to be of type array, string given Done diff --git a/ext/standard/tests/array/array_walk_rec_objects.phpt b/ext/standard/tests/array/array_walk_rec_objects.phpt index 51aeae11c9..0d0cdcbdc8 100644 --- a/ext/standard/tests/array/array_walk_rec_objects.phpt +++ b/ext/standard/tests/array/array_walk_rec_objects.phpt @@ -43,5 +43,5 @@ string(10) "%r\0%r*%r\0%rvar_pro" string(14) "test_protected" string(7) "var_pub" string(11) "test_public" -array_walk_recursive() expects parameter 1 to be array, string given +array_walk_recursive() expects argument #1 ($input) to be of type array, string given Done diff --git a/ext/standard/tests/array/array_walk_recursive_variation8.phpt b/ext/standard/tests/array/array_walk_recursive_variation8.phpt index 51eba1e0e0..2d80cf9e24 100644 --- a/ext/standard/tests/array/array_walk_recursive_variation8.phpt +++ b/ext/standard/tests/array/array_walk_recursive_variation8.phpt @@ -33,12 +33,12 @@ try { echo "Done" ?> ---EXPECTF-- +--EXPECT-- *** Testing array_walk_recursive() : built-in function as callback *** -- With 'pow' built-in function -- bool(true) -- With 'min' built-in function -- bool(true) -- With 'echo' language construct -- -array_walk_recursive() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name +array_walk_recursive() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name Done diff --git a/ext/standard/tests/array/array_walk_variation8.phpt b/ext/standard/tests/array/array_walk_variation8.phpt index baa5f3914b..f95bc43e9d 100644 --- a/ext/standard/tests/array/array_walk_variation8.phpt +++ b/ext/standard/tests/array/array_walk_variation8.phpt @@ -33,12 +33,12 @@ try { echo "Done" ?> ---EXPECTF-- +--EXPECT-- *** Testing array_walk() : built-in function as callback *** -- With 'pow' built-in function -- bool(true) -- With 'min' built-in function -- bool(true) -- With 'echo' language construct -- -array_walk() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name +array_walk() expects argument #2 ($funcname) to be a valid callback, function 'echo' not found or invalid function name Done diff --git a/ext/standard/tests/array/bug40191.phpt b/ext/standard/tests/array/bug40191.phpt index b94e709364..a87c5098ab 100644 --- a/ext/standard/tests/array/bug40191.phpt +++ b/ext/standard/tests/array/bug40191.phpt @@ -17,5 +17,5 @@ try { echo "Done\n"; ?> --EXPECT-- -array_unique() expects parameter 1 to be array, object given +array_unique() expects argument #1 ($arg) to be of type array, object given Done diff --git a/ext/standard/tests/array/in_array_variation3.phpt b/ext/standard/tests/array/in_array_variation3.phpt index 0b58990041..09549d94c3 100644 --- a/ext/standard/tests/array/in_array_variation3.phpt +++ b/ext/standard/tests/array/in_array_variation3.phpt @@ -52,14 +52,14 @@ var_dump( in_array("one", $in_array_obj->array_var) ); echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing sub-arrays with in_array() *** bool(true) bool(true) bool(true) *** Testing objects with in_array() *** -in_array() expects parameter 2 to be array, object given -in_array() expects parameter 2 to be array, object given +in_array() expects argument #2 ($haystack) to be of type array, object given +in_array() expects argument #2 ($haystack) to be of type array, object given bool(true) Done diff --git a/ext/standard/tests/array/range_errors.phpt b/ext/standard/tests/array/range_errors.phpt index 51e9e50a55..73a02697e7 100644 --- a/ext/standard/tests/array/range_errors.phpt +++ b/ext/standard/tests/array/range_errors.phpt @@ -105,15 +105,15 @@ Step exceeds the specified range -- Testing other conditions -- Step exceeds the specified range -range() expects parameter 3 to be int or float, string given +range() expects argument #3 ($step) to be of type int|float, string given Step exceeds the specified range Notice: A non well formed numeric value encountered in %s on line %d Step exceeds the specified range -- Testing Invalid steps -- -range() expects parameter 3 to be int or float, string given +range() expects argument #3 ($step) to be of type int|float, string given Step exceeds the specified range Step exceeds the specified range -range() expects parameter 3 to be int or float, string given -range() expects parameter 3 to be int or float, string given +range() expects argument #3 ($step) to be of type int|float, string given +range() expects argument #3 ($step) to be of type int|float, string given diff --git a/ext/standard/tests/array/range_variation.phpt b/ext/standard/tests/array/range_variation.phpt index 3de5f6188f..a8c3fc1e0d 100644 --- a/ext/standard/tests/array/range_variation.phpt +++ b/ext/standard/tests/array/range_variation.phpt @@ -615,5 +615,5 @@ array(5) { [4]=> int(5) } -range() expects parameter 3 to be int or float, array given +range() expects argument #3 ($step) to be of type int|float, array given Done diff --git a/ext/standard/tests/class_object/get_class_variation_001.phpt b/ext/standard/tests/class_object/get_class_variation_001.phpt index 87a9eac6c3..b7ae000c01 100644 --- a/ext/standard/tests/class_object/get_class_variation_001.phpt +++ b/ext/standard/tests/class_object/get_class_variation_001.phpt @@ -85,80 +85,80 @@ Warning: Undefined variable: undefined_var in %s on line %d Warning: Undefined variable: unset_var in %s on line %d Arg value: 0 (type: integer) -get_class() expects parameter 1 to be object, int given +get_class() expects argument #1 ($object) to be of type object, int given Arg value: 1 (type: integer) -get_class() expects parameter 1 to be object, int given +get_class() expects argument #1 ($object) to be of type object, int given Arg value: 12345 (type: integer) -get_class() expects parameter 1 to be object, int given +get_class() expects argument #1 ($object) to be of type object, int given Arg value: -2345 (type: integer) -get_class() expects parameter 1 to be object, int given +get_class() expects argument #1 ($object) to be of type object, int given Arg value: 10.5 (type: double) -get_class() expects parameter 1 to be object, float given +get_class() expects argument #1 ($object) to be of type object, float given Arg value: -10.5 (type: double) -get_class() expects parameter 1 to be object, float given +get_class() expects argument #1 ($object) to be of type object, float given Arg value: 101234567000 (type: double) -get_class() expects parameter 1 to be object, float given +get_class() expects argument #1 ($object) to be of type object, float given Arg value: 1.07654321E-9 (type: double) -get_class() expects parameter 1 to be object, float given +get_class() expects argument #1 ($object) to be of type object, float given Arg value: 0.5 (type: double) -get_class() expects parameter 1 to be object, float given +get_class() expects argument #1 ($object) to be of type object, float given Arg value: Array (type: array) -get_class() expects parameter 1 to be object, array given +get_class() expects argument #1 ($object) to be of type object, array given Arg value: Array (type: array) -get_class() expects parameter 1 to be object, array given +get_class() expects argument #1 ($object) to be of type object, array given Arg value: Array (type: array) -get_class() expects parameter 1 to be object, array given +get_class() expects argument #1 ($object) to be of type object, array given Arg value: Array (type: array) -get_class() expects parameter 1 to be object, array given +get_class() expects argument #1 ($object) to be of type object, array given Arg value: Array (type: array) -get_class() expects parameter 1 to be object, array given +get_class() expects argument #1 ($object) to be of type object, array given Arg value: (type: NULL) -get_class() expects parameter 1 to be object, null given +get_class() expects argument #1 ($object) to be of type object, null given Arg value: (type: NULL) -get_class() expects parameter 1 to be object, null given +get_class() expects argument #1 ($object) to be of type object, null given Arg value: 1 (type: boolean) -get_class() expects parameter 1 to be object, bool given +get_class() expects argument #1 ($object) to be of type object, bool given Arg value: (type: boolean) -get_class() expects parameter 1 to be object, bool given +get_class() expects argument #1 ($object) to be of type object, bool given Arg value: 1 (type: boolean) -get_class() expects parameter 1 to be object, bool given +get_class() expects argument #1 ($object) to be of type object, bool given Arg value: (type: boolean) -get_class() expects parameter 1 to be object, bool given +get_class() expects argument #1 ($object) to be of type object, bool given Arg value: (type: string) -get_class() expects parameter 1 to be object, string given +get_class() expects argument #1 ($object) to be of type object, string given Arg value: (type: string) -get_class() expects parameter 1 to be object, string given +get_class() expects argument #1 ($object) to be of type object, string given Arg value: string (type: string) -get_class() expects parameter 1 to be object, string given +get_class() expects argument #1 ($object) to be of type object, string given Arg value: string (type: string) -get_class() expects parameter 1 to be object, string given +get_class() expects argument #1 ($object) to be of type object, string given Arg value: (type: NULL) -get_class() expects parameter 1 to be object, null given +get_class() expects argument #1 ($object) to be of type object, null given Arg value: (type: NULL) -get_class() expects parameter 1 to be object, null given +get_class() expects argument #1 ($object) to be of type object, null given Done diff --git a/ext/standard/tests/file/006_variation2.phpt b/ext/standard/tests/file/006_variation2.phpt index a5c95ab1da..18d63b8a44 100644 --- a/ext/standard/tests/file/006_variation2.phpt +++ b/ext/standard/tests/file/006_variation2.phpt @@ -86,7 +86,7 @@ chmod(__DIR__."/006_variation2", 0777); unlink(__DIR__."/006_variation2.tmp"); rmdir(__DIR__."/006_variation2"); ?> ---EXPECTF-- +--EXPECT-- *** Testing fileperms() & chmod() : usage variations *** *** Testing fileperms(), chmod() with miscellaneous permissions *** @@ -146,15 +146,15 @@ bool(true) bool(true) 43567 -- Iteration 12 -- -chmod() expects parameter 2 to be int, string given -chmod() expects parameter 2 to be int, string given +chmod() expects argument #2 ($mode) to be of type int, string given +chmod() expects argument #2 ($mode) to be of type int, string given -- Iteration 13 -- -chmod() expects parameter 2 to be int, string given -chmod() expects parameter 2 to be int, string given +chmod() expects argument #2 ($mode) to be of type int, string given +chmod() expects argument #2 ($mode) to be of type int, string given -- Iteration 14 -- -chmod() expects parameter 2 to be int, string given -chmod() expects parameter 2 to be int, string given +chmod() expects argument #2 ($mode) to be of type int, string given +chmod() expects argument #2 ($mode) to be of type int, string given -- Iteration 15 -- -chmod() expects parameter 2 to be int, string given -chmod() expects parameter 2 to be int, string given +chmod() expects argument #2 ($mode) to be of type int, string given +chmod() expects argument #2 ($mode) to be of type int, string given *** Done *** diff --git a/ext/standard/tests/file/bug39863.phpt b/ext/standard/tests/file/bug39863.phpt index 174e349b15..a4eb48def3 100644 --- a/ext/standard/tests/file/bug39863.phpt +++ b/ext/standard/tests/file/bug39863.phpt @@ -14,4 +14,4 @@ try { } ?> --EXPECT-- -file_exists() expects parameter 1 to be a valid path, string given +file_exists() expects argument #1 ($filename) to be a valid path, string given diff --git a/ext/standard/tests/file/chgrp.phpt b/ext/standard/tests/file/chgrp.phpt index 9003979a75..9950c9e3fc 100644 --- a/ext/standard/tests/file/chgrp.phpt +++ b/ext/standard/tests/file/chgrp.phpt @@ -13,5 +13,5 @@ try { echo $exception->getMessage() . "\n"; } ?> ---EXPECTF-- -Parameter 2 should be string or int, null given +--EXPECT-- +chgrp() expects argument #2 ($group) to be of type string|int, null given diff --git a/ext/standard/tests/file/disk_free_space_variation.phpt b/ext/standard/tests/file/disk_free_space_variation.phpt index d47850d898..9e8d0cd180 100644 --- a/ext/standard/tests/file/disk_free_space_variation.phpt +++ b/ext/standard/tests/file/disk_free_space_variation.phpt @@ -110,19 +110,19 @@ float(%d) float(%d) -- Iteration 9 -- -disk_free_space() expects parameter 1 to be a valid path, string given -diskfreespace() expects parameter 1 to be a valid path, string given +disk_free_space() expects argument #1 ($directory) to be a valid path, string given +diskfreespace() expects argument #1 ($directory) to be a valid path, string given -- Iteration 10 -- -disk_free_space() expects parameter 1 to be a valid path, string given -diskfreespace() expects parameter 1 to be a valid path, string given +disk_free_space() expects argument #1 ($directory) to be a valid path, string given +diskfreespace() expects argument #1 ($directory) to be a valid path, string given -- Iteration 11 -- -disk_free_space() expects parameter 1 to be a valid path, string given -diskfreespace() expects parameter 1 to be a valid path, string given +disk_free_space() expects argument #1 ($directory) to be a valid path, string given +diskfreespace() expects argument #1 ($directory) to be a valid path, string given -- Iteration 12 -- -disk_free_space() expects parameter 1 to be a valid path, string given -diskfreespace() expects parameter 1 to be a valid path, string given +disk_free_space() expects argument #1 ($directory) to be a valid path, string given +diskfreespace() expects argument #1 ($directory) to be a valid path, string given --- Done --- diff --git a/ext/standard/tests/file/disk_total_space_variation.phpt b/ext/standard/tests/file/disk_total_space_variation.phpt index e35981f278..b5f5119c03 100644 --- a/ext/standard/tests/file/disk_total_space_variation.phpt +++ b/ext/standard/tests/file/disk_total_space_variation.phpt @@ -102,16 +102,16 @@ float(%d) float(%d) -- Iteration 9 -- -disk_total_space() expects parameter 1 to be a valid path, string given +disk_total_space() expects argument #1 ($directory) to be a valid path, string given -- Iteration 10 -- -disk_total_space() expects parameter 1 to be a valid path, string given +disk_total_space() expects argument #1 ($directory) to be a valid path, string given -- Iteration 11 -- -disk_total_space() expects parameter 1 to be a valid path, string given +disk_total_space() expects argument #1 ($directory) to be a valid path, string given -- Iteration 12 -- -disk_total_space() expects parameter 1 to be a valid path, string given +disk_total_space() expects argument #1 ($directory) to be a valid path, string given *** Testing with Binary Input *** float(%s) diff --git a/ext/standard/tests/file/file_get_contents_variation8-win32.phpt b/ext/standard/tests/file/file_get_contents_variation8-win32.phpt index 1edd46a9cb..878fa1a7c5 100644 --- a/ext/standard/tests/file/file_get_contents_variation8-win32.phpt +++ b/ext/standard/tests/file/file_get_contents_variation8-win32.phpt @@ -82,10 +82,10 @@ Warning: file_get_contents( ): Failed to open stream: Permission denied in %s on bool(false) -- Filename: \0 -- -file_get_contents() expects parameter 1 to be a valid path, string given +file_get_contents() expects argument #1 ($filename) to be a valid path, string given -- Filename: array() -- -file_get_contents() expects parameter 1 to be a valid path, array given +file_get_contents() expects argument #1 ($filename) to be a valid path, array given -- Filename: /no/such/file/dir -- diff --git a/ext/standard/tests/file/file_get_contents_variation8.phpt b/ext/standard/tests/file/file_get_contents_variation8.phpt index 9277106992..c2bb209461 100644 --- a/ext/standard/tests/file/file_get_contents_variation8.phpt +++ b/ext/standard/tests/file/file_get_contents_variation8.phpt @@ -75,9 +75,9 @@ bool(false) Warning: file_get_contents( ): Failed to open stream: No such file or directory in %s on line %d bool(false) -- Iteration 6 -- -file_get_contents() expects parameter 1 to be a valid path, string given +file_get_contents() expects argument #1 ($filename) to be a valid path, string given -- Iteration 7 -- -file_get_contents() expects parameter 1 to be a valid path, array given +file_get_contents() expects argument #1 ($filename) to be a valid path, array given -- Iteration 8 -- Warning: file_get_contents(/no/such/file/dir): Failed to open stream: No such file or directory in %s on line %d diff --git a/ext/standard/tests/file/file_put_contents_variation8-win32.phpt b/ext/standard/tests/file/file_put_contents_variation8-win32.phpt index 71e672e8e9..310d6abb86 100644 --- a/ext/standard/tests/file/file_put_contents_variation8-win32.phpt +++ b/ext/standard/tests/file/file_put_contents_variation8-win32.phpt @@ -82,10 +82,10 @@ Warning: file_put_contents( ): Failed to open stream: Permission denied in %s on Failed to write data to: " " -- Filename: \0 -- -file_put_contents() expects parameter 1 to be a valid path, string given +file_put_contents() expects argument #1 ($filename) to be a valid path, string given -- Filename: array() -- -file_put_contents() expects parameter 1 to be a valid path, array given +file_put_contents() expects argument #1 ($filename) to be a valid path, array given -- Filename: /no/such/file/dir -- diff --git a/ext/standard/tests/file/file_put_contents_variation8.phpt b/ext/standard/tests/file/file_put_contents_variation8.phpt index 7c72ca8516..5b8c156a94 100644 --- a/ext/standard/tests/file/file_put_contents_variation8.phpt +++ b/ext/standard/tests/file/file_put_contents_variation8.phpt @@ -81,13 +81,13 @@ Failed to write data to: -- Iteration 5 -- 9 bytes written to: -- Iteration 6 -- -file_put_contents() expects parameter 1 to be a valid path, string given +file_put_contents() expects argument #1 ($filename) to be a valid path, string given -- Iteration 7 -- -file_put_contents() expects parameter 1 to be a valid path, array given +file_put_contents() expects argument #1 ($filename) to be a valid path, array given -- Iteration 8 -- Warning: file_put_contents(%sdir): Failed to open stream: %s in %s on line %d -Failed to write data to: %sdir +Failed to write data to: %sir -- Iteration 9 -- Warning: file_put_contents(%sphp): Failed to open stream: %s in %s on line %d diff --git a/ext/standard/tests/file/filegroup_variation3.phpt b/ext/standard/tests/file/filegroup_variation3.phpt index 274f12bb70..aff47ef1c9 100644 --- a/ext/standard/tests/file/filegroup_variation3.phpt +++ b/ext/standard/tests/file/filegroup_variation3.phpt @@ -78,8 +78,8 @@ bool(false) Warning: filegroup(): stat failed for %s/filegroup_variation3/filegroup*.tmp in %s on line %d bool(false) - Iteration 7 - -filegroup() expects parameter 1 to be a valid path, string given +filegroup() expects argument #1 ($filename) to be a valid path, string given - Iteration 8 - -filegroup() expects parameter 1 to be a valid path, string given +filegroup() expects argument #1 ($filename) to be a valid path, string given *** Done *** diff --git a/ext/standard/tests/file/fileinode_variation3.phpt b/ext/standard/tests/file/fileinode_variation3.phpt index 16f67b0676..b8ed3962df 100644 --- a/ext/standard/tests/file/fileinode_variation3.phpt +++ b/ext/standard/tests/file/fileinode_variation3.phpt @@ -79,8 +79,8 @@ bool(false) Warning: fileinode(): stat failed for %s/fileinode_variation3/fileinode*.tmp in %s on line %d bool(false) - Iteration 7 - -fileinode() expects parameter 1 to be a valid path, string given +fileinode() expects argument #1 ($filename) to be a valid path, string given - Iteration 8 - -fileinode() expects parameter 1 to be a valid path, string given +fileinode() expects argument #1 ($filename) to be a valid path, string given *** Done *** diff --git a/ext/standard/tests/file/fileowner_variation3.phpt b/ext/standard/tests/file/fileowner_variation3.phpt index 01d2da2445..8768f9d69b 100644 --- a/ext/standard/tests/file/fileowner_variation3.phpt +++ b/ext/standard/tests/file/fileowner_variation3.phpt @@ -79,8 +79,8 @@ bool(false) Warning: fileowner(): stat failed for %s/fileowner_variation3/fileowner*.tmp in %s on line %d bool(false) - Iteration 7 - -fileowner() expects parameter 1 to be a valid path, string given +fileowner() expects argument #1 ($filename) to be a valid path, string given - Iteration 8 - -fileowner() expects parameter 1 to be a valid path, string given +fileowner() expects argument #1 ($filename) to be a valid path, string given *** Done *** diff --git a/ext/standard/tests/file/fileperms_variation3.phpt b/ext/standard/tests/file/fileperms_variation3.phpt index 1588ee67fe..e58594e7d1 100644 --- a/ext/standard/tests/file/fileperms_variation3.phpt +++ b/ext/standard/tests/file/fileperms_variation3.phpt @@ -78,8 +78,8 @@ bool(false) Warning: fileperms(): stat failed for %s/fileperms_variation3/fileperms*.tmp in %s on line %d bool(false) - Iteration 7 - -fileperms() expects parameter 1 to be a valid path, string given +fileperms() expects argument #1 ($filename) to be a valid path, string given - Iteration 8 - -fileperms() expects parameter 1 to be a valid path, string given +fileperms() expects argument #1 ($filename) to be a valid path, string given *** Done *** diff --git a/ext/standard/tests/file/flock_error.phpt b/ext/standard/tests/file/flock_error.phpt index ced25b2e71..9eb5958dbb 100644 --- a/ext/standard/tests/file/flock_error.phpt +++ b/ext/standard/tests/file/flock_error.phpt @@ -65,13 +65,13 @@ Illegal operation argument --- Iteration 3 --- Illegal operation argument --- Iteration 4 --- -flock() expects parameter 2 to be int, array given +flock() expects argument #2 ($operation) to be of type int, array given --- Iteration 5 --- -flock() expects parameter 2 to be int, array given +flock() expects argument #2 ($operation) to be of type int, array given --- Iteration 6 --- -flock() expects parameter 2 to be int, string given +flock() expects argument #2 ($operation) to be of type int, string given --- Iteration 7 --- -flock() expects parameter 2 to be int, string given +flock() expects argument #2 ($operation) to be of type int, string given --- Iteration 8 --- -flock() expects parameter 2 to be int, string given +flock() expects argument #2 ($operation) to be of type int, string given flock(): supplied resource is not a valid stream resource diff --git a/ext/standard/tests/file/fnmatch_variation.phpt b/ext/standard/tests/file/fnmatch_variation.phpt index 4318a844e8..32bb6b32a6 100644 --- a/ext/standard/tests/file/fnmatch_variation.phpt +++ b/ext/standard/tests/file/fnmatch_variation.phpt @@ -191,9 +191,9 @@ bool(false) -- Iteration 22 -- bool(false) -- Iteration 23 -- -fnmatch() expects parameter 1 to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 24 -- -fnmatch() expects parameter 1 to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 25 -- bool(false) -- Iteration 26 -- @@ -267,44 +267,44 @@ bool(true) --- With Strings --- -- Iteration 0 -- bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(true) -- Iteration 1 -- -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 2 -- bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(true) -- Iteration 3 -- -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 4 -- bool(false) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(true) bool(false) -- Iteration 5 -- bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(true) @@ -405,42 +405,42 @@ bool(true) bool(true) bool(true) bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(false) -- Iteration 1 -- bool(true) bool(true) bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(false) -- Iteration 2 -- bool(true) bool(true) bool(true) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(false) -- Iteration 3 -- -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given -fnmatch() expects parameter 1 to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given +fnmatch() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 4 -- bool(false) bool(false) bool(false) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(true) bool(false) -- Iteration 5 -- bool(false) bool(false) bool(false) -fnmatch() expects parameter 2 to be a valid path, string given +fnmatch() expects argument #2 ($filename) to be a valid path, string given bool(false) bool(true) diff --git a/ext/standard/tests/file/fopen_variation10-win32.phpt b/ext/standard/tests/file/fopen_variation10-win32.phpt index 97e2d8a6fb..234022dd6b 100644 --- a/ext/standard/tests/file/fopen_variation10-win32.phpt +++ b/ext/standard/tests/file/fopen_variation10-win32.phpt @@ -97,21 +97,21 @@ file in root Warning: fopen(c\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --\-- Warning: fopen(\\fopen_variation10.tmp): Failed to open stream: Invalid argument in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --/-- Warning: fopen(/\fopen_variation10.tmp): Failed to open stream: Invalid argument in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --c:fopen10.tmpdirTwo-- file in fopen10.tmpdirTwo @@ -121,7 +121,7 @@ file in fopen10.tmpdirTwo Warning: fopen(c:adir\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --c:\/-- file in root @@ -143,4 +143,4 @@ file in fopen10.tmpDir Warning: fopen(/sortout\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/standard/tests/file/fopen_variation11-win32.phpt b/ext/standard/tests/file/fopen_variation11-win32.phpt index a1d4c4c4e7..61879edf76 100644 --- a/ext/standard/tests/file/fopen_variation11-win32.phpt +++ b/ext/standard/tests/file/fopen_variation11-win32.phpt @@ -95,21 +95,21 @@ file in root Warning: fopen(c\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --\-- Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: Invalid argument in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --/-- Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: Invalid argument in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --c:fopen11.tmpdirTwo-- file in fopen11.tmpdirTwo @@ -119,7 +119,7 @@ file in fopen11.tmpdirTwo Warning: fopen(c:adir\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d --c:\/-- file in root @@ -141,4 +141,4 @@ file in fopen11.tmpDir Warning: fopen(/sortout\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d file not opened for read -Warning: fclose() expects parameter 1 to be resource, bool given in %s on line %d +Warning: fclose() expects argument #1 to be of type resource, bool given in %s on line %d diff --git a/ext/standard/tests/file/glob_variation-win32-mb.phpt b/ext/standard/tests/file/glob_variation-win32-mb.phpt index 2ced6fd355..814f18a71d 100644 --- a/ext/standard/tests/file/glob_variation-win32-mb.phpt +++ b/ext/standard/tests/file/glob_variation-win32-mb.phpt @@ -334,7 +334,7 @@ array(0) { } -- Iteration 8 -- -glob() expects parameter 1 to be a valid path, string given +glob() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 9 -- array(0) { @@ -437,7 +437,7 @@ array(1) { array(0) { } -- Iteration 8 -- -glob() expects parameter 1 to be a valid path, string given +glob() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 9 -- array(0) { } diff --git a/ext/standard/tests/file/glob_variation-win32.phpt b/ext/standard/tests/file/glob_variation-win32.phpt index 32d56e8762..966d2b28e0 100644 --- a/ext/standard/tests/file/glob_variation-win32.phpt +++ b/ext/standard/tests/file/glob_variation-win32.phpt @@ -333,7 +333,7 @@ array(0) { } -- Iteration 8 -- -glob() expects parameter 1 to be a valid path, string given +glob() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 9 -- array(0) { @@ -436,7 +436,7 @@ array(1) { array(0) { } -- Iteration 8 -- -glob() expects parameter 1 to be a valid path, string given +glob() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 9 -- array(0) { } diff --git a/ext/standard/tests/file/glob_variation.phpt b/ext/standard/tests/file/glob_variation.phpt index eb5aff0cf4..655b3efe78 100644 --- a/ext/standard/tests/file/glob_variation.phpt +++ b/ext/standard/tests/file/glob_variation.phpt @@ -336,7 +336,7 @@ array(0) { } -- Iteration 8 -- -glob() expects parameter 1 to be a valid path, string given +glob() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 9 -- array(0) { @@ -439,7 +439,7 @@ array(1) { array(0) { } -- Iteration 8 -- -glob() expects parameter 1 to be a valid path, string given +glob() expects argument #1 ($pattern) to be a valid path, string given -- Iteration 9 -- array(0) { } diff --git a/ext/standard/tests/file/is_dir_variation4.phpt b/ext/standard/tests/file/is_dir_variation4.phpt index 8d4838524e..f527974d90 100644 --- a/ext/standard/tests/file/is_dir_variation4.phpt +++ b/ext/standard/tests/file/is_dir_variation4.phpt @@ -54,7 +54,7 @@ $file_path = __DIR__; $dir_name = $file_path."/is_dir_variation4"; rmdir($dir_name); ?> ---EXPECTF-- +--EXPECT-- *** Testing is_dir() with different notations of dir names *** -- Iteration 1 -- bool(true) @@ -81,9 +81,9 @@ bool(true) bool(false) -- Iteration 9 -- -is_dir() expects parameter 1 to be a valid path, string given +is_dir() expects argument #1 ($filename) to be a valid path, string given -- Iteration 10 -- -is_dir() expects parameter 1 to be a valid path, string given +is_dir() expects argument #1 ($filename) to be a valid path, string given *** Done *** diff --git a/ext/standard/tests/file/is_executable_variation1.phpt b/ext/standard/tests/file/is_executable_variation1.phpt index 5c8193b44d..9dadbd6b0a 100644 --- a/ext/standard/tests/file/is_executable_variation1.phpt +++ b/ext/standard/tests/file/is_executable_variation1.phpt @@ -67,7 +67,7 @@ echo "Done\n"; unlink(__DIR__."/is_executable_variation1/bar.tmp"); rmdir(__DIR__."/is_executable_variation1/"); ?> ---EXPECTF-- +--EXPECT-- *** Testing is_executable(): usage variations *** -- Iteration 1 -- bool(false) @@ -80,9 +80,9 @@ bool(false) -- Iteration 5 -- bool(false) -- Iteration 6 -- -is_executable() expects parameter 1 to be a valid path, string given +is_executable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 7 -- -is_executable() expects parameter 1 to be a valid path, string given +is_executable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 8 -- bool(false) -- Iteration 9 -- diff --git a/ext/standard/tests/file/is_file_variation4.phpt b/ext/standard/tests/file/is_file_variation4.phpt index e67180c086..5651c5fc02 100644 --- a/ext/standard/tests/file/is_file_variation4.phpt +++ b/ext/standard/tests/file/is_file_variation4.phpt @@ -56,7 +56,7 @@ $dir_name = $file_path."/is_file_variation4"; unlink($dir_name."/is_file_variation4.tmp"); rmdir($dir_name); ?> ---EXPECTF-- +--EXPECT-- *** Testing is_file() with different notations of file names *** - Iteration 1 - bool(true) @@ -71,8 +71,8 @@ bool(false) - Iteration 6 - bool(false) - Iteration 7 - -is_file() expects parameter 1 to be a valid path, string given +is_file() expects argument #1 ($filename) to be a valid path, string given - Iteration 8 - -is_file() expects parameter 1 to be a valid path, string given +is_file() expects argument #1 ($filename) to be a valid path, string given *** Done *** diff --git a/ext/standard/tests/file/is_readable_variation1.phpt b/ext/standard/tests/file/is_readable_variation1.phpt index ab2e591ad5..102f9b177c 100644 --- a/ext/standard/tests/file/is_readable_variation1.phpt +++ b/ext/standard/tests/file/is_readable_variation1.phpt @@ -81,11 +81,11 @@ bool(false) -- Iteration 6 -- bool(false) -- Iteration 7 -- -is_readable() expects parameter 1 to be a valid path, string given +is_readable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 8 -- -is_readable() expects parameter 1 to be a valid path, string given +is_readable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 9 -- -is_readable() expects parameter 1 to be a valid path, string given +is_readable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 10 -- bool(true) -- Iteration 11 -- diff --git a/ext/standard/tests/file/is_writable_variation1.phpt b/ext/standard/tests/file/is_writable_variation1.phpt index 45ef1524b6..53090a9f80 100644 --- a/ext/standard/tests/file/is_writable_variation1.phpt +++ b/ext/standard/tests/file/is_writable_variation1.phpt @@ -92,14 +92,14 @@ bool(false) bool(false) bool(false) -- Iteration 7 -- -is_writable() expects parameter 1 to be a valid path, string given -is_writeable() expects parameter 1 to be a valid path, string given +is_writable() expects argument #1 ($filename) to be a valid path, string given +is_writeable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 8 -- -is_writable() expects parameter 1 to be a valid path, string given -is_writeable() expects parameter 1 to be a valid path, string given +is_writable() expects argument #1 ($filename) to be a valid path, string given +is_writeable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 9 -- -is_writable() expects parameter 1 to be a valid path, string given -is_writeable() expects parameter 1 to be a valid path, string given +is_writable() expects argument #1 ($filename) to be a valid path, string given +is_writeable() expects argument #1 ($filename) to be a valid path, string given -- Iteration 10 -- bool(true) bool(true) diff --git a/ext/standard/tests/file/mkdir_rmdir_variation2.phpt b/ext/standard/tests/file/mkdir_rmdir_variation2.phpt index bd6a7c56a9..bcf83fb2bc 100644 --- a/ext/standard/tests/file/mkdir_rmdir_variation2.phpt +++ b/ext/standard/tests/file/mkdir_rmdir_variation2.phpt @@ -63,8 +63,8 @@ Warning: rmdir(%s/mkdir_variation2/): %s on line %d bool(false) *** Testing mkdir() and rmdir() for binary safe functionality *** -mkdir() expects parameter 1 to be a valid path, string given -rmdir() expects parameter 1 to be a valid path, string given +mkdir() expects argument #1 ($pathname) to be a valid path, string given +rmdir() expects argument #1 ($dirname) to be a valid path, string given *** Testing mkdir() with miscellaneous input *** bool(true) diff --git a/ext/standard/tests/file/readfile_variation10-win32.phpt b/ext/standard/tests/file/readfile_variation10-win32.phpt index c6c3f87a36..02fa1266fd 100644 --- a/ext/standard/tests/file/readfile_variation10-win32.phpt +++ b/ext/standard/tests/file/readfile_variation10-win32.phpt @@ -75,10 +75,10 @@ Warning: readfile(): Filename cannot be empty in %s on line %d Warning: readfile( ): Failed to open stream: Permission denied in %s on line %d -- Filename: \0 -- -readfile() expects parameter 1 to be a valid path, string given +readfile() expects argument #1 ($filename) to be a valid path, string given -- Filename: array() -- -readfile() expects parameter 1 to be a valid path, array given +readfile() expects argument #1 ($filename) to be a valid path, array given -- Filename: /no/such/file/dir -- diff --git a/ext/standard/tests/file/readfile_variation10.phpt b/ext/standard/tests/file/readfile_variation10.phpt Binary files differindex fd501eaef5..f735ba5b58 100644 --- a/ext/standard/tests/file/readfile_variation10.phpt +++ b/ext/standard/tests/file/readfile_variation10.phpt diff --git a/ext/standard/tests/file/stream_rfc2397_006.phpt b/ext/standard/tests/file/stream_rfc2397_006.phpt index 2c8b8fd720..fd362a6ea0 100644 --- a/ext/standard/tests/file/stream_rfc2397_006.phpt +++ b/ext/standard/tests/file/stream_rfc2397_006.phpt @@ -23,8 +23,8 @@ foreach($streams as $stream) ?> --EXPECTF-- -file_get_contents() expects parameter 1 to be a valid path, string given -file_get_contents() expects parameter 1 to be a valid path, string given +file_get_contents() expects argument #1 ($filename) to be a valid path, string given +file_get_contents() expects argument #1 ($filename) to be a valid path, string given Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): Failed to open stream: rfc2397: unable to decode in %sstream_rfc2397_006.php on line %d bool(false) diff --git a/ext/standard/tests/file/tempnam_variation3-win32.phpt b/ext/standard/tests/file/tempnam_variation3-win32.phpt index 3311b0bc7c..1639cebe99 100644 --- a/ext/standard/tests/file/tempnam_variation3-win32.phpt +++ b/ext/standard/tests/file/tempnam_variation3-win32.phpt @@ -110,9 +110,9 @@ Notice: tempnam(): file created in the system's temporary directory in %stempnam Failed, not created in the correct directory %s vs %s 0 -- Iteration 6 -- -tempnam() expects parameter 2 to be a valid path, string given +tempnam() expects argument #2 ($prefix) to be a valid path, string given -- Iteration 7 -- -tempnam() expects parameter 2 to be a valid path, array given +tempnam() expects argument #2 ($prefix) to be a valid path, array given -- Iteration 8 -- OK -- Iteration 9 -- diff --git a/ext/standard/tests/file/tempnam_variation3.phpt b/ext/standard/tests/file/tempnam_variation3.phpt index 78ef3bbaca..b255b32f41 100644 --- a/ext/standard/tests/file/tempnam_variation3.phpt +++ b/ext/standard/tests/file/tempnam_variation3.phpt @@ -106,9 +106,9 @@ File name is => %s/%s File permissions are => 100600 File created in => directory specified -- Iteration 6 -- -tempnam() expects parameter 2 to be a valid path, string given +tempnam() expects argument #2 ($prefix) to be a valid path, string given -- Iteration 7 -- -tempnam() expects parameter 2 to be a valid path, array given +tempnam() expects argument #2 ($prefix) to be a valid path, array given -- Iteration 8 -- File name is => %s/dir%s File permissions are => 100600 diff --git a/ext/standard/tests/file/tempnam_variation7-win32.phpt b/ext/standard/tests/file/tempnam_variation7-win32.phpt index 26ccaef84d..069b2f369d 100644 --- a/ext/standard/tests/file/tempnam_variation7-win32.phpt +++ b/ext/standard/tests/file/tempnam_variation7-win32.phpt @@ -100,9 +100,9 @@ File name is => %s%et%s File permissions are => 100666 File created in => temp dir -- Iteration 6 -- -tempnam() expects parameter 1 to be a valid path, string given +tempnam() expects argument #1 ($dir) to be a valid path, string given -- Iteration 7 -- -tempnam() expects parameter 1 to be a valid path, array given +tempnam() expects argument #1 ($dir) to be a valid path, array given -- Iteration 8 -- Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.php on line %d diff --git a/ext/standard/tests/file/tempnam_variation7.phpt b/ext/standard/tests/file/tempnam_variation7.phpt index a385fe43b6..5ee1d80c7d 100644 --- a/ext/standard/tests/file/tempnam_variation7.phpt +++ b/ext/standard/tests/file/tempnam_variation7.phpt @@ -105,9 +105,9 @@ File name is => %s%etempnam_variation3.tmp%s File permissions are => 100600 File created in => temp dir -- Iteration 6 -- -tempnam() expects parameter 1 to be a valid path, string given +tempnam() expects argument #1 ($dir) to be a valid path, string given -- Iteration 7 -- -tempnam() expects parameter 1 to be a valid path, array given +tempnam() expects argument #1 ($dir) to be a valid path, array given -- Iteration 8 -- Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on line %d diff --git a/ext/standard/tests/file/windows_links/bug78862.phpt b/ext/standard/tests/file/windows_links/bug78862.phpt index 3bd787e705..70a26c1d5f 100644 --- a/ext/standard/tests/file/windows_links/bug78862.phpt +++ b/ext/standard/tests/file/windows_links/bug78862.phpt @@ -7,7 +7,7 @@ var_dump(link(__DIR__ . "/bug78862.target\0more", __DIR__ . "/bug78862.link\0mor var_dump(file_exists(__DIR__ . '/bug78862.link')); ?> --EXPECTF-- -Fatal error: Uncaught TypeError: link() expects parameter 1 to be a valid path, string given in %s:%d +Fatal error: Uncaught TypeError: link() expects argument #1 ($target) to be a valid path, string given in %s:%d Stack trace: #0 %s(%d): link('%s', '%s') #1 {main} diff --git a/ext/standard/tests/general_functions/bug41970.phpt b/ext/standard/tests/general_functions/bug41970.phpt index f43bf64380..211ad3b2d3 100644 --- a/ext/standard/tests/general_functions/bug41970.phpt +++ b/ext/standard/tests/general_functions/bug41970.phpt @@ -21,11 +21,11 @@ try { echo "Done\n"; ?> --EXPECTF-- -Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line %d +Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d bool(true) -strlen() expects parameter 1 to be string, array given +strlen() expects argument #1 ($str) to be of type string, array given -Warning: Parameter 1 to sort() expected to be a reference, value given in %sbug41970.php on line %d +Warning: sort() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d bool(true) -strlen() expects parameter 1 to be string, array given +strlen() expects argument #1 ($str) to be of type string, array given Done diff --git a/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt b/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt index a5b61d9971..1f2abbae29 100644 --- a/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt +++ b/ext/standard/tests/general_functions/call_user_func_array_variation_001.phpt @@ -42,7 +42,7 @@ array(1) { } ------ Calling by_ref() with unreferenced argument ------ -Warning: Parameter 1 to by_ref() expected to be a reference, value given in %s on line %d +Warning: by_ref() expects argument #1 ($arg) to be passed by reference, value given in %s on line %d array(1) { [0]=> string(8) "original" diff --git a/ext/standard/tests/general_functions/callbacks_001.phpt b/ext/standard/tests/general_functions/callbacks_001.phpt index 827f5c0182..b667da66c9 100644 --- a/ext/standard/tests/general_functions/callbacks_001.phpt +++ b/ext/standard/tests/general_functions/callbacks_001.phpt @@ -106,4 +106,4 @@ O $this|O::who O $this|B::who -call_user_func() expects parameter 1 to be a valid callback, class 'P' is not a subclass of 'B' +call_user_func() expects argument #1 ($function) to be a valid callback, class 'P' is not a subclass of 'B' diff --git a/ext/standard/tests/general_functions/callbacks_002.phpt b/ext/standard/tests/general_functions/callbacks_002.phpt index 0d44035e0e..4f327e3b86 100644 --- a/ext/standard/tests/general_functions/callbacks_002.phpt +++ b/ext/standard/tests/general_functions/callbacks_002.phpt @@ -21,6 +21,6 @@ try { ?> --EXPECTF-- -call_user_func() expects parameter 1 to be a valid callback, class 'Foo' not found -call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object -call_user_func() expects parameter 1 to be a valid callback, second array member is not a valid method +call_user_func() expects argument #1 ($function) to be a valid callback, class 'Foo' not found +call_user_func() expects argument #1 ($function) to be a valid callback, first array member is not a valid class name or object +call_user_func() expects argument #1 ($function) to be a valid callback, second array member is not a valid method diff --git a/ext/standard/tests/math/abs_variation.phpt b/ext/standard/tests/math/abs_variation.phpt index 854cb71181..e635fa2fca 100644 --- a/ext/standard/tests/math/abs_variation.phpt +++ b/ext/standard/tests/math/abs_variation.phpt @@ -105,25 +105,25 @@ int(1) int(0) -- Iteration 7 -- -abs() expects parameter 1 to be int or float, string given +abs() expects argument #1 ($number) to be of type int|float, string given -- Iteration 8 -- -abs() expects parameter 1 to be int or float, string given +abs() expects argument #1 ($number) to be of type int|float, string given -- Iteration 9 -- -abs() expects parameter 1 to be int or float, array given +abs() expects argument #1 ($number) to be of type int|float, array given -- Iteration 10 -- -abs() expects parameter 1 to be int or float, string given +abs() expects argument #1 ($number) to be of type int|float, string given -- Iteration 11 -- -abs() expects parameter 1 to be int or float, string given +abs() expects argument #1 ($number) to be of type int|float, string given -- Iteration 12 -- -abs() expects parameter 1 to be int or float, string given +abs() expects argument #1 ($number) to be of type int|float, string given -- Iteration 13 -- -abs() expects parameter 1 to be int or float, object given +abs() expects argument #1 ($number) to be of type int|float, object given -- Iteration 14 -- int(0) @@ -132,4 +132,4 @@ int(0) int(0) -- Iteration 16 -- -abs() expects parameter 1 to be int or float, resource given +abs() expects argument #1 ($number) to be of type int|float, resource given diff --git a/ext/standard/tests/math/bindec_variation1.phpt b/ext/standard/tests/math/bindec_variation1.phpt index 2b166a3edd..9a29aa3480 100644 --- a/ext/standard/tests/math/bindec_variation1.phpt +++ b/ext/standard/tests/math/bindec_variation1.phpt @@ -151,7 +151,7 @@ int(0) int(0) -- Iteration 18 -- -bindec() expects parameter 1 to be string, array given +bindec() expects argument #1 ($binary_string) to be of type string, array given -- Iteration 19 -- @@ -175,4 +175,4 @@ int(0) int(0) -- Iteration 24 -- -bindec() expects parameter 1 to be string, resource given +bindec() expects argument #1 ($binary_string) to be of type string, resource given diff --git a/ext/standard/tests/math/bindec_variation1_64bit.phpt b/ext/standard/tests/math/bindec_variation1_64bit.phpt index 6784c13601..16f205f29f 100644 --- a/ext/standard/tests/math/bindec_variation1_64bit.phpt +++ b/ext/standard/tests/math/bindec_variation1_64bit.phpt @@ -151,7 +151,7 @@ int(0) int(0) -- Iteration 18 -- -bindec() expects parameter 1 to be string, array given +bindec() expects argument #1 ($binary_string) to be of type string, array given -- Iteration 19 -- @@ -175,4 +175,4 @@ int(0) int(0) -- Iteration 24 -- -bindec() expects parameter 1 to be string, resource given +bindec() expects argument #1 ($binary_string) to be of type string, resource given diff --git a/ext/standard/tests/math/ceil_variation1.phpt b/ext/standard/tests/math/ceil_variation1.phpt index 815093ea49..1946c77879 100644 --- a/ext/standard/tests/math/ceil_variation1.phpt +++ b/ext/standard/tests/math/ceil_variation1.phpt @@ -98,25 +98,25 @@ float(1) float(0) -- Iteration 7 -- -ceil() expects parameter 1 to be int or float, string given +ceil() expects argument #1 ($number) to be of type int|float, string given -- Iteration 8 -- -ceil() expects parameter 1 to be int or float, string given +ceil() expects argument #1 ($number) to be of type int|float, string given -- Iteration 9 -- -ceil() expects parameter 1 to be int or float, array given +ceil() expects argument #1 ($number) to be of type int|float, array given -- Iteration 10 -- -ceil() expects parameter 1 to be int or float, string given +ceil() expects argument #1 ($number) to be of type int|float, string given -- Iteration 11 -- -ceil() expects parameter 1 to be int or float, string given +ceil() expects argument #1 ($number) to be of type int|float, string given -- Iteration 12 -- -ceil() expects parameter 1 to be int or float, string given +ceil() expects argument #1 ($number) to be of type int|float, string given -- Iteration 13 -- -ceil() expects parameter 1 to be int or float, object given +ceil() expects argument #1 ($number) to be of type int|float, object given -- Iteration 14 -- float(0) @@ -125,4 +125,4 @@ float(0) float(0) -- Iteration 16 -- -ceil() expects parameter 1 to be int or float, resource given +ceil() expects argument #1 ($number) to be of type int|float, resource given diff --git a/ext/standard/tests/math/floor_variation1.phpt b/ext/standard/tests/math/floor_variation1.phpt index dd0e70b863..2aa72337bb 100644 --- a/ext/standard/tests/math/floor_variation1.phpt +++ b/ext/standard/tests/math/floor_variation1.phpt @@ -98,25 +98,25 @@ float(1) float(0) -- Iteration 7 -- -floor() expects parameter 1 to be int or float, string given +floor() expects argument #1 ($number) to be of type int|float, string given -- Iteration 8 -- -floor() expects parameter 1 to be int or float, string given +floor() expects argument #1 ($number) to be of type int|float, string given -- Iteration 9 -- -floor() expects parameter 1 to be int or float, array given +floor() expects argument #1 ($number) to be of type int|float, array given -- Iteration 10 -- -floor() expects parameter 1 to be int or float, string given +floor() expects argument #1 ($number) to be of type int|float, string given -- Iteration 11 -- -floor() expects parameter 1 to be int or float, string given +floor() expects argument #1 ($number) to be of type int|float, string given -- Iteration 12 -- -floor() expects parameter 1 to be int or float, string given +floor() expects argument #1 ($number) to be of type int|float, string given -- Iteration 13 -- -floor() expects parameter 1 to be int or float, object given +floor() expects argument #1 ($number) to be of type int|float, object given -- Iteration 14 -- float(0) @@ -125,4 +125,4 @@ float(0) float(0) -- Iteration 16 -- -floor() expects parameter 1 to be int or float, resource given +floor() expects argument #1 ($number) to be of type int|float, resource given diff --git a/ext/standard/tests/math/hexdec_variation1.phpt b/ext/standard/tests/math/hexdec_variation1.phpt index c50c550f61..5df2c7ff06 100644 --- a/ext/standard/tests/math/hexdec_variation1.phpt +++ b/ext/standard/tests/math/hexdec_variation1.phpt @@ -157,7 +157,7 @@ int(0) int(0) -- Iteration 20 -- -hexdec() expects parameter 1 to be string, array given +hexdec() expects argument #1 ($hex_string) to be of type string, array given -- Iteration 21 -- @@ -181,4 +181,4 @@ int(0) int(0) -- Iteration 26 -- -hexdec() expects parameter 1 to be string, resource given +hexdec() expects argument #1 ($hex_string) to be of type string, resource given diff --git a/ext/standard/tests/math/hexdec_variation1_64bit.phpt b/ext/standard/tests/math/hexdec_variation1_64bit.phpt index d3b22d8040..6d984502af 100644 --- a/ext/standard/tests/math/hexdec_variation1_64bit.phpt +++ b/ext/standard/tests/math/hexdec_variation1_64bit.phpt @@ -157,7 +157,7 @@ int(0) int(0) -- Iteration 20 -- -hexdec() expects parameter 1 to be string, array given +hexdec() expects argument #1 ($hex_string) to be of type string, array given -- Iteration 21 -- @@ -181,4 +181,4 @@ int(0) int(0) -- Iteration 26 -- -hexdec() expects parameter 1 to be string, resource given +hexdec() expects argument #1 ($hex_string) to be of type string, resource given diff --git a/ext/standard/tests/math/octdec_variation1.phpt b/ext/standard/tests/math/octdec_variation1.phpt index 48e4faf466..18dfc698ce 100644 --- a/ext/standard/tests/math/octdec_variation1.phpt +++ b/ext/standard/tests/math/octdec_variation1.phpt @@ -160,7 +160,7 @@ int(0) int(0) -- Iteration 20 -- -octdec() expects parameter 1 to be string, array given +octdec() expects argument #1 ($octal_string) to be of type string, array given -- Iteration 21 -- @@ -184,5 +184,5 @@ int(0) int(0) -- Iteration 26 -- -octdec() expects parameter 1 to be string, resource given +octdec() expects argument #1 ($octal_string) to be of type string, resource given ---Done--- diff --git a/ext/standard/tests/math/round_variation1.phpt b/ext/standard/tests/math/round_variation1.phpt index b8566e6df7..add8cf7637 100644 --- a/ext/standard/tests/math/round_variation1.phpt +++ b/ext/standard/tests/math/round_variation1.phpt @@ -143,25 +143,25 @@ float(1) float(0) -- Iteration 17 -- -round() expects parameter 1 to be int or float, string given +round() expects argument #1 ($number) to be of type int|float, string given -- Iteration 18 -- -round() expects parameter 1 to be int or float, string given +round() expects argument #1 ($number) to be of type int|float, string given -- Iteration 19 -- -round() expects parameter 1 to be int or float, array given +round() expects argument #1 ($number) to be of type int|float, array given -- Iteration 20 -- -round() expects parameter 1 to be int or float, string given +round() expects argument #1 ($number) to be of type int|float, string given -- Iteration 21 -- -round() expects parameter 1 to be int or float, string given +round() expects argument #1 ($number) to be of type int|float, string given -- Iteration 22 -- -round() expects parameter 1 to be int or float, string given +round() expects argument #1 ($number) to be of type int|float, string given -- Iteration 23 -- -round() expects parameter 1 to be int or float, object given +round() expects argument #1 ($number) to be of type int|float, object given -- Iteration 24 -- float(0) @@ -170,4 +170,4 @@ float(0) float(0) -- Iteration 26 -- -round() expects parameter 1 to be int or float, resource given +round() expects argument #1 ($number) to be of type int|float, resource given diff --git a/ext/standard/tests/password/password_hash_error.phpt b/ext/standard/tests/password/password_hash_error.phpt index a0d8c6461e..dc8def5eef 100644 --- a/ext/standard/tests/password/password_hash_error.phpt +++ b/ext/standard/tests/password/password_hash_error.phpt @@ -40,6 +40,6 @@ password_hash() expects at least 2 parameters, 1 given Warning: Array to string conversion in %s on line %d Unknown password hashing algorithm: Array -password_hash() expects parameter 3 to be array, object given -password_hash() expects parameter 3 to be array, string given -password_hash() expects parameter 1 to be string, array given +password_hash() expects argument #3 ($options) to be of type array, object given +password_hash() expects argument #3 ($options) to be of type array, string given +password_hash() expects argument #1 ($password) to be of type string, array given diff --git a/ext/standard/tests/password/password_needs_rehash_error.phpt b/ext/standard/tests/password/password_needs_rehash_error.phpt index f64723ee85..688bbb4eb7 100644 --- a/ext/standard/tests/password/password_needs_rehash_error.phpt +++ b/ext/standard/tests/password/password_needs_rehash_error.phpt @@ -26,9 +26,9 @@ try { echo "OK!"; ?> ---EXPECTF-- +--EXPECT-- password_needs_rehash() expects at least 2 parameters, 1 given bool(false) -password_needs_rehash() expects parameter 1 to be string, array given -password_needs_rehash() expects parameter 3 to be array, string given +password_needs_rehash() expects argument #1 ($hash) to be of type string, array given +password_needs_rehash() expects argument #3 ($options) to be of type array, string given OK! diff --git a/ext/standard/tests/strings/addcslashes_001.phpt b/ext/standard/tests/strings/addcslashes_001.phpt Binary files differindex 5b60f6168d..6b15319c0e 100644 --- a/ext/standard/tests/strings/addcslashes_001.phpt +++ b/ext/standard/tests/strings/addcslashes_001.phpt diff --git a/ext/standard/tests/strings/bug54322.phpt b/ext/standard/tests/strings/bug54322.phpt index f31f94fd84..fd491b2faa 100644 --- a/ext/standard/tests/strings/bug54322.phpt +++ b/ext/standard/tests/strings/bug54322.phpt @@ -9,4 +9,4 @@ try { } ?> --EXPECT-- -get_html_translation_table() expects parameter 1 to be int, float given +get_html_translation_table() expects argument #1 ($table) to be of type int, float given diff --git a/ext/standard/tests/strings/chunk_split_variation5.phpt b/ext/standard/tests/strings/chunk_split_variation5.phpt Binary files differindex bfcaa54e26..85690a234e 100644 --- a/ext/standard/tests/strings/chunk_split_variation5.phpt +++ b/ext/standard/tests/strings/chunk_split_variation5.phpt diff --git a/ext/standard/tests/strings/chunk_split_variation8.phpt b/ext/standard/tests/strings/chunk_split_variation8.phpt index 74b41ede03..fe19f325be 100644 --- a/ext/standard/tests/strings/chunk_split_variation8.phpt +++ b/ext/standard/tests/strings/chunk_split_variation8.phpt @@ -83,6 +83,6 @@ string(129) "This's heredoc string with and It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test chunk_split():::" -- Iteration 7 -- -chunk_split() expects parameter 2 to be int, float given +chunk_split() expects argument #2 ($chunklen) to be of type int, float given -- Iteration 8 -- Chunk length should be greater than zero diff --git a/ext/standard/tests/strings/implode1.phpt b/ext/standard/tests/strings/implode1.phpt Binary files differindex ae460d6037..4fdb97b6cd 100644 --- a/ext/standard/tests/strings/implode1.phpt +++ b/ext/standard/tests/strings/implode1.phpt diff --git a/ext/standard/tests/strings/join_error.phpt b/ext/standard/tests/strings/join_error.phpt index fa15b75da5..976dd97242 100644 --- a/ext/standard/tests/strings/join_error.phpt +++ b/ext/standard/tests/strings/join_error.phpt @@ -26,5 +26,5 @@ echo "Done\n"; *** Testing join() : error conditions *** -- Testing join() with less than expected no. of arguments -- -Argument must be an array +join() expects argument #1 ($pieces) to be of type array, string given Done diff --git a/ext/standard/tests/strings/join_variation1.phpt b/ext/standard/tests/strings/join_variation1.phpt index c3035fb57f..58cb3d2d11 100644 --- a/ext/standard/tests/strings/join_variation1.phpt +++ b/ext/standard/tests/strings/join_variation1.phpt @@ -102,7 +102,7 @@ for($index = 0; $index < count($values); $index ++) { echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing join() : usage variations *** --- Testing join() by supplying different values for 'glue' argument --- @@ -125,15 +125,15 @@ string(29) "element11.07654321E-9element2" -- Iteration 9 -- string(19) "element10.5element2" -- Iteration 10 -- -The first argument must be a string +join() expects argument #1 ($glue) to be of type string, array given -- Iteration 11 -- -The first argument must be a string +join() expects argument #1 ($glue) to be of type string, array given -- Iteration 12 -- -The first argument must be a string +join() expects argument #1 ($glue) to be of type string, array given -- Iteration 13 -- -The first argument must be a string +join() expects argument #1 ($glue) to be of type string, array given -- Iteration 14 -- -The first argument must be a string +join() expects argument #1 ($glue) to be of type string, array given -- Iteration 15 -- string(17) "element11element2" -- Iteration 16 -- @@ -153,7 +153,7 @@ string(16) "element1element2" -- Iteration 23 -- string(16) "element1element2" -- Iteration 24 -- -join() expects parameter 1 to be string or array, resource given +join() expects argument #1 ($glue) to be of type string|array, resource given -- Iteration 25 -- string(16) "element1element2" -- Iteration 26 -- diff --git a/ext/standard/tests/strings/join_variation2.phpt b/ext/standard/tests/strings/join_variation2.phpt index d44ff90921..fe52aebeb7 100644 --- a/ext/standard/tests/strings/join_variation2.phpt +++ b/ext/standard/tests/strings/join_variation2.phpt @@ -108,49 +108,49 @@ echo "Done\n"; --- Testing join() by supplying different values for 'pieces' argument --- -- Iteration 1 -- -join() expects parameter 2 to be array, int given +join() expects argument #2 ($pieces) to be of type array, int given -- Iteration 2 -- -join() expects parameter 2 to be array, int given +join() expects argument #2 ($pieces) to be of type array, int given -- Iteration 3 -- -join() expects parameter 2 to be array, int given +join() expects argument #2 ($pieces) to be of type array, int given -- Iteration 4 -- -join() expects parameter 2 to be array, int given +join() expects argument #2 ($pieces) to be of type array, int given -- Iteration 5 -- -join() expects parameter 2 to be array, float given +join() expects argument #2 ($pieces) to be of type array, float given -- Iteration 6 -- -join() expects parameter 2 to be array, float given +join() expects argument #2 ($pieces) to be of type array, float given -- Iteration 7 -- -join() expects parameter 2 to be array, float given +join() expects argument #2 ($pieces) to be of type array, float given -- Iteration 8 -- -join() expects parameter 2 to be array, float given +join() expects argument #2 ($pieces) to be of type array, float given -- Iteration 9 -- -join() expects parameter 2 to be array, float given +join() expects argument #2 ($pieces) to be of type array, float given -- Iteration 10 -- -join() expects parameter 2 to be array, bool given +join() expects argument #2 ($pieces) to be of type array, bool given -- Iteration 11 -- -join() expects parameter 2 to be array, bool given +join() expects argument #2 ($pieces) to be of type array, bool given -- Iteration 12 -- -join() expects parameter 2 to be array, bool given +join() expects argument #2 ($pieces) to be of type array, bool given -- Iteration 13 -- -join() expects parameter 2 to be array, bool given +join() expects argument #2 ($pieces) to be of type array, bool given -- Iteration 14 -- -join() expects parameter 2 to be array, string given +join() expects argument #2 ($pieces) to be of type array, string given -- Iteration 15 -- -join() expects parameter 2 to be array, string given +join() expects argument #2 ($pieces) to be of type array, string given -- Iteration 16 -- -join() expects parameter 2 to be array, object given +join() expects argument #2 ($pieces) to be of type array, object given -- Iteration 17 -- -join() expects parameter 2 to be array, string given +join() expects argument #2 ($pieces) to be of type array, string given -- Iteration 18 -- -join() expects parameter 2 to be array, string given +join() expects argument #2 ($pieces) to be of type array, string given -- Iteration 19 -- -join() expects parameter 2 to be array, null given +join() expects argument #2 ($pieces) to be of type array, null given -- Iteration 20 -- -join() expects parameter 2 to be array, null given +join() expects argument #2 ($pieces) to be of type array, null given -- Iteration 21 -- -join() expects parameter 2 to be array, resource given +join() expects argument #2 ($pieces) to be of type array, resource given -- Iteration 22 -- -join() expects parameter 2 to be array, null given +join() expects argument #2 ($pieces) to be of type array, null given -- Iteration 23 -- -join() expects parameter 2 to be array, null given +join() expects argument #2 ($pieces) to be of type array, null given Done diff --git a/ext/standard/tests/strings/join_variation4.phpt b/ext/standard/tests/strings/join_variation4.phpt Binary files differindex e1739facc5..25ea766421 100644 --- a/ext/standard/tests/strings/join_variation4.phpt +++ b/ext/standard/tests/strings/join_variation4.phpt diff --git a/ext/standard/tests/strings/join_variation5.phpt b/ext/standard/tests/strings/join_variation5.phpt index 4e8ad88d14..63e884e438 100644 --- a/ext/standard/tests/strings/join_variation5.phpt +++ b/ext/standard/tests/strings/join_variation5.phpt @@ -41,7 +41,7 @@ Warning: Array to string conversion in %s on line %d Warning: Array to string conversion in %s on line %d string(27) "ArrayTESTArrayTESTPHPTEST50" -The first argument must be a string +join() expects argument #1 ($glue) to be of type string, array given Warning: Array to string conversion in %s on line %d diff --git a/ext/standard/tests/strings/printf_variation1.phpt b/ext/standard/tests/strings/printf_variation1.phpt index d6fad7e97a..61dd6b3aa4 100644 --- a/ext/standard/tests/strings/printf_variation1.phpt +++ b/ext/standard/tests/strings/printf_variation1.phpt @@ -122,7 +122,7 @@ foreach($values as $value) { fclose($file_handle); ?> ---EXPECTF-- +--EXPECT-- *** Testing printf() : with unexpected values for format argument *** -- Iteration 1 -- @@ -198,29 +198,29 @@ int(3) int(3) -- Iteration 10 -- -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given -- Iteration 11 -- -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given -- Iteration 12 -- -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given -- Iteration 13 -- -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given -- Iteration 14 -- -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given -printf() expects parameter 1 to be string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given +printf() expects argument #1 ($format) to be of type string, array given -- Iteration 15 -- @@ -311,6 +311,6 @@ int(0) int(0) -- Iteration 26 -- -printf() expects parameter 1 to be string, resource given -printf() expects parameter 1 to be string, resource given -printf() expects parameter 1 to be string, resource given +printf() expects argument #1 ($format) to be of type string, resource given +printf() expects argument #1 ($format) to be of type string, resource given +printf() expects argument #1 ($format) to be of type string, resource given diff --git a/ext/standard/tests/strings/sprintf_variation1.phpt b/ext/standard/tests/strings/sprintf_variation1.phpt index f30cf5182e..b1f2395003 100644 --- a/ext/standard/tests/strings/sprintf_variation1.phpt +++ b/ext/standard/tests/strings/sprintf_variation1.phpt @@ -117,7 +117,7 @@ fclose($file_handle); echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing sprintf() : with unexpected values for format argument *** -- Iteration 1 -- @@ -166,29 +166,29 @@ string(3) "0.5" string(3) "0.5" -- Iteration 10 -- -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 11 -- -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 12 -- -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 13 -- -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 14 -- -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given -sprintf() expects parameter 1 to be string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given +sprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 15 -- string(0) "" @@ -246,7 +246,7 @@ string(0) "" string(0) "" -- Iteration 26 -- -sprintf() expects parameter 1 to be string, resource given -sprintf() expects parameter 1 to be string, resource given -sprintf() expects parameter 1 to be string, resource given +sprintf() expects argument #1 ($format) to be of type string, resource given +sprintf() expects argument #1 ($format) to be of type string, resource given +sprintf() expects argument #1 ($format) to be of type string, resource given Done diff --git a/ext/standard/tests/strings/str_pad_variation1.phpt b/ext/standard/tests/strings/str_pad_variation1.phpt index 6123bc60c9..b093fb691e 100644 --- a/ext/standard/tests/strings/str_pad_variation1.phpt +++ b/ext/standard/tests/strings/str_pad_variation1.phpt @@ -36,7 +36,6 @@ var_dump( str_pad($input, $php_int_max_pad_length) ); ?> --EXPECTF-- *** Testing str_pad() function: with large value for for 'pad_length' argument *** -str_pad() expects parameter 2 to be int, float given +str_pad() expects argument #2 ($pad_length) to be of type int, float given Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %s on line %d - diff --git a/ext/standard/tests/strings/str_replace_basic.phpt b/ext/standard/tests/strings/str_replace_basic.phpt index fa39b24e3a..1a0b7d5531 100644 --- a/ext/standard/tests/strings/str_replace_basic.phpt +++ b/ext/standard/tests/strings/str_replace_basic.phpt @@ -47,5 +47,5 @@ string(1) "q" int(1) string(0) "" int(0) -str_replace() expects parameter 3 to be string or array, resource given +str_replace() expects argument #3 ($subject) to be of type string|array, resource given resource(%d) of type (stream) diff --git a/ext/standard/tests/strings/str_replace_variation3.phpt b/ext/standard/tests/strings/str_replace_variation3.phpt index f1bbf89b9f..d5d56b8208 100644 --- a/ext/standard/tests/strings/str_replace_variation3.phpt +++ b/ext/standard/tests/strings/str_replace_variation3.phpt @@ -200,8 +200,8 @@ array(2) { int(1) -- Testing Resources -- -str_replace() expects parameter 3 to be string or array, resource given -str_replace() expects parameter 3 to be string or array, resource given +str_replace() expects argument #3 ($subject) to be of type string|array, resource given +str_replace() expects argument #3 ($subject) to be of type string|array, resource given -- Testing a longer and heredoc string -- string(623) "FOUNDghijklmnopqrstuvwxyz0123456789FOUNDghijklmnopqrstuvwxyz0123456789 diff --git a/ext/standard/tests/strings/stripos_variation10.phpt b/ext/standard/tests/strings/stripos_variation10.phpt index 879da88aa7..f36c23dfbd 100644 --- a/ext/standard/tests/strings/stripos_variation10.phpt +++ b/ext/standard/tests/strings/stripos_variation10.phpt @@ -126,19 +126,19 @@ bool(false) int(17) -- Iteration 10 -- -stripos() expects parameter 2 to be string, array given +stripos() expects argument #2 ($needle) to be of type string, array given -- Iteration 11 -- -stripos() expects parameter 2 to be string, array given +stripos() expects argument #2 ($needle) to be of type string, array given -- Iteration 12 -- -stripos() expects parameter 2 to be string, array given +stripos() expects argument #2 ($needle) to be of type string, array given -- Iteration 13 -- -stripos() expects parameter 2 to be string, array given +stripos() expects argument #2 ($needle) to be of type string, array given -- Iteration 14 -- -stripos() expects parameter 2 to be string, array given +stripos() expects argument #2 ($needle) to be of type string, array given -- Iteration 15 -- int(9) @@ -168,7 +168,7 @@ int(0) int(0) -- Iteration 24 -- -stripos() expects parameter 2 to be string, resource given +stripos() expects argument #2 ($needle) to be of type string, resource given -- Iteration 25 -- int(0) diff --git a/ext/standard/tests/strings/stripos_variation11.phpt b/ext/standard/tests/strings/stripos_variation11.phpt index 7a9c9ff9a0..9746cdb59a 100644 --- a/ext/standard/tests/strings/stripos_variation11.phpt +++ b/ext/standard/tests/strings/stripos_variation11.phpt @@ -96,7 +96,7 @@ for($index = 0; $index < count($values); $index ++) { echo "*** Done ***"; ?> ---EXPECTF-- +--EXPECT-- *** Testing stripos() function with unexpected values for haystack and needle *** -- Iteration 1 -- int(0) @@ -126,20 +126,20 @@ bool(false) int(0) bool(false) -- Iteration 10 -- -TypeError: stripos() expects parameter 1 to be string, array given -TypeError: stripos() expects parameter 1 to be string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 11 -- -TypeError: stripos() expects parameter 1 to be string, array given -TypeError: stripos() expects parameter 1 to be string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 12 -- -TypeError: stripos() expects parameter 1 to be string, array given -TypeError: stripos() expects parameter 1 to be string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 13 -- -TypeError: stripos() expects parameter 1 to be string, array given -TypeError: stripos() expects parameter 1 to be string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 14 -- -TypeError: stripos() expects parameter 1 to be string, array given -TypeError: stripos() expects parameter 1 to be string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 15 -- int(0) bool(false) @@ -168,8 +168,8 @@ ValueError: Offset not contained in string int(0) ValueError: Offset not contained in string -- Iteration 24 -- -TypeError: stripos() expects parameter 1 to be string, resource given -TypeError: stripos() expects parameter 1 to be string, resource given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given +TypeError: stripos() expects argument #1 ($haystack) to be of type string, resource given -- Iteration 25 -- int(0) ValueError: Offset not contained in string diff --git a/ext/standard/tests/strings/stristr_variation2.phpt b/ext/standard/tests/strings/stristr_variation2.phpt index 8448292802..7c25c4032d 100644 --- a/ext/standard/tests/strings/stristr_variation2.phpt +++ b/ext/standard/tests/strings/stristr_variation2.phpt @@ -100,11 +100,11 @@ bool(false) -- Iteration 7 -- bool(false) -- Iteration 8 -- -stristr() expects parameter 2 to be string, array given +stristr() expects argument #2 ($needle) to be of type string, array given -- Iteration 9 -- -stristr() expects parameter 2 to be string, array given +stristr() expects argument #2 ($needle) to be of type string, array given -- Iteration 10 -- -stristr() expects parameter 2 to be string, array given +stristr() expects argument #2 ($needle) to be of type string, array given -- Iteration 11 -- bool(false) -- Iteration 12 -- @@ -120,7 +120,7 @@ string(11) "Hello World" -- Iteration 17 -- bool(false) -- Iteration 18 -- -stristr() expects parameter 2 to be string, resource given +stristr() expects argument #2 ($needle) to be of type string, resource given -- Iteration 19 -- string(11) "Hello World" -- Iteration 20 -- diff --git a/ext/standard/tests/strings/strpos.phpt b/ext/standard/tests/strings/strpos.phpt Binary files differindex 27b87cb99a..1929b83f74 100644 --- a/ext/standard/tests/strings/strpos.phpt +++ b/ext/standard/tests/strings/strpos.phpt diff --git a/ext/standard/tests/strings/strrchr_variation10.phpt b/ext/standard/tests/strings/strrchr_variation10.phpt index 1004a3d915..04e96f9714 100644 --- a/ext/standard/tests/strings/strrchr_variation10.phpt +++ b/ext/standard/tests/strings/strrchr_variation10.phpt @@ -154,15 +154,15 @@ string(2) "10" -- Iteration 9 -- bool(false) -- Iteration 10 -- -strrchr() expects parameter 2 to be string, array given +strrchr() expects argument #2 ($needle) to be of type string, array given -- Iteration 11 -- -strrchr() expects parameter 2 to be string, array given +strrchr() expects argument #2 ($needle) to be of type string, array given -- Iteration 12 -- -strrchr() expects parameter 2 to be string, array given +strrchr() expects argument #2 ($needle) to be of type string, array given -- Iteration 13 -- -strrchr() expects parameter 2 to be string, array given +strrchr() expects argument #2 ($needle) to be of type string, array given -- Iteration 14 -- -strrchr() expects parameter 2 to be string, array given +strrchr() expects argument #2 ($needle) to be of type string, array given -- Iteration 15 -- bool(false) -- Iteration 16 -- @@ -182,7 +182,7 @@ bool(false) -- Iteration 23 -- bool(false) -- Iteration 24 -- -strrchr() expects parameter 2 to be string, resource given +strrchr() expects argument #2 ($needle) to be of type string, resource given -- Iteration 25 -- bool(false) -- Iteration 26 -- diff --git a/ext/standard/tests/strings/strrchr_variation11.phpt b/ext/standard/tests/strings/strrchr_variation11.phpt index 79ffe4c2ec..33a34e21ab 100644 --- a/ext/standard/tests/strings/strrchr_variation11.phpt +++ b/ext/standard/tests/strings/strrchr_variation11.phpt @@ -113,15 +113,15 @@ string(4) "1E-9" -- Iteration 9 -- string(3) "0.5" -- Iteration 10 -- -strrchr() expects parameter 1 to be string, array given +strrchr() expects argument #1 ($haystack) to be of type string, array given -- Iteration 11 -- -strrchr() expects parameter 1 to be string, array given +strrchr() expects argument #1 ($haystack) to be of type string, array given -- Iteration 12 -- -strrchr() expects parameter 1 to be string, array given +strrchr() expects argument #1 ($haystack) to be of type string, array given -- Iteration 13 -- -strrchr() expects parameter 1 to be string, array given +strrchr() expects argument #1 ($haystack) to be of type string, array given -- Iteration 14 -- -strrchr() expects parameter 1 to be string, array given +strrchr() expects argument #1 ($haystack) to be of type string, array given -- Iteration 15 -- string(1) "1" -- Iteration 16 -- @@ -141,7 +141,7 @@ bool(false) -- Iteration 23 -- bool(false) -- Iteration 24 -- -strrchr() expects parameter 1 to be string, resource given +strrchr() expects argument #1 ($haystack) to be of type string, resource given -- Iteration 25 -- bool(false) -- Iteration 26 -- diff --git a/ext/standard/tests/strings/strripos_offset.phpt b/ext/standard/tests/strings/strripos_offset.phpt index 4f4ab2bea4..f2673ded5b 100644 --- a/ext/standard/tests/strings/strripos_offset.phpt +++ b/ext/standard/tests/strings/strripos_offset.phpt @@ -36,7 +36,7 @@ try { echo "Done\n"; ?> --EXPECT-- -strripos() expects parameter 3 to be int, float given +strripos() expects argument #3 ($offset) to be of type int, float given Offset not contained in string Offset not contained in string Offset not contained in string diff --git a/ext/standard/tests/strings/strrpos_offset.phpt b/ext/standard/tests/strings/strrpos_offset.phpt index 213cd24c6f..21f0ea7745 100644 --- a/ext/standard/tests/strings/strrpos_offset.phpt +++ b/ext/standard/tests/strings/strrpos_offset.phpt @@ -36,7 +36,7 @@ try { echo "Done\n"; ?> --EXPECT-- -strrpos() expects parameter 3 to be int, float given +strrpos() expects argument #3 ($offset) to be of type int, float given Offset not contained in string Offset not contained in string Offset not contained in string diff --git a/ext/standard/tests/strings/strrpos_variation10.phpt b/ext/standard/tests/strings/strrpos_variation10.phpt index 2a6b84337c..c14c4643c1 100644 --- a/ext/standard/tests/strings/strrpos_variation10.phpt +++ b/ext/standard/tests/strings/strrpos_variation10.phpt @@ -116,15 +116,15 @@ bool(false) -- Iteration 9 -- int(28) -- Iteration 10 -- -strrpos() expects parameter 2 to be string, array given +strrpos() expects argument #2 ($needle) to be of type string, array given -- Iteration 11 -- -strrpos() expects parameter 2 to be string, array given +strrpos() expects argument #2 ($needle) to be of type string, array given -- Iteration 12 -- -strrpos() expects parameter 2 to be string, array given +strrpos() expects argument #2 ($needle) to be of type string, array given -- Iteration 13 -- -strrpos() expects parameter 2 to be string, array given +strrpos() expects argument #2 ($needle) to be of type string, array given -- Iteration 14 -- -strrpos() expects parameter 2 to be string, array given +strrpos() expects argument #2 ($needle) to be of type string, array given -- Iteration 15 -- int(41) -- Iteration 16 -- @@ -144,7 +144,7 @@ int(87) -- Iteration 23 -- int(87) -- Iteration 24 -- -strrpos() expects parameter 2 to be string, resource given +strrpos() expects argument #2 ($needle) to be of type string, resource given -- Iteration 25 -- int(87) -- Iteration 26 -- diff --git a/ext/standard/tests/strings/strrpos_variation11.phpt b/ext/standard/tests/strings/strrpos_variation11.phpt index 2f8627d5ad..24d9828581 100644 --- a/ext/standard/tests/strings/strrpos_variation11.phpt +++ b/ext/standard/tests/strings/strrpos_variation11.phpt @@ -97,7 +97,7 @@ for($index = 0; $index < count($values); $index ++) { echo "*** Done ***"; ?> ---EXPECTF-- +--EXPECT-- *** Testing strrpos() function with unexpected values for haystack and needle *** -- Iteration 1 -- int(0) @@ -127,20 +127,20 @@ bool(false) int(0) bool(false) -- Iteration 10 -- -TypeError: strrpos() expects parameter 1 to be string, array given -TypeError: strrpos() expects parameter 1 to be string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 11 -- -TypeError: strrpos() expects parameter 1 to be string, array given -TypeError: strrpos() expects parameter 1 to be string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 12 -- -TypeError: strrpos() expects parameter 1 to be string, array given -TypeError: strrpos() expects parameter 1 to be string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 13 -- -TypeError: strrpos() expects parameter 1 to be string, array given -TypeError: strrpos() expects parameter 1 to be string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 14 -- -TypeError: strrpos() expects parameter 1 to be string, array given -TypeError: strrpos() expects parameter 1 to be string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, array given -- Iteration 15 -- int(0) bool(false) @@ -169,8 +169,8 @@ ValueError: Offset not contained in string int(0) ValueError: Offset not contained in string -- Iteration 24 -- -TypeError: strrpos() expects parameter 1 to be string, resource given -TypeError: strrpos() expects parameter 1 to be string, resource given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given +TypeError: strrpos() expects argument #1 ($haystack) to be of type string, resource given -- Iteration 25 -- int(0) ValueError: Offset not contained in string diff --git a/ext/standard/tests/strings/strtr_variation6.phpt b/ext/standard/tests/strings/strtr_variation6.phpt index 9956acaca8..0a44abbb80 100644 --- a/ext/standard/tests/strings/strtr_variation6.phpt +++ b/ext/standard/tests/strings/strtr_variation6.phpt @@ -90,7 +90,7 @@ for($index = 0; $index < count($from_arr); $index++) { fclose($file_handle); //closing the file handle ?> ---EXPECTF-- +--EXPECT-- *** Testing strtr() function: with unexpected inputs for 'from' *** -- Iteration 1 -- string(6) "a12atm" @@ -125,7 +125,7 @@ string(6) "012atm" -- Iteration 16 -- string(6) "012ttm" -- Iteration 17 -- -strtr() expects parameter 2 to be string or array, resource given +strtr() expects argument #2 ($from) to be of type string|array, resource given -- Iteration 18 -- string(6) "012atm" -- Iteration 19 -- diff --git a/ext/standard/tests/strings/strtr_variation8.phpt b/ext/standard/tests/strings/strtr_variation8.phpt index 97d3163e21..5dc910e9be 100644 --- a/ext/standard/tests/strings/strtr_variation8.phpt +++ b/ext/standard/tests/strings/strtr_variation8.phpt @@ -90,7 +90,7 @@ fclose($file_handle); //closing the file handle echo "*** Done ***"; ?> ---EXPECTF-- +--EXPECT-- *** Testing strtr() function: with unexpected inputs for 'replace_pairs' *** -- Iteration 1 -- @@ -142,7 +142,7 @@ If two arguments are passed, the second argument must be an array If two arguments are passed, the second argument must be an array -- Iteration 17 -- -strtr() expects parameter 2 to be string or array, resource given +strtr() expects argument #2 ($from) to be of type string|array, resource given -- Iteration 18 -- If two arguments are passed, the second argument must be an array diff --git a/ext/standard/tests/strings/vfprintf_error3.phpt b/ext/standard/tests/strings/vfprintf_error3.phpt index 0496d9b19c..72866ef1a8 100644 --- a/ext/standard/tests/strings/vfprintf_error3.phpt +++ b/ext/standard/tests/strings/vfprintf_error3.phpt @@ -43,6 +43,6 @@ unlink( $file ); ?> --EXPECT-- -- Testing vfprintf() function with wrong variable types as argument -- -vfprintf() expects parameter 2 to be string, array given +vfprintf() expects argument #2 ($format) to be of type string, array given int(9) string(9) "Foo fake" diff --git a/ext/standard/tests/strings/vfprintf_error4.phpt b/ext/standard/tests/strings/vfprintf_error4.phpt index 53eba8f415..1279ac3904 100644 --- a/ext/standard/tests/strings/vfprintf_error4.phpt +++ b/ext/standard/tests/strings/vfprintf_error4.phpt @@ -38,7 +38,7 @@ $file = 'vfprintf_error4.txt'; unlink( $file ); ?> ---EXPECTF-- +--EXPECT-- -- Testing vfprintf() function with other strangeties -- -vfprintf() expects parameter 1 to be resource, string given +vfprintf() expects argument #1 ($handle) to be of type resource, string given Error found: Argument number must be greater than zero. diff --git a/ext/standard/tests/strings/vfprintf_variation20.phpt b/ext/standard/tests/strings/vfprintf_variation20.phpt index 95477f6c25..d181e50eac 100644 --- a/ext/standard/tests/strings/vfprintf_variation20.phpt +++ b/ext/standard/tests/strings/vfprintf_variation20.phpt @@ -109,7 +109,7 @@ echo "\n"; unlink($data_file); ?> ---EXPECTF-- +--EXPECT-- *** Testing vfprintf() : with unexpected values for format argument *** *** Testing vprintf() with with unexpected values for format argument *** @@ -133,19 +133,19 @@ unlink($data_file); -- Iteration 9 -- 0.5 -- Iteration 10 -- -vfprintf() expects parameter 2 to be string, array given +vfprintf() expects argument #2 ($format) to be of type string, array given -- Iteration 11 -- -vfprintf() expects parameter 2 to be string, array given +vfprintf() expects argument #2 ($format) to be of type string, array given -- Iteration 12 -- -vfprintf() expects parameter 2 to be string, array given +vfprintf() expects argument #2 ($format) to be of type string, array given -- Iteration 13 -- -vfprintf() expects parameter 2 to be string, array given +vfprintf() expects argument #2 ($format) to be of type string, array given -- Iteration 14 -- -vfprintf() expects parameter 2 to be string, array given +vfprintf() expects argument #2 ($format) to be of type string, array given -- Iteration 15 -- @@ -170,4 +170,4 @@ object -- Iteration 25 -- -- Iteration 26 -- -vfprintf() expects parameter 2 to be string, resource given +vfprintf() expects argument #2 ($format) to be of type string, resource given diff --git a/ext/standard/tests/strings/vprintf_variation1.phpt b/ext/standard/tests/strings/vprintf_variation1.phpt index fd479274ef..51c3c8985e 100644 --- a/ext/standard/tests/strings/vprintf_variation1.phpt +++ b/ext/standard/tests/strings/vprintf_variation1.phpt @@ -103,7 +103,7 @@ foreach($values as $value) { fclose($file_handle); ?> ---EXPECTF-- +--EXPECT-- *** Testing vprintf() : with unexpected values for format argument *** -- Iteration 1 -- @@ -143,19 +143,19 @@ int(13) int(3) -- Iteration 10 -- -vprintf() expects parameter 1 to be string, array given +vprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 11 -- -vprintf() expects parameter 1 to be string, array given +vprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 12 -- -vprintf() expects parameter 1 to be string, array given +vprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 13 -- -vprintf() expects parameter 1 to be string, array given +vprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 14 -- -vprintf() expects parameter 1 to be string, array given +vprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 15 -- @@ -202,4 +202,4 @@ int(0) int(0) -- Iteration 26 -- -vprintf() expects parameter 1 to be string, resource given +vprintf() expects argument #1 ($format) to be of type string, resource given diff --git a/ext/standard/tests/strings/vsprintf_variation1.phpt b/ext/standard/tests/strings/vsprintf_variation1.phpt index 4b2da4b551..15155a0626 100644 --- a/ext/standard/tests/strings/vsprintf_variation1.phpt +++ b/ext/standard/tests/strings/vsprintf_variation1.phpt @@ -101,7 +101,7 @@ fclose($file_handle); echo "Done"; ?> ---EXPECTF-- +--EXPECT-- *** Testing vsprintf() : with unexpected values for format argument *** -- Iteration 1 -- @@ -132,19 +132,19 @@ string(13) "1.07654321E-9" string(3) "0.5" -- Iteration 10 -- -vsprintf() expects parameter 1 to be string, array given +vsprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 11 -- -vsprintf() expects parameter 1 to be string, array given +vsprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 12 -- -vsprintf() expects parameter 1 to be string, array given +vsprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 13 -- -vsprintf() expects parameter 1 to be string, array given +vsprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 14 -- -vsprintf() expects parameter 1 to be string, array given +vsprintf() expects argument #1 ($format) to be of type string, array given -- Iteration 15 -- string(0) "" @@ -180,5 +180,5 @@ string(0) "" string(0) "" -- Iteration 26 -- -vsprintf() expects parameter 1 to be string, resource given +vsprintf() expects argument #1 ($format) to be of type string, resource given Done |