Skip to content

Commit 2e9dcce

Browse files
committed
ensure pcre.jit=1 for these tests
1 parent da35fa2 commit 2e9dcce

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ext/pcre/tests/preg_match_error3.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Test preg_match() function : error conditions - jit stacklimit exhausted
55
if (ini_get("pcre.jit") === FALSE) {
66
die("skip no jit built");
77
}
8+
?>
9+
--INI--
10+
pcre.jit=1
811
--FILE--
912
<?php
1013
var_dump(preg_match('/^(foo)+$/', str_repeat('foo', 1024*8192)));

ext/standard/tests/general_functions/ini_get_all.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
--TEST--
22
ini_get_all() tests
33
--INI--
4+
pcre.jit=1
45
pcre.backtrack_limit=1000000
56
pcre.recursion_limit=100000
67
--SKIPIF--
78
<?php if (!extension_loaded("reflection")) die("skip"); ?>
9+
<?php
10+
if (ini_get("pcre.jit") === FALSE) {
11+
die("skip no jit built");
12+
}
13+
?>
814
--FILE--
915
<?php
1016

0 commit comments

Comments
 (0)