xref: /PHP-7.1/tests/basic/bug31875.phpt (revision 33721742)
1--TEST--
2Bug #31875 get_defined_functions() should not list disabled functions
3--CREDITS--
4Willian Gustavo Veiga <contact@willianveiga.com>
5--INI--
6disable_functions=dl
7--FILE--
8<?php
9$disabled_function = 'dl';
10
11$functions = get_defined_functions();
12var_dump(in_array($disabled_function, $functions['internal']));
13
14$functions = get_defined_functions(false);
15var_dump(in_array($disabled_function, $functions['internal']));
16
17$functions = get_defined_functions(true);
18var_dump(in_array($disabled_function, $functions['internal']));
19?>
20--EXPECTF--
21bool(true)
22bool(true)
23bool(false)
24