1--TEST--
2Test preg_match() function : error conditions - jit stacklimit exhausted
3--SKIPIF--
4<?php
5if (ini_get("pcre.jit") === FALSE) {
6	die("skip no jit built");
7}
8--FILE--
9<?php
10var_dump(preg_match('/^(foo)+$/', str_repeat('foo', 1024*8192)));
11var_dump(preg_last_error() === PREG_JIT_STACKLIMIT_ERROR);
12?>
13--EXPECT--
14bool(false)
15bool(true)
16