Browse Source

Really fixed the mb issue of mb_ereg_replace()

# my previous patch is somewhat wrong
PHP-5
Moriyoshi Koizumi 24 years ago
parent
commit
cfbd0bb58a
  1. 2
      ext/mbstring/php_mbregex.c

2
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;
}

Loading…
Cancel
Save