]> granicus.if.org Git - php/commitdiff
Fixed Bug #44191 (preg_grep messes up array index)
authorFelipe Pena <felipe@php.net>
Wed, 20 Feb 2008 22:08:18 +0000 (22:08 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 20 Feb 2008 22:08:18 +0000 (22:08 +0000)
NEWS
ext/pcre/php_pcre.c

diff --git a/NEWS b/NEWS
index 0f264c317bc2e5cbd0c83ca663a4b9137feaea92..54a26a9e063e2558dc224ab720afe14f22e7757a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ PHP                                                                        NEWS
 - Upgraded PCRE to version 7.6 (Nuno)
 
 
+- Fixed Bug #44191 (preg_grep messes up array index). (Felipe)
 - Fixed bug #44184 (Double free of loop-variable on exception). (Dmitry)
 - Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error). (Ilia)
 - Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)).
index 9e1d9082b5d56a80b62ba174087aba2fe6c2195c..7995872e00c41ab9336623836fca5b52258b4712 100644 (file)
@@ -1744,7 +1744,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);
 }