Re: PHP 4.0 Bug #2896 Updated: getenv("HTTP_USER_AGENT")returnsanempty string
| From: | rasmus@php.net | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: PHP 4.0 Bug #2896 Updated: getenv("HTTP_USER_AGENT")returnsanempty string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-17003@lists.php.net to get a copy of this message | ||
> : On Sat, 18 Mar 2000, Faisal Nasim wrote:
> :
> : > : The environment variables are copied into $HTTP_ENV_VARS[], since they
> : > : don't necessarily have anything to do with the server...
> : >
> : > That means a version which uses $HTTP_SERVER_VARS will break
> : > when used as CGI..... ?
> :
> : Yes, this is an incompatability between CGI and servers that we can't
> : really solve. Unless we merge in the env vars to the server vars, which
> : I'm not sure we want to do. I'm not sure though.
>
> Merge it! Since $HTTP_SERVER_VARS will be empty when used as CGI.
> I don't see anything wrong with that.
But you will have a whole bunch of crud in there that aren't server vars
then.
-Rasmus