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
 [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: Thu Nov 21 14:01:29 2024 UTC