Req #76072 [Com]: support __getStatic, __setStatic, and all
| From: | daverandom@php.net | Date: | Fri, 09 Mar 2018 10:44:55 +0000 |
| Subject: | Req #76072 [Com]: support __getStatic, __setStatic, and all | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214244@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76072&edit=1
ID: 76072
Comment by: daverandom@php.net
Reported by: mepehok at mailtrix dot net
Summary: support __getStatic, __setStatic, and all
Status: Duplicate
Type: Feature/Change Request
Package: *General Issues
PHP Version: 7.2.3
Block user comment: N
Private report: N
New Comment:
Duplicate of bug 45002 and bug 62860 (comment formatted properly for linking)
Previous Comments:
------------------------------------------------------------------------
[2018-03-09 10:38:08] daverandom@php.net
I am closing this as it is a duplicate of https://bugs.php.net/bug.php?id=45002 and https://bugs.php.net/bug.php?id=62860 (and possibly
others).
Please note that this is *not* a comment on the validity of the request, simply an attempt to keep
the bug database tidy.
Since the other two issue are old and appear not to be moving anywhere, the best thing to do in
order to get something done would likely be to raise it on internals. In fact, if you can, the best
thing to do would be to create an implementation and write an RFC, if you do that then you will
probably find that everyone suddenly has an opinion. Personally, I think this would have a pretty
reasonable chance of passing if someone implemented it.
------------------------------------------------------------------------
[2018-03-09 09:25:27] mepehok at mailtrix dot net
Description:
------------
I know I "shouldn't be using magic methods", there's no need to repeat it every
time this feature is requested, but the reality is that they are useful in certain circumstances,
like testing.
No one is asking to allow static class properties to be dynamically defined.
From my understanding of php source code, this is already possible, but it is not enabled in user
code. Can we please have this implemented without making it a big deal about code cleanness and
kinda arguments that are not really helpful?
Thanks.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76072&edit=1