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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marcospassos dot com at gmail dot com
New email:
PHP Version: OS:

 

 [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: Sat Dec 07 09:01:24 2019 UTC