From cfbd0bb58a32da87f3b422c3167d229b21cf684c Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Thu, 23 Jan 2003 20:38:44 +0000 Subject: Really fixed the mb issue of mb_ereg_replace() # my previous patch is somewhat wrong --- ext/mbstring/php_mbregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mbstring/php_mbregex.c') 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; } -- cgit v1.2.1