Skip to content

Commit c773dd8

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79668: get_defined_functions(true) may miss functions
2 parents 2745053 + 5e38a1b commit c773dd8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Zend/tests/bug79668.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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)

0 commit comments

Comments
 (0)