xref: /PHP-8.3/ext/opcache/tests/bug68104.phpt (revision b21df698)
1--TEST--
2Bug #68104 (Segfault while pre-evaluating a disabled function)
3--CREDITS--
4manuel <manuel@mausz.at>
5--INI--
6opcache.enable=1
7opcache.enable_cli=1
8disable_functions=dl
9--EXTENSIONS--
10opcache
11--SKIPIF--
12<?php
13if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
14?>
15--FILE--
16<?php
17var_dump(is_callable("dl"));
18try {
19    dl("a.so");
20} catch (Error $e) {
21    echo $e->getMessage(), "\n";
22}
23?>
24--EXPECT--
25bool(false)
26Call to undefined function dl()
27