Re: Re: Question about superglobals
| From: | Rasmus Lerdorf | Date: | Sat, 17 Nov 2007 06:18:45 +0000 |
| Subject: | Re: Re: Question about superglobals | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33209@lists.php.net to get a copy of this message | ||
Sam Barrow wrote:
> Just to make sure you understand me correctly, these are not at all
> undeclared globals (as you said). You have to specifically turn on the
> variables you want to be superglobals.
They are undeclared in the individual functions where they are used.
You can declare them all you want in your part of a large project, but
the fact is that they end up in the superglobal namespace and developer
#2 working on another part of the code has no idea that you made up your
own superglobal and what used to be a function-local variable in his
code suddenly isn't anymore.
-Rasmus