Changed Default "exclude_disabled" Argument to False
As of PHP 8.0.0, the exclude_disabled argument of get_defined_functions()
defaults to true
, where previously it defaulted to false
. Additionally, the explicit value false
is deprecated, as the function can no longer list disabled functions.
get_defined_functions(false);
See execution result.
Solution
If you relied on a list of disabled functions, then there is no equivalent, and you will need to review your code's logic manually.
If you only relied on enabled functions and the call had no argument, then no change is required. If the call had an explicit false
argument, then the argument should be removed:
get_defined_functions();
Errors or Warnings
- get_defined_functions(): Setting $exclude_disabled to false has no effect