bug79668.phpt 361 B

12345678910111213141516
  1. --TEST--
  2. Bug #79668 (get_defined_functions(true) may miss functions)
  3. --INI--
  4. disable_functions=sha1_file,password_hash
  5. --FILE--
  6. <?php
  7. $df = get_defined_functions(true);
  8. foreach (['sha1', 'sha1_file', 'hash', 'password_hash'] as $funcname) {
  9. var_dump(in_array($funcname, $df['internal'], true));
  10. }
  11. ?>
  12. --EXPECT--
  13. bool(true)
  14. bool(false)
  15. bool(true)
  16. bool(false)