xref: /PHP-8.1/ext/pcre/tests/no_jit_bug70110.phpt (revision a555cc0b)
1--TEST--
2Test (*NO_JIT) doesn't crash when JIT enabled
3--SKIPIF--
4<?php if (!PCRE_JIT_SUPPORT) die("skip pcre jit support required"); ?>
5--FILE--
6<?php
7
8var_dump(preg_match('/(*NO_JIT)^(A{1,2}B)+$$/',str_repeat('AB',8192)));
9var_dump(preg_match('~(*NO_JIT)(a)*~', str_repeat('a', 5431), $match))
10
11?>
12--EXPECT--
13int(1)
14int(1)
15