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

From: Date: Sun, 24 Sep 2000 02:20:20 +0000
Subject: PHP 4.0 Bug #6867: Getenv() doesn't work in ISAPI module
Groups: php.dev 
Request: Send a blank email to php-dev+get-33678@lists.php.net to get a copy of this message
From: h.a.e.borger@student.utwente.nl Operating system: Windows 2000 Advanced Server PHP version: 4.0.2 PHP Bug Type: Scripting Engine problem Bug description: Getenv() doesn't work in ISAPI module 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.

« previous php.dev (#33678) next »