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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 06:01:32 2024 UTC