No. At the time of introducing superglobals it was made clear this is only for internal use and not for script use. The main reason for introducing them was to make it easier to access $_GET, $_POST and friends mainly due to register_globals change. As this is something which happens at compile-time, it should not be possible to change this at run-time.

Andi

At 09:57 AM 5/13/2004 +0300, Ilya Sher wrote:
Andi Gutmans wrote:
[snip, text was about non-scalar constant]
I don't see this as something which should be changed. Definitely not before 5.0 but I'm not sure it's that critical also to change afterwards although it might be possible.
Andi

We discussed this issue with Jevon Wright (private emails) and in the end of the day agreed that most simple yet powerful solution is "superglobals", which would work like $_GET,$_POST etc. $a=array('x'=>1); superglobal $a; function f() { echo $a['x']; } with combination of naming convention to express the constant nature of the data for example: $const_a=...; superglobal $const_a; or $MY_PARAMETERS=....; superglobal $MY_PARAMETERS;

HTH.

Regards,
Ilya

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to