Skip to content

Commit

Permalink
ensure pcre.jit=1 for these tests
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Mar 22, 2019
1 parent da35fa2 commit 2e9dcce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/pcre/tests/preg_match_error3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Test preg_match() function : error conditions - jit stacklimit exhausted
if (ini_get("pcre.jit") === FALSE) {
die("skip no jit built");
}
?>
--INI--
pcre.jit=1
--FILE--
<?php
var_dump(preg_match('/^(foo)+$/', str_repeat('foo', 1024*8192)));
Expand Down
6 changes: 6 additions & 0 deletions ext/standard/tests/general_functions/ini_get_all.phpt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
--TEST--
ini_get_all() tests
--INI--
pcre.jit=1
pcre.backtrack_limit=1000000
pcre.recursion_limit=100000
--SKIPIF--
<?php if (!extension_loaded("reflection")) die("skip"); ?>
<?php
if (ini_get("pcre.jit") === FALSE) {
die("skip no jit built");
}
?>
--FILE--
<?php

Expand Down

0 comments on commit 2e9dcce

Please sign in to comment.