Bug #16679 Updated: getenv() function may not work properly

From: Date: Thu, 18 Apr 2002 14:02:35 +0000
Subject: Bug #16679 Updated: getenv() function may not work properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5298@lists.php.net to get a copy of this message
 ID:               16679
 Updated by:       hholzgra@php.net
 Reported By:      royerj@free.fr
-Status:           Closed
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows 2000
 PHP Version:      4.2.0
 New Comment:

yes, that's why we have the $_SERVER array,
as an abstraction Layer to Werbser APIs 
variable access methods

CGI has to rely on process environment
variables for parameter passing, but most
server-module APIs have faster methods to
do this and usualy don't bother to set the
environment variables


Previous Comments:
------------------------------------------------------------------------

[2002-04-18 10:00:23] royerj@free.fr

Not a bug...
I've just seen that this method is only available in CGI mode...
Sorry

------------------------------------------------------------------------

[2002-04-18 09:52:16] royerj@free.fr

When i tried to call the getenv("SERVER_ADDR") method, the return is an
empty string.
I know that I can use $_SERVER["SERVER_ADDR"] but I must use the
getenv() method.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16679&edit=1



Thread (3 messages)

« previous php.bugs (#5298) next »