Bug #18185: Environment variables unavailable
| From: | tim dot bell at btinternet dot com | Date: | Fri, 05 Jul 2002 15:39:06 +0000 |
| Subject: | Bug #18185: Environment variables unavailable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13231@lists.php.net to get a copy of this message | ||
From: tim.bell@btinternet.com
Operating system: Windows 2000 Server
PHP version: 4.2.1
PHP Bug Type: Variables related
Bug description: Environment variables unavailable
Environment variables cannot be accessed using $VAR_NAME in this version.
getenv("VAR_NAME") & $_SERVER["VAR_NAME"] are ok.
eg:-
print $HTTP_USER_AGENT ;
gives
Notice: Undefined variable: HTTP_USER_AGENT in D:\index.php on line 19.
phpinfo() works ok & shows them. Re-installed 4.0.6 and back to normal.
Using IIS 5.
--
Edit bug report at http://bugs.php.net/?id=18185&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18185&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18185&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18185&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18185&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18185&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18185&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18185&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18185&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18185&r=globals