]> 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:15:53 +0000 (22:15 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 20 Feb 2008 22:15:53 +0000 (22:15 +0000)
ext/pcre/php_pcre.c

index 0c7f14992b6a3baf3ee8255870ccc89d2b9505e2..9fc3c45edbfe89f8f563f38d11c7cf58af25b229 100644 (file)
@@ -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);
 }