Bug #79668 [NEW]: get_defined_functions(true) may miss functions

From: Date: Wed, 03 Jun 2020 08:07:52 +0000
Subject: Bug #79668 [NEW]: get_defined_functions(true) may miss functions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227280@lists.php.net to get a copy of this message
From: cmb Operating system: * PHP version: 7.3Git-2020-06-03 (Git) Package: PHP options/info functions Bug Type: Bug Bug description:get_defined_functions(true) may miss functions 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) -- Edit bug report at https://bugs.php.net/bug.php?id=79668&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79668&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79668&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79668&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79668&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79668&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79668&r=support Expected behavior: https://bugs.php.net/fix.php?id=79668&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79668&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79668&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79668&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79668&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79668&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79668&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79668&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79668&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79668&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79668&r=mysqlcfg

« previous php.bugs (#227280) next »