]> granicus.if.org Git - php/commitdiff
Fix the arg array size.
authorAndrei Zmievski <andrei@php.net>
Fri, 24 Nov 2000 00:12:19 +0000 (00:12 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 24 Nov 2000 00:12:19 +0000 (00:12 +0000)
ext/pcre/php_pcre.c

index 53cf7da06d0ca2e7c5c2da14fe85e05a85fc846f..21d3da6b180ecd2c8b155d075b6cdb8a2c472350 100644 (file)
@@ -568,7 +568,7 @@ static int preg_do_repl_func(char *function_name, char *subject, int *offsets, i
        zval            *retval_ptr;            /* Function return value */
        zval             function;                      /* Function to call */
        zval            *function_ptr = &function;              /* Pointer to function to call */
-       zval       **args[0];                   /* Argument to pass to function */
+       zval       **args[1];                   /* Argument to pass to function */
        zval            *subpats;                       /* Captured subpatterns */ 
        int                      result_len;            /* Return value length */
        int                      i;