mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
17 lines
343 B
PHP
17 lines
343 B
PHP
--TEST--
|
|
Test (*NO_JIT) doesn't crash when JIT enabled
|
|
--SKIPIF--
|
|
<?php if (!PCRE_JIT_SUPPORT) die("skip pcre jit support required"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(preg_match('/(*NO_JIT)^(A{1,2}B)+$$/',str_repeat('AB',8192)));
|
|
var_dump(preg_match('~(*NO_JIT)(a)*~', str_repeat('a', 5431), $match))
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
int(1)
|
|
int(1)
|
|
==DONE==
|