summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/errors05.phpt
blob: 13fabc4f30f4c76208c1ab8b34d794fa9aff4db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test preg_match() function : error conditions - jit stacklimit exhausted
--SKIPIF--
<?php
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)));
var_dump(preg_last_error_msg() === 'JIT stack limit exhausted');
?>
--EXPECT--
bool(false)
bool(true)