From 3c98c2d0cbf476432a4fa6264afc5e43c58fb38f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 24 Jan 2019 15:13:49 +0100 Subject: Fixed bug #77514 --- ext/mbstring/php_mbregex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/mbstring/php_mbregex.c') diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index cc96e04f39..319ee567c6 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -713,8 +713,7 @@ static inline void mb_regex_substitute( sp = p; /* save position */ clen = (int) php_mb_mbchar_bytes_ex(++p, enc); if (clen != 1 || p == eos) { - /* skip escaped multibyte char */ - p += clen; + /* skip backslash followed by multibyte char */ smart_str_appendl(pbuf, sp, p - sp); continue; } -- cgit v1.2.1