get_defined_functions(): Setting $exclude_disabled to false has no effect

Description

The first (and only) parameter of the PHP native function get_defined_functions() is deprecated since PHP 8.0 and will disappear in PHP 9.

Example

<?php

$list = get_defined_functions(false);

?>

Solutions

  • Remove all parameter usage when calling get_defined_functions(), and fetch the list of disabled functions another way.

  • Check that the parameter is never false before usage.