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