php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #76805 Scope-relative method names are not resolved by is_callable
Submitted: 2018-08-27 20:44 UTC Modified: -
From: marcospassos dot com at gmail dot com Assigned:
Status: Open Package: Reflection related
PHP Version: 7.3.0beta2 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-08-27 20:44 UTC] marcospassos dot com at gmail dot com
Description:
------------
The function is_callable does not resolve method names involving scope resolution.

Test script:
---------------
https://3v4l.org/aUfCc

Expected result:
----------------
ParentClass::foo
ChildClass::foo

Actual result:
--------------
ChildClass::parent::foo
ChildClass::self::foo

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-27 22:06 UTC] danack@php.net
This should probably be part of:
https://wiki.php.net/rfc/consistent_callables
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Oct 22 14:01:27 2019 UTC