1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

MFH: fixed a mb_regex_replace() bug

This commit is contained in:
Moriyoshi Koizumi
2003-01-21 22:04:28 +00:00
parent 77821ecb75
commit d78df15074
+2 -2
View File
@@ -574,7 +574,7 @@ _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, int option)
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 @@ PHP_FUNCTION(mb_ereg_replace)
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));
}
/* }}} */