From: Marcus Boerger Date: Thu, 10 Jan 2008 10:11:21 +0000 (+0000) Subject: - Fix bug in example code found by Surf Chen X-Git-Tag: RELEASE_2_0_0a1~960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=507ed4a13d72037f303c5a03b35f8365cd4bebae;p=php - Fix bug in example code found by Surf Chen --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 6ae3df70ed..76e227ad79 100755 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -860,6 +860,7 @@ int spl_dual_it_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS) func_params[current] = (zval **) p - (arg_count-current); current++; } + arg_count = current; /* restore */ if (call_user_function_ex(EG(function_table), NULL, &func, &retval_ptr, arg_count, func_params, 0, NULL TSRMLS_CC) == SUCCESS && retval_ptr) { RETURN_ZVAL(retval_ptr, 0, 1);