xref: /PHP-8.0/ext/opcache/tests/bug68104.phpt (revision 53eee290)
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--SKIPIF--
10<?php require_once('skipif.inc'); ?>
11--FILE--
12<?php
13var_dump(is_callable("dl"));
14try {
15    dl("a.so");
16} catch (Error $e) {
17    echo $e->getMessage(), "\n";
18}
19?>
20--EXPECT--
21bool(false)
22Call to undefined function dl()
23