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