diff --git a/ext/standard/array.c b/ext/standard/array.c index 31dfd4cd00..844b1f4ea3 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2323,7 +2323,7 @@ PHP_FUNCTION(array_diff) set_compare_func(SORT_REGULAR); for (i=0; itype != 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; }