get_defined_functions(): The $exclude_disabled parameter has no effect since PHP 8.0¶
Description¶
The $exclude_disabled parameter of the function get_defined_functions() function is unused since PHP 8.0. In PHP 7.0, it used to remove the disabled function from the result of this function.
Example¶
<?php
print_r(get_defined_functions(false));
?>
Solutions¶
Remove the parameter from any call to get_defined_functions().
Changed Behavior¶
This error may appear following an evolution in behavior, in previous versions. See get_defined_functions.
Static Analysis¶
This error may be tracked down with the following static analysis rules: Structures/GetDefinedFunctionsExcludeDisabled.