mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix param name in implode() error message
This commit is contained in:
commit
649872f105
@ -1035,7 +1035,7 @@ PHP_FUNCTION(implode)
|
||||
|
||||
if (pieces == NULL) {
|
||||
if (arg1_array == NULL) {
|
||||
zend_type_error("%s(): Argument #1 ($pieces) must be of type array, string given", get_active_function_name());
|
||||
zend_type_error("%s(): Argument #1 ($array) must be of type array, string given", get_active_function_name());
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ string(35) "2000-639010PHP000 0string%0with%0...%0"
|
||||
string(43) "2\00\0-639\01\0PHP\0\0\0 \0string%0with%0...%0"
|
||||
|
||||
*** Testing implode() on empty string ***
|
||||
implode(): Argument #1 ($pieces) must be of type array, string given
|
||||
implode(): Argument #1 ($array) must be of type array, string given
|
||||
|
||||
*** Testing implode() on sub-arrays ***
|
||||
|
||||
@ -266,9 +266,9 @@ array(2) {
|
||||
string(%d) "Resource id #%d::Resource id #%d"
|
||||
|
||||
*** Testing error conditions ***
|
||||
implode(): Argument #1 ($pieces) must be of type array, string given
|
||||
implode(): Argument #1 ($array) must be of type array, string given
|
||||
implode(): Argument #2 ($array) must be of type ?array, int given
|
||||
implode(): Argument #1 ($pieces) must be of type array, string given
|
||||
implode(): Argument #1 ($array) must be of type array, string given
|
||||
string(0) ""
|
||||
implode(): Argument #2 ($array) must be of type ?array, string given
|
||||
|
||||
|
@ -20,5 +20,5 @@ echo "Done\n";
|
||||
*** Testing join() : error conditions ***
|
||||
|
||||
-- Testing join() with less than expected no. of arguments --
|
||||
join(): Argument #1 ($pieces) must be of type array, string given
|
||||
join(): Argument #1 ($array) must be of type array, string given
|
||||
Done
|
||||
|
@ -138,13 +138,13 @@ join(): Argument #2 ($array) must be of type ?array, string given
|
||||
-- Iteration 18 --
|
||||
join(): Argument #2 ($array) must be of type ?array, string given
|
||||
-- Iteration 19 --
|
||||
join(): Argument #1 ($pieces) must be of type array, string given
|
||||
join(): Argument #1 ($array) must be of type array, string given
|
||||
-- Iteration 20 --
|
||||
join(): Argument #1 ($pieces) must be of type array, string given
|
||||
join(): Argument #1 ($array) must be of type array, string given
|
||||
-- Iteration 21 --
|
||||
join(): Argument #2 ($array) must be of type ?array, resource given
|
||||
-- Iteration 22 --
|
||||
join(): Argument #1 ($pieces) must be of type array, string given
|
||||
join(): Argument #1 ($array) must be of type array, string given
|
||||
-- Iteration 23 --
|
||||
join(): Argument #1 ($pieces) must be of type array, string given
|
||||
join(): Argument #1 ($array) must be of type array, string given
|
||||
Done
|
||||
|
Loading…
Reference in New Issue
Block a user