]> granicus.if.org Git - php/commitdiff
smash a segmentation fault
authorAndrey Hristov <andrey@php.net>
Tue, 30 Sep 2003 15:00:36 +0000 (15:00 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 30 Sep 2003 15:00:36 +0000 (15:00 +0000)
ext/standard/array.c

index ab2e74a644f41bb2f3b3b0a740fe900feeaecb63..b045094bbee1b47de0dd7475e25fed861d30cae9 100644 (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]);