php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67774 Scope-Resolution Operator static binding
Submitted: 2014-08-05 16:57 UTC Modified: 2015-06-28 21:40 UTC
From: joelm@php.net Assigned:
Status: Open Package: PHP Language Specification
PHP Version: PHP-5.6 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joelm@php.net
New email:
PHP Version: OS:

 

 [2014-08-05 16:57 UTC] joelm@php.net
Description:
------------
https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#scope-resolution-operator

The term "late static binding" gets mentioned and "static::" is shown in one example, but it doesn't give nearly enough detail about how late static binding works. It only says "From within a method, static::m refers to the member m in the class that corresponds to the class inheritance context in which the method is called", which is vague and lacks a lot important details (for example, how "self::" and "parent::" interact with late static binding). Late static binding is a big enough language feature to deserve its own section. Check out php.net's documentation for late static binding works: http://www.php.net//manual/en/language.oop5.late-static-bindings.php.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-28 21:40 UTC] stas@php.net
-PHP Version: Irrelevant +PHP Version: PHP-5.6
 [2023-05-26 07:21 UTC] diyavatigyan at gmail dot com
Fashion Weekin are sharing latest news about fashion, lifestyle, clothing, shopping, wedding, photography etc. More info to visit:(https://fashionweekin.com)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 04 06:01:26 2024 UTC