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.
<?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--