]> granicus.if.org Git - php/commitdiff
MFH: fixed a mb_regex_replace() bug
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 21 Jan 2003 22:04:28 +0000 (22:04 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 21 Jan 2003 22:04:28 +0000 (22:04 +0000)
ext/mbstring/php_mbregex.c

index b4c12142e1ddae3d1d83d32a61b3a97cb0f02b29..08a81bff5080e71677ac10984a9784d0af4fdd08 100644 (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));
 }
 /* }}} */