|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-06-03 08:07 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2020-06-03 08:53 UTC] cmb@php.net
[2020-06-04 07:11 UTC] cmb@php.net
[2020-06-04 07:11 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 02:00:01 2025 UTC |
Description: ------------ The return value of get_defined_functions(true) does not contain functions whose names match *parts* of function names in disable_functions. Test script: --------------- $ cat disable.php <?php $df = get_defined_functions(true); var_dump(in_array('sha1', $df['internal'], true)); var_dump(is_string(sha1('foo'))); var_dump(in_array('hash', $df['internal'], true)); var_dump(is_string(hash('md5', 'foo'))); ?> $ php -d disable_functions=sha1_file,password_hash disable.php Expected result: ---------------- bool(true) bool(true) bool(true) bool(true) Actual result: -------------- bool(false) bool(true) bool(false) bool(true)