Req #45002 [Com]: __get() and __set() don't work for static variable calls
Edit report at https://bugs.php.net/bug.php?id=45002edit=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=45002edit=1
Req #45002 [Com]: __get() and __set() don't work for static variable calls
Edit report at https://bugs.php.net/bug.php?id=45002edit=1 ID: 45002 Comment by: zsolt94 at gmail 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: Please import this feature into mainline PHP. We are still looking for this patch. Previous Comments: [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 [2009-09-24 10:23:05] peter dot rother at gmail dot com 'Twould be seriously nice to have this featureâ¦please let us know if anything can be done soon. 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=45002edit=1
Req #45002 [Com]: __get() and __set() don't work for static variable calls
Edit report at http://bugs.php.net/bug.php?id=45002edit=1 ID: 45002 Comment by: allesbesser at gmail 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: Please use the patch by thekid for the next release. We really need this. Previous Comments: [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 [2009-09-24 10:23:05] peter dot rother at gmail dot com 'Twould be seriously nice to have this featureâ¦please let us know if anything can be done soon. [2009-08-01 15:25:58] atrauzzi at gmail dot com I'd have to say I'm waiting on this feature as well. Is there a snapshot I could be using to test it out? 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 http://bugs.php.net/bug.php?id=45002 -- Edit this bug report at http://bugs.php.net/bug.php?id=45002edit=1
Req #45002 [Com]: __get() and __set() don't work for static variable calls
Edit report at http://bugs.php.net/bug.php?id=45002edit=1 ID: 45002 Comment by: marious dot alex at gmail 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: 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? Previous Comments: [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 [2009-09-24 10:23:05] peter dot rother at gmail dot com 'Twould be seriously nice to have this featureâ¦please let us know if anything can be done soon. [2009-08-01 15:25:58] atrauzzi at gmail dot com I'd have to say I'm waiting on this feature as well. Is there a snapshot I could be using to test it out? [2009-07-30 21:21:58] some at email dot com When to expect resolving this bug 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 http://bugs.php.net/bug.php?id=45002 -- Edit this bug report at http://bugs.php.net/bug.php?id=45002edit=1
Req #45002 [Com]: __get() and __set() don't work for static variable calls
Edit report at http://bugs.php.net/bug.php?id=45002edit=1 ID: 45002 Comment by: temporary dot hole at googlemail 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 New Comment: 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 ? Previous Comments: [2010-05-14 09:13:41] vincentbab at gmail dot com I would really apreciate this feature too [2009-09-24 10:23:05] peter dot rother at gmail dot com 'Twould be seriously nice to have this featureâ¦please let us know if anything can be done soon. [2009-08-01 15:25:58] atrauzzi at gmail dot com I'd have to say I'm waiting on this feature as well. Is there a snapshot I could be using to test it out? [2009-07-30 21:21:58] some at email dot com When to expect resolving this bug [2009-05-13 15:38:49] rcavallari at hotmail dot com Any news about __{get,set}Static in the mainline? 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 http://bugs.php.net/bug.php?id=45002 -- Edit this bug report at http://bugs.php.net/bug.php?id=45002edit=1
Req #45002 [Com]: __get() and __set() don't work for static variable calls
Edit report at http://bugs.php.net/bug.php?id=45002edit=1 ID: 45002 Comment by: vincentbab at gmail 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 New Comment: I would really apreciate this feature too Previous Comments: [2009-09-24 10:23:05] peter dot rother at gmail dot com 'Twould be seriously nice to have this featureâ¦please let us know if anything can be done soon. [2009-08-01 15:25:58] atrauzzi at gmail dot com I'd have to say I'm waiting on this feature as well. Is there a snapshot I could be using to test it out? [2009-07-30 21:21:58] some at email dot com When to expect resolving this bug [2009-05-13 15:38:49] rcavallari at hotmail dot com Any news about __{get,set}Static in the mainline? [2009-01-08 08:51:30] jeremie dot bordier at gmail dot com Could this patch be reviewed and committed ? It's been a long time now for a such little feature... 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 http://bugs.php.net/bug.php?id=45002 -- Edit this bug report at http://bugs.php.net/bug.php?id=45002edit=1
#45002 [Com]: __get() and __set() don't work for static variable calls
ID: 45002 Comment by: peter dot rother at gmail dot com Reported By: jb2386 at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.6 New Comment: 'Twould be seriously nice to have this featureâ¦please let us know if anything can be done soon. Previous Comments: [2009-08-01 15:25:58] atrauzzi at gmail dot com I'd have to say I'm waiting on this feature as well. Is there a snapshot I could be using to test it out? [2009-07-30 21:21:58] some at email dot com When to expect resolving this bug [2009-05-13 15:38:49] rcavallari at hotmail dot com Any news about __{get,set}Static in the mainline? [2009-01-08 08:51:30] jeremie dot bordier at gmail dot com Could this patch be reviewed and committed ? It's been a long time now for a such little feature... [2008-11-25 03:50:55] cleeder at gmail dot com How long until we can expect to see this patch in the production version of PHP? 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 http://bugs.php.net/45002 -- Edit this bug report at http://bugs.php.net/?id=45002edit=1
#45002 [Com]: __get() and __set() don't work for static variable calls
ID: 45002 Comment by: atrauzzi at gmail dot com Reported By: jb2386 at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.6 New Comment: I'd have to say I'm waiting on this feature as well. Is there a snapshot I could be using to test it out? Previous Comments: [2009-07-30 21:21:58] some at email dot com When to expect resolving this bug [2009-05-13 15:38:49] rcavallari at hotmail dot com Any news about __{get,set}Static in the mainline? [2009-01-08 08:51:30] jeremie dot bordier at gmail dot com Could this patch be reviewed and committed ? It's been a long time now for a such little feature... [2008-11-25 03:50:55] cleeder at gmail dot com How long until we can expect to see this patch in the production version of PHP? [2008-09-13 14:42:23] the...@php.net There is a patch available at http://sitten-polizei.de/php/getstatic.diff 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 http://bugs.php.net/45002 -- Edit this bug report at http://bugs.php.net/?id=45002edit=1
#45002 [Com]: __get() and __set() don't work for static variable calls
ID: 45002 Comment by: some at email dot com Reported By: jb2386 at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.6 New Comment: When to expect resolving this bug Previous Comments: [2009-05-13 15:38:49] rcavallari at hotmail dot com Any news about __{get,set}Static in the mainline? [2009-01-08 08:51:30] jeremie dot bordier at gmail dot com Could this patch be reviewed and committed ? It's been a long time now for a such little feature... [2008-11-25 03:50:55] cleeder at gmail dot com How long until we can expect to see this patch in the production version of PHP? [2008-09-13 14:42:23] the...@php.net There is a patch available at http://sitten-polizei.de/php/getstatic.diff [2008-05-15 08:42:05] jb2386 at hotmail dot com Description: As per bug report: http://bugs.php.net/bug.php?id=39678 Static class attributes cannot be accessed using __get and __set methods. Also, for reference to __callStatic see: http://bugs.php.net/bug.php?id=26739 With the implementation of __callStatic in PHP 5.3, will there be an implementation of similar functions __getStatic() and __setStatic()? For example, so replacing __get and __set with __getStatic() and __setStatic() respectively will produce the Expected Output below? Reproduce code: --- class myClass { public function __set($name,$value) { echo Setting: . $name . to . $value.\n; self::$$name = $value; } public function __get($name) { echo Getting: . $name . \n; } } myClass::$myStaticVar = test; echo myClass::$myStaticVar; Expected result: Setting: myStaticVar to test Getting: myStaticVar Actual result: -- Fatal error: Access to undeclared static property: myClass::$myStaticVar -- Edit this bug report at http://bugs.php.net/?id=45002edit=1
#45002 [Com]: __get() and __set() don't work for static variable calls
ID: 45002 Comment by: rcavallari at hotmail dot com Reported By: jb2386 at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.6 New Comment: Any news about __{get,set}Static in the mainline? Previous Comments: [2009-01-08 08:51:30] jeremie dot bordier at gmail dot com Could this patch be reviewed and committed ? It's been a long time now for a such little feature... [2008-11-25 03:50:55] cleeder at gmail dot com How long until we can expect to see this patch in the production version of PHP? [2008-09-13 14:42:23] the...@php.net There is a patch available at http://sitten-polizei.de/php/getstatic.diff [2008-05-15 08:42:05] jb2386 at hotmail dot com Description: As per bug report: http://bugs.php.net/bug.php?id=39678 Static class attributes cannot be accessed using __get and __set methods. Also, for reference to __callStatic see: http://bugs.php.net/bug.php?id=26739 With the implementation of __callStatic in PHP 5.3, will there be an implementation of similar functions __getStatic() and __setStatic()? For example, so replacing __get and __set with __getStatic() and __setStatic() respectively will produce the Expected Output below? Reproduce code: --- class myClass { public function __set($name,$value) { echo Setting: . $name . to . $value.\n; self::$$name = $value; } public function __get($name) { echo Getting: . $name . \n; } } myClass::$myStaticVar = test; echo myClass::$myStaticVar; Expected result: Setting: myStaticVar to test Getting: myStaticVar Actual result: -- Fatal error: Access to undeclared static property: myClass::$myStaticVar -- Edit this bug report at http://bugs.php.net/?id=45002edit=1
#45002 [Com]: __get() and __set() don't work for static variable calls
ID: 45002 Comment by: jeremie dot bordier at gmail dot com Reported By: jb2386 at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.6 New Comment: Could this patch be reviewed and committed ? It's been a long time now for a such little feature... Previous Comments: [2008-11-25 03:50:55] cleeder at gmail dot com How long until we can expect to see this patch in the production version of PHP? [2008-09-13 14:42:23] the...@php.net There is a patch available at http://sitten-polizei.de/php/getstatic.diff [2008-05-15 08:42:05] jb2386 at hotmail dot com Description: As per bug report: http://bugs.php.net/bug.php?id=39678 Static class attributes cannot be accessed using __get and __set methods. Also, for reference to __callStatic see: http://bugs.php.net/bug.php?id=26739 With the implementation of __callStatic in PHP 5.3, will there be an implementation of similar functions __getStatic() and __setStatic()? For example, so replacing __get and __set with __getStatic() and __setStatic() respectively will produce the Expected Output below? Reproduce code: --- class myClass { public function __set($name,$value) { echo Setting: . $name . to . $value.\n; self::$$name = $value; } public function __get($name) { echo Getting: . $name . \n; } } myClass::$myStaticVar = test; echo myClass::$myStaticVar; Expected result: Setting: myStaticVar to test Getting: myStaticVar Actual result: -- Fatal error: Access to undeclared static property: myClass::$myStaticVar -- Edit this bug report at http://bugs.php.net/?id=45002edit=1
#45002 [Com]: __get() and __set() don't work for static variable calls
ID: 45002 Comment by: cleeder at gmail dot com Reported By: jb2386 at hotmail dot com Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.6 New Comment: How long until we can expect to see this patch in the production version of PHP? Previous Comments: [2008-09-13 14:42:23] [EMAIL PROTECTED] There is a patch available at http://sitten-polizei.de/php/getstatic.diff [2008-05-15 08:42:05] jb2386 at hotmail dot com Description: As per bug report: http://bugs.php.net/bug.php?id=39678 Static class attributes cannot be accessed using __get and __set methods. Also, for reference to __callStatic see: http://bugs.php.net/bug.php?id=26739 With the implementation of __callStatic in PHP 5.3, will there be an implementation of similar functions __getStatic() and __setStatic()? For example, so replacing __get and __set with __getStatic() and __setStatic() respectively will produce the Expected Output below? Reproduce code: --- class myClass { public function __set($name,$value) { echo Setting: . $name . to . $value.\n; self::$$name = $value; } public function __get($name) { echo Getting: . $name . \n; } } myClass::$myStaticVar = test; echo myClass::$myStaticVar; Expected result: Setting: myStaticVar to test Getting: myStaticVar Actual result: -- Fatal error: Access to undeclared static property: myClass::$myStaticVar -- Edit this bug report at http://bugs.php.net/?id=45002edit=1