Re: feature request: user-defined superglobals
| From: | Matthias Nothhaft | Date: | Sat, 23 Aug 2003 21:15:34 +0000 |
| Subject: | Re: feature request: user-defined superglobals | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4150@lists.php.net to get a copy of this message | ||
Hi Andi Gutmans, you wrote:
Hi, This has been discussed in the past (see the archives of either this list or engine2). You'll have to manage with the existing ones. Very sad. Why is that?I took a look into the archive but couldn't find any reason!? Is it such a hard problem to get this work? I don't primary need this to access vars, but object methods (ok, objects are also vars...) of a large application framework I'm working on. I can't understand what the problem is. Ok, probably many people would misuse that for all there global vars - is that the argument against it? Is it a performance problem? But this 'feature' would help frameworks or huge applications to get shorter/easier access to there API ! $_MYFW->method_a(); is nicer than $GLOBALS['_MYFW']->method_a(); and also shorter for vars u're using very often... Regards, Matthias
Andi At 09:21 PM 8/23/2003 +0200, Matthias Nothhaft wrote:Hi Devs, is there a possibility to get a php function like declare_superglobal($_MYVAR); And then be able to use $_MYVAR as the existing superglobals ($_GET, $_SESSION, etc.) ??? I think, it would be a really nice feature! Is that a huge problem to get this work? Regards, Matthias -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php