xref: /PHP-8.1/ext/opcache/tests/jit/bug81256.phpt (revision 520a8e00)
1--TEST--
2Bug #81256: Assertion `zv != ((void *)0)' failed for "preload" with JIT
3--EXTENSIONS--
4opcache
5--SKIPIF--
6<?php
7if (PHP_OS_FAMILY === "Windows") die("skip Windows does not support preloading");
8?>
9--INI--
10opcache.enable=1
11opcache.enable_cli=1
12opcache.jit_buffer_size=1M
13opcache.jit=function
14opcache.preload={PWD}/preload_bug81256.inc
15--FILE--
16<?php
17foo();
18?>
19--EXPECT--
20Hello
21