note 111601 added to function.is-callable
| From: | wowkise at gmail dot com | Date: | Thu, 07 Mar 2013 10:10:24 +0000 |
| Subject: | note 111601 added to function.is-callable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193975@lists.php.net to get a copy of this message | ||
beware calling is_callable on class that has the same method name will return false, i filed a bug
report to be included in function description as example
<?php
class test {
function test() {
}
}
$class = new test();
var_dump(is_callable([$class, 'test']));
?>
will return false
----
Server IP: 69.147.83.199
Probable Submitter: 178.61.178.92
----
Manual Page -- http://php.net/manual/en/function.is-callable.php
Edit -- https://master.php.net/note/edit/111601
Del: integrated -- https://master.php.net/note/delete/111601/integrated
Del: useless -- https://master.php.net/note/delete/111601/useless
Del: bad code -- https://master.php.net/note/delete/111601/bad+code
Del: spam -- https://master.php.net/note/delete/111601/spam
Del: non-english -- https://master.php.net/note/delete/111601/non-english
Del: in docs -- https://master.php.net/note/delete/111601/in+docs
Del: other reasons-- https://master.php.net/note/delete/111601
Reject -- https://master.php.net/note/reject/111601
Search -- https://master.php.net/manage/user-notes.php