From: Jeff D. <da...@da...> - 2002-09-04 15:58:25
|
> Keep our style and add: > > if (empty($HTTP_ENV_VARS)) { > $HTTP_SERVER_VARS = &$_SERVER; ... > // $_FILES not needed globally for now, only once in Request. > // We should also find some way to support the CGI version by > // using ENV instead of SERVER automatically. > } Yes ... and that reminds me (worth mentioning since we're on the subject)...: Actually very little code should need to access any of these directly. The code is Request should wrap just about all of it (or could be fixed to do so.) I think config.php (because it executes before the Request is instantiated) and Request.php are the only files which actually need to access the $HTTP_*_VARS/$_* directly. (And RPC2.php, too, off course...) PS: I admit Request could be better documented... |