xref: /PHP-8.3/ext/opcache/tests/gh8466.phpt (revision 332bd037)
1--TEST--
2Bug GH-8466: ini_get() is optimized out when the option does not exist during compilation
3--SKIPIF--
4<?php include dirname(__DIR__, 2) . "/dl_test/tests/skip.inc"; ?>
5--FILE--
6<?php
7
8if (extension_loaded('dl_test')) {
9    exit('Error: dl_test is already loaded');
10}
11
12if (PHP_OS_FAMILY === 'Windows') {
13    $loaded = dl('php_dl_test.dll');
14} else {
15    $loaded = dl('dl_test.so');
16}
17
18var_dump($loaded);
19
20var_dump(ini_get('dl_test.long'));
21--EXPECT--
22bool(true)
23string(1) "0"
24