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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC