com php-src: Limit retry_limit test to oniguruma > = 6.9.3: ext/mbstring/tests/retry_limit.p hpt
| From: | Nikita Popov | Date: | Mon, 07 Oct 2019 08:49:34 +0000 |
| Subject: | com php-src: Limit retry_limit test to oniguruma > = 6.9.3: ext/mbstring/tests/retry_limit.p hpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108756@lists.php.net to get a copy of this message | ||
Commit: 5b067163be6b6a3dd29970d81b32ff62b11934ee
Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 7 Oct 2019 10:49:34 +0200
Parents: 07f48304138ec0257b6b34cc43f9657bdbbb3e4f
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5b067163be6b6a3dd29970d81b32ff62b11934ee
Log:
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.
Changed paths:
M ext/mbstring/tests/retry_limit.phpt
Diff:
diff --git a/ext/mbstring/tests/retry_limit.phpt b/ext/mbstring/tests/retry_limit.phpt
index 2d9d42a36f6..2da9010f8e3 100644
--- a/ext/mbstring/tests/retry_limit.phpt
+++ b/ext/mbstring/tests/retry_limit.phpt
@@ -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--