mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
18 lines
367 B
PHP
18 lines
367 B
PHP
--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() === PREG_JIT_STACKLIMIT_ERROR);
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|