summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/preg_match_error3.phpt
blob: 7202b68b34657f6d3f9c1649e15d127e90caba2f (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Test preg_match() function : error conditions - jit stacklimit exhausted
--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)