From 8ce1d11649ae8292fa5d7da38d6e4d920fadedc3 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 20 Feb 2008 22:15:53 +0000 Subject: [PATCH] MFB: Fixed Bug #44191 (preg_grep messes up array index) --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 0c7f14992b..9fc3c45edb 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -2013,7 +2013,7 @@ PHPAPI void php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return zend_hash_move_forward(Z_ARRVAL_P(input)); } - + zend_hash_internal_pointer_reset(Z_ARRVAL_P(input)); /* Clean up */ efree(offsets); } -- 2.40.0