]> granicus.if.org Git - php/commitdiff
Limit retry_limit test to oniguruma >= 6.9.3
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 7 Oct 2019 08:49:34 +0000 (10:49 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 7 Oct 2019 08:49:34 +0000 (10:49 +0200)
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.

ext/mbstring/tests/retry_limit.phpt

index 2d9d42a36f64258acfbfa3fd212e86cdb7e936cd..2da9010f8e3374f50c866b9fbece894008dcdae2 100644 (file)
@@ -4,8 +4,8 @@ Oniguruma retry limit
 <?php
 extension_loaded('mbstring') or die('skip mbstring not available');
 if (!function_exists('mb_ereg')) die('skip mb_ereg not available');
-if (version_compare(MB_ONIGURUMA_VERSION, '6.8.0') < 0) {
-    die('skip requires Oniguruma 6.8.0');
+if (version_compare(MB_ONIGURUMA_VERSION, '6.9.3') < 0) {
+    die('skip requires Oniguruma >= 6.9.3');
 }
 ?>
 --FILE--