Skip to content

Commit 5b06716

Browse files
committed
Limit retry_limit test to oniguruma >= 6.9.3
This test is somewhat fragile in that it depends on how well a particular regex is optimized. Apparently on 6.9.1 this regex would hit the default retry_limit of 1000000 already. I'm limiting this to 6.9.3 because that's the version that works for me.
1 parent 07f4830 commit 5b06716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mbstring/tests/retry_limit.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Oniguruma retry limit
44
<?php
55
extension_loaded('mbstring') or die('skip mbstring not available');
66
if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
7-
if (version_compare(MB_ONIGURUMA_VERSION, '6.8.0') < 0) {
8-
die('skip requires Oniguruma 6.8.0');
7+
if (version_compare(MB_ONIGURUMA_VERSION, '6.9.3') < 0) {
8+
die('skip requires Oniguruma >= 6.9.3');
99
}
1010
?>
1111
--FILE--

0 commit comments

Comments
 (0)