is_callable and function_exists with disable_functions

From: Date: Thu, 26 Mar 2015 15:21:39 +0000
Subject: is_callable and function_exists with disable_functions
Groups: php.internals 
Request: Send a blank email to internals+get-85474@lists.php.net to get a copy of this message
Hey Internal: there is one confused behavior with disable_functions: $ sapi/cli/php -n -d disable_functions=strlen -r 'var_dump(function_exists("strlen")); var_dump(is_callable("strlen"));' bool(false) bool(true) as you can see, strlen is disabled by disable_functions. function_exisis tell it is not exists but is_callable said it is callable.. do you mind if I change the current behavior of is_callable , to return false on this case? or, at least, change function_exists's behavior instead? thanks -- Xinchen Hui @Laruence http://www.laruence.com/

« previous php.internals (#85474) next »