From: foobar Date: Mon, 3 Feb 2003 16:58:08 +0000 (+0000) Subject: MFH: Fixed bug: #21998 (array_pop() did not reset the current array position) X-Git-Tag: php-4.3.2RC1~343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef6658864a440969ff09645d3e8334a7688a83fa;p=php MFH: Fixed bug: #21998 (array_pop() did not reset the current array position) --- diff --git a/ext/standard/array.c b/ext/standard/array.c index a821dffe42..27e990f7c7 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1733,6 +1733,8 @@ static void _phpi_pop(INTERNAL_FUNCTION_PARAMETERS, int off_the_end) } else if (!key_len) { Z_ARRVAL_PP(stack)->nNextFreeElement = Z_ARRVAL_PP(stack)->nNextFreeElement - 1; } + + zend_hash_internal_pointer_reset(Z_ARRVAL_PP(stack)); } /* }}} */