1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

smash a segmentation fault

This commit is contained in:
Andrey Hristov
2003-09-30 15:00:36 +00:00
parent 02827c46be
commit 40088d0bbc
+1 -1
View File
@@ -3014,7 +3014,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior, int data_
for (i = 0; i < arr_argc; i++) {
if (Z_TYPE_PP(args[i]) != IS_ARRAY) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d is not an array", i + 1);
argc = i; /* only free up to i-1 */
arr_argc = i; /* only free up to i-1 */
goto out;
}
hash = HASH_OF(*args[i]);