cvs: php4(PHP_4_3) /ext/standard array.c

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

« previous php.cvs (#18405) next »