The way _GET and friends are implemented is the most efficient way of doing
it as it is taken care at compile-time.
For the same reason in Engine 2 you can't indirectly reference $this (which
shouldn't bother anyone).
Over time people won't have to support versions below 4.1.0 anymore.
In the
Andi,
does this also apply to the $GLOBALS variable?
If so, I think we can then add an apropriate Note: to the
http://www.php.net/manual/en/language.variables.predefined.php
page.
- Markus
On Sat, Apr 20, 2002 at 04:23:03PM +0300, Andi Gutmans wrote :
The way _GET
It applies, to a degree. If you directly reference $GLOBALS anywhere in
your function, you can also reference it indirectly. If you don't,
however, indirect reference won't work.
E.g.,
function foo()
{
$foo = GLOBALS;
print $$foo[bar]; // won't work
}
At 20:33 20/04/2002 +0300, Zeev Suraski wrote:
It applies, to a degree. If you directly reference $GLOBALS anywhere in
your function, you can also reference it indirectly. If you don't,
however, indirect reference won't work.
E.g.,
function foo()
{
$foo = GLOBALS;
print
At 21:08 19/04/2002, Derick Rethans wrote:
on 19 apr 2002 [EMAIL PROTECTED] wrote:
id: 16687
updated by: [EMAIL PROTECTED]
reported by: [EMAIL PROTECTED]
status: bogus
bug type: scripting engine problem
operating system: red hat linux
At 21:18 19/04/2002, Lux wrote:
One other quick question: Can you make references to the superglobals,
then call these as variable variables?
Yes.
Can you explain when you need to use these global structures indirectly?
Zeev
--
PHP Development Mailing List http://www.php.net/
To