From: webmaster at kobrasrealm dot com Operating system: Linux PHP version: 4.3.1 PHP Bug Type: CGI related Bug description: CGI Mode doesn't honor PHP_AUTH_*
Description: ------------ my host used Linux and has PHP 4.3.1 installed (because 4.3.2 isn't compatible with phpsuexec). For a while, everything was running smoothly. I built my own site control panel that sets a cookie when you're logged in from the .htaccess so that a link appears on the main site (http://www.kobrasrealm.com) when there's something the Control Panel can do (e.g. Add/Edit Game who's Description I am currently viewing). However, it suddenly stopped honoring $PHP_AUTH_USER and I tried $_SERVER['PHP_AUTH_USER']. I logged in and then went to a phpinfo file I made to see if I mistyped it, and it wasn't there. I reported it to my host, and they claimed that PHP_AUTH_* is not available in CGI mode. Reproduce code: --------------- $auser = $PHP_AUTH_USER; echo("You are logged in, $auser"); Expected result: ---------------- You are logged in, Kobra Actual result: -------------- You are logged in, -- Edit bug report at http://bugs.php.net/?id=24236&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24236&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24236&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24236&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24236&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24236&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24236&r=support Expected behavior: http://bugs.php.net/fix.php?id=24236&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24236&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24236&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24236&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24236&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24236&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24236&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24236&r=gnused