summaryrefslogtreecommitdiff
path: root/ext/pcre
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-02-20 22:15:53 +0000
committerFelipe Pena <felipe@php.net>2008-02-20 22:15:53 +0000
commit8ce1d11649ae8292fa5d7da38d6e4d920fadedc3 (patch)
treeabaa31d7b9619227e848493c25497ddbffe31404 /ext/pcre
parent1b2c92bfe9dd704e11cda2bb04142010d077fafc (diff)
downloadphp-git-8ce1d11649ae8292fa5d7da38d6e4d920fadedc3.tar.gz
MFB: Fixed Bug #44191 (preg_grep messes up array index)
Diffstat (limited to 'ext/pcre')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
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);
}