xref: /PHP-8.4/ext/opcache/tests/jit/gh17257.phpt (revision f4fb77ed)
1--TEST--
2GH-17257 (SEGV ext/opcache/jit/zend_jit_vm_helpers.c)
3--EXTENSIONS--
4opcache
5--INI--
6opcache.jit_buffer_size=32M
7opcache.jit=1254
8opcache.jit_hot_func=1
9--FILE--
10<?php
11function get_const() {
12}
13function test() {
14    call_user_func('get_const', 1); // need an extra arg to trigger the issue
15}
16function main(){
17    for ($i = 0; $i < 10; $i++) {
18        test();
19    }
20    echo "Done\n";
21}
22main();
23?>
24--EXPECT--
25Done
26