diff options
| author | Xinchen Hui <laruence@gmail.com> | 2016-10-29 14:23:25 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2016-10-29 14:23:25 +0800 |
| commit | 66caa61188a7596f8af8da5d9f1217e5648f4076 (patch) | |
| tree | 844936ecf9c55b050e18ce19fc143e365dc06fa4 | |
| parent | ddbcb2084aee71d1723b3ca39668010c1ba31124 (diff) | |
| download | php-git-66caa61188a7596f8af8da5d9f1217e5648f4076.tar.gz | |
Skip if no jit is built
| -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))); |
