moriyoshi Tue Jan 21 17:04:29 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/mbstring php_mbregex.c Log: MFH: fixed a mb_regex_replace() bug Index: php4/ext/mbstring/php_mbregex.c diff -u php4/ext/mbstring/php_mbregex.c:1.18.2.2 php4/ext/mbstring/php_mbregex.c:1.18.2.3 --- php4/ext/mbstring/php_mbregex.c:1.18.2.2 Tue Jan 21 14:32:18 2003 +++ php4/ext/mbstring/php_mbregex.c Tue Jan 21 17:04:28 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mbregex.c,v 1.18.2.2 2003/01/21 19:32:18 moriyoshi Exp $ */ +/* $Id: php_mbregex.c,v 1.18.2.3 2003/01/21 22:04:28 moriyoshi Exp $ */ #ifdef HAVE_CONFIG_H @@ -574,7 +574,7 @@ Replace regular expression for multibyte string */ PHP_FUNCTION(mb_ereg_replace) { - _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); + _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAM_PASSTHRU, +MBSTRG(regex_default_options)); } /* }}} */ @@ -582,7 +582,7 @@ Case insensitive replace regular expression for multibyte string */ PHP_FUNCTION(mb_eregi_replace) { - _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAM_PASSTHRU, MBRE_OPTION_IGNORECASE); + _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAM_PASSTHRU, +MBRE_OPTION_IGNORECASE | MBSTRG(regex_default_options)); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php