mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
Closes bug #72710 (cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)
13 lines
305 B
PHP
13 lines
305 B
PHP
--TEST--
|
|
Bug #72710 (`mb_ereg` causes buffer overflow on regexp compile error)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('mbstring')) die('skip ext/mbstring required');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
mb_ereg('(?<0>a)', 'a');
|
|
?>
|
|
--EXPECTF--
|
|
Warning: mb_ereg(): mbregex compile err: invalid group name <0> in %s on line %d
|