]> granicus.if.org Git - php/commitdiff
Really fixed the mb issue of mb_ereg_replace()
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 23 Jan 2003 20:38:44 +0000 (20:38 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 23 Jan 2003 20:38:44 +0000 (20:38 +0000)
# my previous patch is somewhat wrong

ext/mbstring/php_mbregex.c

index fc5b8f83b0bb37a0a97530bc6ea6c54890dc79c4..29528bac9f1c6e367df4e1f150c1f721b4de21f6 100644 (file)
@@ -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;
                                }