xref: /PHP-5.6/ext/mbstring/tests/bug72710.phpt (revision 1d32b809)
1--TEST--
2Bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error)
3--SKIPIF--
4<?php
5if (!extension_loaded('mbstring')) die('skip ext/mbstring required');
6?>
7--FILE--
8<?php
9mb_ereg('(?<0>a)', 'a');
10?>
11--EXPECTF--
12Warning: mb_ereg(): mbregex compile err: invalid group name <0> in %s on line %d
13