xref: /PHP-8.0/ext/opcache/tests/jit/bug80426.phpt (revision 31eafedf)
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--SKIPIF--
9<?php require_once('skipif.inc'); ?>
10<?php if (!isset(opcache_get_status()["jit"])) die('skip: JIT is not available'); ?>
11<?php if (!extension_loaded('zend-test')) die('skip: zend-test extension required'); ?>
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