diff options
author | Willian Gustavo Veiga <contact@willianveiga.com> | 2015-06-02 21:42:18 -0300 |
---|---|---|
committer | Willian Gustavo Veiga <contact@willianveiga.com> | 2015-06-02 21:42:18 -0300 |
commit | 33721742a59a34989d54846432a04ae62a4939bb (patch) | |
tree | aded554a5bab4b125f37a910b7d08549840c4ff6 /tests | |
parent | 978832331acdcb59114bdba28498c248c5188883 (diff) | |
download | php-git-33721742a59a34989d54846432a04ae62a4939bb.tar.gz |
Added "exclude_disabled" argument to "get_defined_functions".
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/bug31875.phpt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/basic/bug31875.phpt b/tests/basic/bug31875.phpt index d29b7f1b1b..78085d766b 100644 --- a/tests/basic/bug31875.phpt +++ b/tests/basic/bug31875.phpt @@ -6,7 +6,18 @@ Willian Gustavo Veiga <contact@willianveiga.com> disable_functions=dl --FILE-- <?php -var_dump(in_array('dl', get_defined_functions())); +$disabled_function = 'dl'; + +$functions = get_defined_functions(); +var_dump(in_array($disabled_function, $functions['internal'])); + +$functions = get_defined_functions(false); +var_dump(in_array($disabled_function, $functions['internal'])); + +$functions = get_defined_functions(true); +var_dump(in_array($disabled_function, $functions['internal'])); ?> --EXPECTF-- +bool(true) +bool(true) bool(false) |