xref: /PHP-8.3/ext/opcache/tests/jit/bug80426.phpt (revision 6e7e52de)
1--TEST--
2Bug #80426: Crash when using JIT and an extension replacing zend_execute_ex with custom
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.jit_buffer_size=1M
7zend_test.replace_zend_execute_ex=1
8--EXTENSIONS--
9opcache
10zend_test
11--SKIPIF--
12<?php if ((opcache_get_status()['jit']['on'] ?? false) === false) die('skip: JIT is not available'); ?>
13--FILE--
14<?php
15
16function compute() {
17    if (true) {
18    }
19}
20
21for ($i = 0; $i <= 64; $i++) {
22    compute();
23}
24
25?>
26===DONE===
27--EXPECT--
28Warning: JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0
29===DONE===
30