php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67859 Use of static method names
Submitted: 2014-08-18 20:18 UTC Modified: -
From: cmbecker69 at gmx dot de Assigned:
Status: Closed Package: PHP Language Specification
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
26 - 14 = ?
Subscribe to this entry?

 
 [2014-08-18 20:18 UTC] cmbecker69 at gmx dot de
Description:
------------
The section "Class Members" specifies:

| The name of a static method or property can never be used on its
| own; it must always be used as the right-hand operand of the
| scope resolution operator.

However, it is possible to use the name of static methods as the
right-hand operand of the member selection operator, see
<http://3v4l.org/vLqbe>.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-28 22:39 UTC] stas@php.net
Automatic comment on behalf of smalyshev@gmail.com
Revision: http://git.php.net/?p=php-langspec.git;a=commit;h=706af9c450b334fd6219a7dcb5d6233c5cf69ea5
Log: Fix bug #67859
 [2015-06-28 22:39 UTC] stas@php.net
-Status: Open +Status: Closed
 [2015-06-28 23:20 UTC] stas@php.net
Automatic comment on behalf of smalyshev@gmail.com
Revision: http://git.php.net/?p=php-langspec.git;a=commit;h=706af9c450b334fd6219a7dcb5d6233c5cf69ea5
Log: Fix bug #67859
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC