php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6867 Getenv() doesn't work in ISAPI module
Submitted: 2000-09-23 22:20 UTC Modified: 2000-09-26 22:35 UTC
From: h dot a dot e dot borger at student dot utwente dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.2 OS: Windows 2000 Advanced Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: h dot a dot e dot borger at student dot utwente dot nl
New email:
PHP Version: OS:

 

 [2000-09-23 22:20 UTC] h dot a dot e dot borger at student dot utwente dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 04 09:00:03 2025 UTC