php-src/ext/pcre/tests/no_jit_bug70110.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

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==