File size: 335 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | --TEST--
Bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error)
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
if (!function_exists('mb_ereg')) die('skip mbregex support not available');
?>
--FILE--
<?php
mb_ereg('(?<0>a)', 'a');
?>
--EXPECTF--
Warning: mb_ereg(): mbregex compile err: invalid group name <0> in %s on line %d
|