From: Moriyoshi Koizumi Date: Thu, 23 Jan 2003 20:38:44 +0000 (+0000) Subject: Really fixed the mb issue of mb_ereg_replace() X-Git-Tag: PHP_5_0_dev_before_13561_fix~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfbd0bb58a32da87f3b422c3167d229b21cf684c;p=php Really fixed the mb issue of mb_ereg_replace() # my previous patch is somewhat wrong --- diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index fc5b8f83b0..29528bac9f 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -619,7 +619,7 @@ _php_mb_regex_ereg_replace_exec(INTERNAL_FUNCTION_PARAMETERS, int option) p += 2; i += 2; } else { - _php_mb_regex_strbuf_ncat(pdevice, (const unsigned char *)p, 1); + _php_mb_regex_strbuf_ncat(pdevice, (const unsigned char *)p, fwd); p += fwd; i += fwd; }