Edit report at https://bugs.php.net/bug.php?id=45002&edit=1
ID: 45002
Comment by: grotlek at hotmail dot com
Reported by: jb2386 at hotmail dot com
Summary: __get() and __set() don't work for static variable
calls
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: Any
PHP Version: 5.2.6
Block user comment: N
Private report: N
New Comment:
Well, it looks like there are at least 3 feature requests for this; but this
one is the most popular and has had a patch linked against it since a comment
posted in Sept 2008.
I've looked at the patch, it seems complete enough; the amount of code added is
pretty tiny, and has test cases to test the functions too.
So I guess the question is how to get the developers to pick this up and put
the code into the main development line. Do devs even pay attention to user
requests?
(It may be a tiny feature but it would make a whole bunch of code much easier
to maintain).
Previous Comments:
------------------------------------------------------------------------
[2012-07-21 09:57:17] zsolt94 at gmail dot com
Please import this feature into mainline PHP. We are still looking for this
patch.
------------------------------------------------------------------------
[2011-05-19 12:03:08] allesbesser at gmail dot com
Please use the patch by thekid for the next release. We really need this.
------------------------------------------------------------------------
[2011-03-30 19:26:04] marious dot alex at gmail dot com
This would be a really useful feature that I have been wishing for, for at
least
two years.
How come this has not been implemented when it is such a simple feature that
has
also been requested since 2008?
------------------------------------------------------------------------
[2010-06-25 12:22:21] temporary dot hole at googlemail dot com
I have an idea to use this for a static registry class, would be really useful
for keeping 'application-wide' data out of global variables.
I have no idea how to apply this patch, is it possible to use the above
mentioned .diff on PHP 5.3.1 ?
------------------------------------------------------------------------
[2010-05-14 09:13:41] vincentbab at gmail dot com
I would really apreciate this feature too
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=45002
--
Edit this bug report at https://bugs.php.net/bug.php?id=45002&edit=1