Re: [PHP-DEV] PHP 4.0 Bug #2896 Updated: getenv("HTTP_USER_AGENT")returnsanempty string From: Faisal Nasim (faisal <email protected>)
Date: 03/18/00

: 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.

<cut>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>