helly           Thu Jan 10 10:11:33 2008 UTC

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