summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/preg_match_error3.phpt
blob: 2e91e24466bada7a3008e7210b83805fb6421540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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)));
var_dump(preg_last_error() === PREG_JIT_STACKLIMIT_ERROR);
?>
--EXPECT--
bool(false)
bool(true)