Re: gpc_order and track_vars
| From: | Andrei Zmievski | Date: | Fri, 19 Nov 1999 21:57:55 +0000 |
| Subject: | Re: gpc_order and track_vars | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12793@lists.php.net to get a copy of this message | ||
On Fri, 19 Nov 1999, Lars Torben Wilson wrote:
>
>
> I've been having a discussion with one fellow regarding variables from
> outside PHP. What came up boils down to the fact that there is
> presently no way to keep incoming get, post, or cookie data from being
> placed into the global symbol table without also preventing them from
> being placed into $HTTP_*_VARS. i.e. setting 'gpc_order = gpc' and
> 'track_vars = on' incorporates incoming data into both the symbol
> table and $HTTP_*_VARS, but setting 'gpc_order = ' and 'track_vars
> = on' means that no incoming variables can be accessed at all.
>
> It has been suggested that a way to allow the $HTTP_*_VARS arrays to
> be filled, but not the global symbol table, would be good for forcing
> programmers to know where the data is coming from.
>
> Anybody have any thoughts on this?
I think there is gpc_globals directive that does this now.
-Andrei
* I don't mind going nowhere as long as it's an interesting path. *