mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79668: get_defined_functions(true) may miss functions
This commit is contained in:
commit
c773dd81c6
1 changed files with 16 additions and 0 deletions
16
Zend/tests/bug79668.phpt
Normal file
16
Zend/tests/bug79668.phpt
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue