Re: PHP 4.0 Bug #2896 Updated: getenv("HTTP_USER_AGENT")returnsan empty string
| From: | Zeev Suraski | Date: | Sat, 18 Mar 2000 15:18:41 +0000 |
| Subject: | Re: PHP 4.0 Bug #2896 Updated: getenv("HTTP_USER_AGENT")returnsan empty string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-16990@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.
Zeev
> <cut>
>
> : >
> : > Well, there might be a compability problem if you use the hash
> : > $HTTP_SERVER_VARS, as I just checked that in the CGI version,
> : > you don't copy the env structure into the hash...... can this be added?
> : >
>
>
> Faisal
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/