sniper          Mon Feb  3 11:58:08 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/standard  array.c 
  Log:
  MFH: Fixed bug: #21998 (array_pop() did not reset the current array position)
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.199.2.12 php4/ext/standard/array.c:1.199.2.13
--- php4/ext/standard/array.c:1.199.2.12        Fri Jan  3 00:12:06 2003
+++ php4/ext/standard/array.c   Mon Feb  3 11:58:08 2003
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: array.c,v 1.199.2.12 2003/01/03 05:12:06 moriyoshi Exp $ */
+/* $Id: array.c,v 1.199.2.13 2003/02/03 16:58:08 sniper Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -1733,6 +1733,8 @@
        } else if (!key_len) {
                Z_ARRVAL_PP(stack)->nNextFreeElement = 
Z_ARRVAL_PP(stack)->nNextFreeElement - 1;
        }
+
+       zend_hash_internal_pointer_reset(Z_ARRVAL_PP(stack));
 }
 /* }}} */
 



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

Reply via email to