sniper          Mon Feb  3 11:57:02 2003 EDT

  Modified files:              
    /php4/ext/standard  array.c 
  Log:
  - Fixed bug: #21998 (array_pop() did not reset the current array position)
  # This behaves now same as in PHP 4.2.3
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.217 php4/ext/standard/array.c:1.218
--- php4/ext/standard/array.c:1.217     Fri Jan 24 11:29:39 2003
+++ php4/ext/standard/array.c   Mon Feb  3 11:57:02 2003
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: array.c,v 1.217 2003/01/24 16:29:39 iliaa Exp $ */
+/* $Id: array.c,v 1.218 2003/02/03 16:57:02 sniper Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -1823,6 +1823,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