diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-21 22:04:28 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-21 22:04:28 +0000 |
commit | d78df1507411afca05ceff2a4b307a580e027d13 (patch) | |
tree | 2589b49b9b1af1e3ba958e446e9f62d1985969d2 /ext/mbstring/php_mbregex.c | |
parent | 77821ecb7593d2b09138adc75b8b78608a8adf31 (diff) | |
download | php-git-d78df1507411afca05ceff2a4b307a580e027d13.tar.gz |
MFH: fixed a mb_regex_replace() bug
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r-- | ext/mbstring/php_mbregex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index b4c12142e1..08a81bff50 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -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)); } /* }}} */ |