com php-src: Skip if no jit is built: ext/pcre/tests/check_ji t_enabled.phpt ext/pcre/tests/preg_match_error3.p hpt

From: Date: Sat, 29 Oct 2016 06:23:25 +0000
Subject: com php-src: Skip if no jit is built: ext/pcre/tests/check_ji t_enabled.phpt ext/pcre/tests/preg_match_error3.p hpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95334@lists.php.net to get a copy of this message
Commit: 66caa61188a7596f8af8da5d9f1217e5648f4076 Author: Xinchen Hui <laruence@gmail.com> Sat, 29 Oct 2016 14:23:25 +0800 Parents: ddbcb2084aee71d1723b3ca39668010c1ba31124 Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=66caa61188a7596f8af8da5d9f1217e5648f4076 Log: Skip if no jit is built Changed paths: M ext/pcre/tests/check_jit_enabled.phpt M ext/pcre/tests/preg_match_error3.phpt Diff: diff --git a/ext/pcre/tests/check_jit_enabled.phpt b/ext/pcre/tests/check_jit_enabled.phpt index 9cdab2b..de6e263 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 7202b68..2e91e24 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)));

« previous php.cvs (#95334) next »