cvs: php4 /ext/mbstring php_mbregex.c

From: Date: Tue, 21 Jan 2003 22:03:30 +0000
Subject: cvs: php4 /ext/mbstring php_mbregex.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18078@lists.php.net to get a copy of this message
moriyoshi Tue Jan 21 17:03:30 2003 EDT Modified files: /php4/ext/mbstring php_mbregex.c Log: Fixed mb_ereg_replace() bug (the function has ignored the default option) Index: php4/ext/mbstring/php_mbregex.c diff -u php4/ext/mbstring/php_mbregex.c:1.28 php4/ext/mbstring/php_mbregex.c:1.29 --- php4/ext/mbstring/php_mbregex.c:1.28 Tue Jan 21 14:31:07 2003 +++ php4/ext/mbstring/php_mbregex.c Tue Jan 21 17:03:29 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mbregex.c,v 1.28 2003/01/21 19:31:07 moriyoshi Exp $ */ +/* $Id: php_mbregex.c,v 1.29 2003/01/21 22:03:29 moriyoshi Exp $ */ #ifdef HAVE_CONFIG_H @@ -661,7 +661,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)); } /* }}} */ @@ -669,7 +669,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)); } /* }}} */

« previous php.cvs (#18078) next »