Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix #79668: get_defined_functions(true) may miss functions
This commit is contained in:
Christoph M. Becker 2020-06-04 09:11:13 +02:00
commit c773dd81c6

16
Zend/tests/bug79668.phpt Normal file
View file

@ -0,0 +1,16 @@
--TEST--
Bug #79668 (get_defined_functions(true) may miss functions)
--INI--
disable_functions=sha1_file,password_hash
--FILE--
<?php
$df = get_defined_functions(true);
foreach (['sha1', 'sha1_file', 'hash', 'password_hash'] as $funcname) {
var_dump(in_array($funcname, $df['internal'], true));
}
?>
--EXPECT--
bool(true)
bool(false)
bool(true)
bool(false)