diff options
-rw-r--r-- | ext/pcre/tests/check_jit_enabled.phpt | 5 | ||||
-rw-r--r-- | ext/pcre/tests/preg_match_error3.phpt | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ext/pcre/tests/check_jit_enabled.phpt b/ext/pcre/tests/check_jit_enabled.phpt index 9cdab2b1d3..de6e263e70 100644 --- a/ext/pcre/tests/check_jit_enabled.phpt +++ b/ext/pcre/tests/check_jit_enabled.phpt @@ -1,5 +1,10 @@ --TEST-- Check for JIT enablement status +--SKIPIF-- +<?php +if (ini_get("pcre.jit") === FALSE) { + die("skip no jit built"); +} --FILE-- <?php diff --git a/ext/pcre/tests/preg_match_error3.phpt b/ext/pcre/tests/preg_match_error3.phpt index 7202b68b34..2e91e24466 100644 --- a/ext/pcre/tests/preg_match_error3.phpt +++ b/ext/pcre/tests/preg_match_error3.phpt @@ -1,5 +1,10 @@ --TEST-- Test preg_match() function : error conditions - jit stacklimit exhausted +--SKIPIF-- +<?php +if (ini_get("pcre.jit") === FALSE) { + die("skip no jit built"); +} --FILE-- <?php var_dump(preg_match('/^(foo)+$/', str_repeat('foo', 1024*8192))); |