Bug #63467 [Opn->Nab]: is_callable returns false for public function inherited from parent
| From: | laruence@php.net | Date: | Thu, 08 Nov 2012 16:13:18 +0000 |
| Subject: | Bug #63467 [Opn->Nab]: is_callable returns false for public function inherited from parent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174590@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63467&edit=1
ID: 63467
Updated by: laruence@php.net
Reported by: martijn dot otto at copernica dot com
Summary: is_callable returns false for public function
inherited from parent
-Status: Open
+Status: Not a bug
Type: Bug
Package: Class/Object related
Operating System: linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
should be:is_callable(array($b, 'bla'));
Previous Comments:
------------------------------------------------------------------------
[2012-11-08 12:53:29] martijn dot otto at copernica dot com
Description:
------------
When calling is_callible on a public function inherited from a parent, it will
return false.
Test script:
---------------
class a
{
public function bla() {}
}
class b extends a
{
}
$b = new b;
var_dump(is_callable($b, 'bla'));
Expected result:
----------------
bool(true)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63467&edit=1