cvs: php-src /ext/pcre php_pcre.c
| From: | Felipe Pena | Date: | Wed, 20 Feb 2008 22:15:53 +0000 |
| Subject: | cvs: php-src /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48668@lists.php.net to get a copy of this message | ||
felipe Wed Feb 20 22:15:53 2008 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
Log:
MFB: Fixed Bug #44191 (preg_grep messes up array index)
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.229&r2=1.230&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.229 php-src/ext/pcre/php_pcre.c:1.230
--- php-src/ext/pcre/php_pcre.c:1.229 Fri Jan 25 19:39:45 2008
+++ php-src/ext/pcre/php_pcre.c Wed Feb 20 22:15:53 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.229 2008/01/25 19:39:45 nlopess Exp $ */
+/* $Id: php_pcre.c,v 1.230 2008/02/20 22:15:53 felipe Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -2013,7 +2013,7 @@
zend_hash_move_forward(Z_ARRVAL_P(input));
}
-
+ zend_hash_internal_pointer_reset(Z_ARRVAL_P(input));
/* Clean up */
efree(offsets);
}