Download src/php/php-src/tests/basic/bug31875.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 740 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/bug31875.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/basic/bug31875.phpt
-
curl -L -o bug31875.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/bug31875.phpt
740 Bytes
| --TEST-- | |
| Bug #31875 get_defined_functions() should not list disabled functions | |
| --CREDITS-- | |
| Willian Gustavo Veiga <contact@willianveiga.com> | |
| --INI-- | |
| disable_functions=dl | |
| --FILE-- | |
| $disabled_function = 'dl'; | |
| /* exclude_disabled parameters is hardcoded to true */ | |
| $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(false) | |
| Deprecated: get_defined_functions(): Setting $exclude_disabled to false has no effect in %s on line %d | |
| bool(false) | |
| bool(false) | |