]> granicus.if.org Git - php/commitdiff
- Fix zend_parse_parameters_ex() for format specifiers like "+f", like multiple
authorJohannes Schlüter <johannes@php.net>
Mon, 16 Apr 2007 18:50:05 +0000 (18:50 +0000)
committerJohannes Schlüter <johannes@php.net>
Mon, 16 Apr 2007 18:50:05 +0000 (18:50 +0000)
  values followed by forced parameters. Fixes tests like
  ext/standard/tests/array/007.phpt and others

Zend/zend_API.c

index 3d46f5cb8e3a83b38814ecb2a043ff922b3bc353..111395decf6c5e848da294c9b5e71bc9da647241 100644 (file)
@@ -1029,6 +1029,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
 
                                /* adjust how many args we have left and restart loop */
                                num_args = num_args + 1 - iv;
+                               i += iv;
                                continue;
                        } else {
                                *varargs = NULL;