bug31875.phpt 740 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Bug #31875 get_defined_functions() should not list disabled functions
  3. --CREDITS--
  4. Willian Gustavo Veiga <contact@willianveiga.com>
  5. --INI--
  6. disable_functions=dl
  7. --FILE--
  8. <?php
  9. $disabled_function = 'dl';
  10. /* exclude_disabled parameters is hardcoded to true */
  11. $functions = get_defined_functions();
  12. var_dump(in_array($disabled_function, $functions['internal']));
  13. $functions = get_defined_functions(false);
  14. var_dump(in_array($disabled_function, $functions['internal']));
  15. $functions = get_defined_functions(true);
  16. var_dump(in_array($disabled_function, $functions['internal']));
  17. ?>
  18. --EXPECTF--
  19. bool(false)
  20. Deprecated: get_defined_functions(): Setting $exclude_disabled to false has no effect in %s on line %d
  21. bool(false)
  22. bool(false)