summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug72710.phpt
blob: e666b0dbd6231310ff944b5ffd1db0ef72cc8f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error)
--SKIPIF--
<?php
if (!extension_loaded('mbstring')) die('skip ext/mbstring required');
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