mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed mb_ereg_replace() bug (the function has ignored the default option)
This commit is contained in:
parent
da45161bd2
commit
ce5df6d949
1 changed files with 2 additions and 2 deletions
|
@ -661,7 +661,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));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
@ -669,7 +669,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));
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue