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

index f0f1f2c6017c9ece4518fa2a2f6f8a2e61ebc8fe..98ef27afc05f183f0044c9de1f7cfa2179b4976d 100644 (file)
@@ -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);
 }