note 90813 added to function.is-callable

From: Date: Mon, 11 May 2009 14:58:09 +0000
Subject: note 90813 added to function.is-callable
Groups: php.notes 
Request: Send a blank email to php-notes+get-154452@lists.php.net to get a copy of this message
is_callable() does NOT check wether a given function has been disabled by the php.ini setting "disable_functions"! function_exists() does! <?php # in php.ini: disable_functions = exec ?> <?php # returns TRUE (incorrect): echo is_callable( "exec" ); # returns FALSE (correct): echo function_exists( "exec" ); ?> This has already been noted by "Quis strrev TA omicidio strrev TOD com", but I wanted to underline this problem, since, there are comments like the one of "cipri at php dot net" that are erroneous and also I find the name of this function is quite misleading. ---- Server IP: 69.147.83.197 Probable Submitter: 87.159.102.105 ---- Manual Page -- http://www.php.net/manual/en/function.is-callable.php Edit -- https://master.php.net/note/edit/90813 Del: integrated -- https://master.php.net/note/delete/90813/integrated Del: useless -- https://master.php.net/note/delete/90813/useless Del: bad code -- https://master.php.net/note/delete/90813/bad+code Del: spam -- https://master.php.net/note/delete/90813/spam Del: non-english -- https://master.php.net/note/delete/90813/non-english Del: in docs -- https://master.php.net/note/delete/90813/in+docs Del: other reasons-- https://master.php.net/note/delete/90813 Reject -- https://master.php.net/note/reject/90813 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154452) next »