From: Andrey Hristov Date: Tue, 30 Sep 2003 15:00:36 +0000 (+0000) Subject: smash a segmentation fault X-Git-Tag: RELEASE_1_3b2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40088d0bbc53010c5f714e6848fc19fff3013d67;p=php smash a segmentation fault --- diff --git a/ext/standard/array.c b/ext/standard/array.c index ab2e74a644..b045094bbe 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -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]);