Bug #69987 [Opn->Ver]: ReflectionParameter::isCallable not work
| From: | cmb@php.net | Date: | Fri, 03 Jul 2015 12:28:21 +0000 |
| Subject: | Bug #69987 [Opn->Ver]: ReflectionParameter::isCallable not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194099@lists.php.net to get a copy of this message | ||
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: Open
+Status: Verified
Type: Bug
Package: Reflection related
Operating System: win7
PHP Version: 5.4Git-2015-07-03 (snap)
Block user comment: N
Private report: N
New Comment:
See also the recent discussion on the internals mailing list:
<http://markmail.org/thread/opj5pskqzseqafaz>.
Previous Comments:
------------------------------------------------------------------------
[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