summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-01-23 20:38:44 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-01-23 20:38:44 +0000
commitcfbd0bb58a32da87f3b422c3167d229b21cf684c (patch)
tree3e95d5b6d909eecd237fd2e807b140f0809b293f /ext/mbstring/php_mbregex.c
parent3e7b832895aa26e1f76f2b246b82a1a4c115493e (diff)
downloadphp-git-cfbd0bb58a32da87f3b422c3167d229b21cf684c.tar.gz
Really fixed the mb issue of mb_ereg_replace()
# my previous patch is somewhat wrong
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c2
1 files changed, 1 insertions, 1 deletions
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;
}