/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/basic/bug31875.phpt
29 строк
866 B
Gina Peter Banyard
Deprecate the parameter of get_defined_functions() (#19425)
09 авг 2025, 13:22
Не верифицирован
09 авг 2025, 13:22
94a15cc
Код
Авторство
О чём код?
--TEST-- Bug #31875 get_defined_functions() should not list disabled functions --CREDITS-- Willian Gustavo Veiga <contact@willianveiga.com> --INI-- disable_functions=dl --FILE-- <?php $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(): The $exclude_disabled parameter has no effect since PHP 8.0 in %s on line %d bool(false) Deprecated: get_defined_functions(): The $exclude_disabled parameter has no effect since PHP 8.0 in %s on line %d bool(false)