PHP 4.0 Bug #6867 Updated: Getenv() doesn't work in ISAPI module

From: Date: Wed, 27 Sep 2000 02:35:17 +0000
Subject: PHP 4.0 Bug #6867 Updated: Getenv() doesn't work in ISAPI module
Groups: php.dev 
Request: Send a blank email to php-dev+get-33732@lists.php.net to get a copy of this message
ID: 6867 Updated by: sniper Reported By: h.a.e.borger@student.utwente.nl Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: http://www.php.net/manual/function.getenv.php --Jani Previous Comments: --------------------------------------------------------------------------- [2000-09-23 22:20:20] h.a.e.borger@student.utwente.nl I have a perfectly working PHP setup with IIS 5 under w2k server when using PHP as .exe When I switch to using PHP as ISAPI module everything still works fine, except for getenv(). I use "if (getenv("REMOTE_ADDR")=="my.ipa.ddr.ess")..." frequently on my site as a means of simple user authentification. When using the ISAPI module the line "echo "*".getenv("REMOTE_ADDR")."*";" only prints "**". The .exe prints the correct address. I wonder what's wrong here, maybe the ISAPI module doesn't have access to the environment variables?? I've had this problem with every version of PHP 4 and with the www.php4win.de distro too. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6867

« previous php.dev (#33732) next »