cvs: php4(PHP_4_3) /ext/mbstring php_mbregex.c

From: Date: Tue, 21 Jan 2003 22:04:29 +0000
Subject: cvs: php4(PHP_4_3) /ext/mbstring php_mbregex.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18079@lists.php.net to get a copy of this message
moriyoshi Tue Jan 21 17:04:29 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/mbstring php_mbregex.c Log: MFH: fixed a mb_regex_replace() bug Index: php4/ext/mbstring/php_mbregex.c diff -u php4/ext/mbstring/php_mbregex.c:1.18.2.2 php4/ext/mbstring/php_mbregex.c:1.18.2.3 --- php4/ext/mbstring/php_mbregex.c:1.18.2.2 Tue Jan 21 14:32:18 2003 +++ php4/ext/mbstring/php_mbregex.c Tue Jan 21 17:04:28 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mbregex.c,v 1.18.2.2 2003/01/21 19:32:18 moriyoshi Exp $ */ +/* $Id: php_mbregex.c,v 1.18.2.3 2003/01/21 22:04:28 moriyoshi Exp $ */ #ifdef HAVE_CONFIG_H @@ -574,7 +574,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)); } /* }}} */ @@ -582,7 +582,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 (#18079) next »