summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug77514.phpt
blob: efcbea24d7ffd7e1ead52a0ec065ac22ce498cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #77514: mb_ereg_replace() with trailing backslash adds null byte
--FILE--
<?php

$a="abc123";
var_dump(mb_ereg_replace("123","def\\",$a));

?>
--EXPECT--
string(7) "abcdef\"