File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? ????, PHP 7.3.3
4
- -Core:
4
+
5
+ - Core:
5
6
. Fixed bug #77494 (Disabling class causes segfault on member access).
6
7
(Dmitry)
7
8
9
+ - Mbstring:
10
+ . Fixed bug #77514 (mb_ereg_replace() with trailing backslash adds null byte).
11
+ (Nikita)
12
+
8
13
- Opcache:
9
14
. Fixed bug #77287 (Opcache literal compaction is incompatible with EXT
10
15
opcodes). (Nikita)
Original file line number Diff line number Diff line change @@ -713,8 +713,7 @@ static inline void mb_regex_substitute(
713
713
sp = p ; /* save position */
714
714
clen = (int ) php_mb_mbchar_bytes_ex (++ p , enc );
715
715
if (clen != 1 || p == eos ) {
716
- /* skip escaped multibyte char */
717
- p += clen ;
716
+ /* skip backslash followed by multibyte char */
718
717
smart_str_appendl (pbuf , sp , p - sp );
719
718
continue ;
720
719
}
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #77514: mb_ereg_replace() with trailing backslash adds null byte
3
+ --FILE--
4
+ <?php
5
+
6
+ $ a ="abc123 " ;
7
+ var_dump (mb_ereg_replace ("123 " ,"def \\" ,$ a ));
8
+
9
+ ?>
10
+ --EXPECT--
11
+ string(7) "abcdef\"
You can’t perform that action at this time.
0 commit comments