xref: /PHP-8.4/ext/opcache/tests/jit/bug80426.phpt (revision c16ad918)
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
6zend_test.replace_zend_execute_ex=1
7--EXTENSIONS--
8opcache
9zend_test
10--SKIPIF--
11<?php if ((opcache_get_status()['jit']['on'] ?? false) === false) die('skip: JIT is not available'); ?>
12--FILE--
13<?php
14
15function compute() {
16    if (true) {
17    }
18}
19
20for ($i = 0; $i <= 64; $i++) {
21    compute();
22}
23
24?>
25===DONE===
26--EXPECT--
27Warning: JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0
28===DONE===
29