helly           Thu Jan 10 10:11:21 2008 UTC

  Modified files:              
    /php-src/ext/spl    spl_iterators.c 
  Log:
  - Fix bug in example code found by Surf Chen
  
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_iterators.c?r1=1.167&r2=1.168&diff_format=u
Index: php-src/ext/spl/spl_iterators.c
diff -u php-src/ext/spl/spl_iterators.c:1.167 
php-src/ext/spl/spl_iterators.c:1.168
--- php-src/ext/spl/spl_iterators.c:1.167       Mon Dec 31 07:12:15 2007
+++ php-src/ext/spl/spl_iterators.c     Thu Jan 10 10:11:21 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_iterators.c,v 1.167 2007/12/31 07:12:15 sebastian Exp $ */
+/* $Id: spl_iterators.c,v 1.168 2008/01/10 10:11:21 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -860,6 +860,7 @@
                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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to