mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
typo fix in array_diff error message, fixes bug #6236
This commit is contained in:
@@ -2323,7 +2323,7 @@ PHP_FUNCTION(array_diff)
|
||||
set_compare_func(SORT_REGULAR);
|
||||
for (i=0; i<argc; i++) {
|
||||
if ((*args[i])->type != IS_ARRAY) {
|
||||
php_error(E_WARNING, "Argument #%d to array_intersect() is not an array", i+1);
|
||||
php_error(E_WARNING, "Argument #%d to array_diff() is not an array", i+1);
|
||||
argc = i; /* only free up to i-1 */
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user