]> granicus.if.org Git - php/commitdiff
Skip if no jit is built
authorXinchen Hui <laruence@gmail.com>
Sat, 29 Oct 2016 06:23:25 +0000 (14:23 +0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 29 Oct 2016 06:23:25 +0000 (14:23 +0800)
ext/pcre/tests/check_jit_enabled.phpt
ext/pcre/tests/preg_match_error3.phpt

index 9cdab2b1d3b417257fad1c3cc074d40f3ee6af87..de6e263e7018a852aeefa334ba54ef7c41b90724 100644 (file)
@@ -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
 
index 7202b68b34657f6d3f9c1649e15d127e90caba2f..2e91e24466bada7a3008e7210b83805fb6421540 100644 (file)
@@ -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)));