cvs: php4 /ext/standard array.c
| From: | Jani Taskinen | Date: | Mon, 03 Feb 2003 16:57:02 +0000 |
| Subject: | cvs: php4 /ext/standard array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18404@lists.php.net to get a copy of this message | ||
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));
}
/* }}} */