#19316 [Opn->Bgs]: getenv() doesn't work under Apache 2.0.40
| From: | hholzgra@php.net | Date: | Mon, 09 Sep 2002 14:39:49 +0000 |
| Subject: | #19316 [Opn->Bgs]: getenv() doesn't work under Apache 2.0.40 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18795@lists.php.net to get a copy of this message | ||
ID: 19316
Updated by: hholzgra@php.net
Reported By: the0retic@webscript.ru
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: Windows XP
PHP Version: 4.2.3
New Comment:
expected behavior
not every server api passes stuff through environment
variables, that's what $HTTP_SERVER_VARS was created for
just simply don't use getenv() for server variables
but for real environment access only (not likely that
you need this at all on Windows)
Previous Comments:
------------------------------------------------------------------------
[2002-09-09 09:18:49] the0retic@webscript.ru
Server configuration:
Apache 2.0.40
PHP 4.2.3 as module
Platform:
Windows XP Professional
getenv("<env_variable>") returns empty string
$HTTP_SERVER_VARS["<env_variable>"] returns correct path
------------------------------------------------------------------------
[2002-09-09 09:17:18] the0retic@webscript.ru
Server configuration:
Apache 2.0.40
PHP 4.2.3 as module
Platform:
Windows XP Professional
getenv("DOCUMENT_ROOT") returns empty string
$HTTP_SERVER_VARS["DOCUMENT_ROOT"] returns correct path
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19316&edit=1