Bug #12320 Updated: Nothing from getenv
| From: | hholzgra@php.net | Date: | Mon, 23 Jul 2001 15:48:58 +0000 |
| Subject: | Bug #12320 Updated: Nothing from getenv | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60773@lists.php.net to get a copy of this message | ||
ID: 12320
Updated by: hholzgra
Reported By: stefan@digiconcept.net
Old Status: Open
Status: Bogus
Bug Type: IIS related
Operating System: Win 2K
PHP Version: 4.0.6
New Comment:
because $HTTP_SERVER_VARS is protable across server APIs
(although not every variable in it is set by every API)
while getenv() is specific to only some of them
remember that gentenv() is a generic environment access
function and as such OS-dependant (on some operating
systems you might even have no such environment at all)
Previous Comments:
------------------------------------------------------------------------
[2001-07-23 11:36:53] stefan@digiconcept.net
Hi !
The combination of Win2K and IIS5 seams to prevent the nice function getenv to return values. Infos
like 'SERVER_SOFTWARE' and so are correctly stored in $HTTP_SERVER_VARS, but why shoul I
have 2 access the infos directly via an awfull code like $x= $GLOBALS[]... if I got an
getenv-function ...
regards stefan
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12320&edit=1