mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
25 lines
476 B
PHP
25 lines
476 B
PHP
--TEST--
|
|
Oniguruma retry limit
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
|
|
if (version_compare(MB_ONIGURUMA_VERSION, '6.9.3') < 0) {
|
|
die('skip requires Oniguruma >= 6.9.3');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$regex = 'A(B|C+)+D|AC+X';
|
|
$str = 'ACCCCCCCCCCCCCCCCCCCX';
|
|
var_dump(mb_ereg($regex, $str));
|
|
ini_set('mbstring.regex_retry_limit', '100000');
|
|
var_dump(mb_ereg($regex, $str));
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|