xref: /PHP-8.2/ext/mbstring/tests/bug77514.phpt (revision 74859783)
1--TEST--
2Bug #77514: mb_ereg_replace() with trailing backslash adds null byte
3--EXTENSIONS--
4mbstring
5--SKIPIF--
6<?php
7if (!function_exists('mb_ereg_replace')) die('skip mb_ereg_replace() not available');
8?>
9--FILE--
10<?php
11
12$a="abc123";
13var_dump(mb_ereg_replace("123","def\\",$a));
14
15?>
16--EXPECT--
17string(7) "abcdef\"
18