xref: /PHP-7.4/ext/pcre/tests/no_jit_bug70110.phpt (revision ded3d984)
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==DONE==
13--EXPECT--
14int(1)
15int(1)
16==DONE==
17