Bug #69987 [Ver->Dup]: ReflectionParameter::isCallable not work
Edit report at https://bugs.php.net/bug.php?id=69987&edit=1
ID: 69987
Updated by: cmb@php.net
Reported by: lozinskiy dot artem at gmail dot com
Summary: ReflectionParameter::isCallable not work
-Status: Verified
+Status: Duplicate
Type: Bug
Package: Reflection related
Operating System: win7
PHP Version: 5.4Git-2015-07-03 (snap)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
While it is actually the other way round, I'm marking this ticket
as duplicate of bug #72305, since that has already some
explanations and an attached POC.
Previous Comments:
------------------------------------------------------------------------
[2015-07-03 12:28:21] cmb@php.net
See also the recent discussion on the internals mailing list:
<http://markmail.org/thread/opj5pskqzseqafaz>.
------------------------------------------------------------------------
[2015-07-03 09:45:10] lozinskiy dot artem at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/reflectionparameter.iscallable
---
Bug for internal function - callable set_exception_handler ( callable $exception_handler )
not work ReflectionParameter::isCallable
Test script:
---------------
$refl = new ReflectionFunction('set_exception_handler');
$parameters = $refl->getParameters();
var_dump($parameters[0]->getName(), $parameters[0]->isCallable());
Expected result:
----------------
string 'exception_handler' (length=17)
boolean false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69987&edit=1
Thread (3 messages)