- Fixed bug: #21998 (array_pop() did not reset the current array position)

# This behaves now same as in PHP 4.2.3
This commit is contained in:
foobar 2003-02-03 16:57:02 +00:00
parent 7147949a4e
commit 07a9729071

View File

@ -1823,6 +1823,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));
}
/* }}} */