Bug #67774 [Com]: Scope-Resolution Operator static binding
| From: | diyavatigyan at gmail dot com | Date: | Fri, 26 May 2023 07:21:28 +0000 |
| Subject: | Bug #67774 [Com]: Scope-Resolution Operator static binding | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-244546@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67774&edit=1
ID: 67774
Comment by: diyavatigyan at gmail dot com
Reported by: joelm@php.net
Summary: Scope-Resolution Operator static binding
Status: Open
Type: Bug
Package: PHP Language Specification
PHP Version: PHP-5.6
Block user comment: N
Private report: N
New Comment:
Fashion Weekin are sharing latest news about fashion, lifestyle, clothing, shopping, wedding,
photography etc. More info to visit:(https://fashionweekin.com)github.com
Previous Comments:
------------------------------------------------------------------------
[2014-08-05 16:57:54] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67774&edit=1