summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-02-20 22:12:17 +0000
committerFelipe Pena <felipe@php.net>2008-02-20 22:12:17 +0000
commitbc8a62f4b14f42cca45b104b1d6076e9f62589bb (patch)
tree38255ac3396e0577ee4e2bcfd8f6ab9ab0d8e347 /ext/pcre/php_pcre.c
parentd427b55b1a552fad1851413eb3628fd5399a712f (diff)
downloadphp-git-bc8a62f4b14f42cca45b104b1d6076e9f62589bb.tar.gz
MFB: Fixed Bug #44191 (preg_grep messes up array index)
Diffstat (limited to 'ext/pcre/php_pcre.c')
-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 f0f1f2c601..98ef27afc0 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -1771,7 +1771,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);
}