ID: 37039 Updated by: [EMAIL PROTECTED] Reported By: php dot net at sebastianmendel dot de -Status: Bogus +Status: Analyzed Bug Type: Unknown/Other Function Operating System: Windows PHP Version: 5.1.2 -Assigned To: +Assigned To: rasmus New Comment:
You can't, which makes this a valid bug. Previous Comments: ------------------------------------------------------------------------ [2006-04-11 14:08:55] php dot net at sebastianmendel dot de but how do i access PHP_AUTH_USER or any other PHP_ variable with variables_order = "GPC" in php.ini? ------------------------------------------------------------------------ [2006-04-11 13:54:49] [EMAIL PROTECTED] Of course not, it's not an environment variable. ------------------------------------------------------------------------ [2006-04-11 13:08:17] php dot net at sebastianmendel dot de Description: ------------ getenv('PHP_AUTH_USER') does not work tested with 4.4.2 and 5.1.2 on Apache 2 on Windows Reproduce code: --------------- echo 'getenv(): ' . getenv('PHP_AUTH_USER') . "\n"; echo '$_SERVER: ' . $_SERVER['PHP_AUTH_USER'] . "\n"; Expected result: ---------------- getenv(): user $_SERVER: user Actual result: -------------- getenv(): $_SERVER: user ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37039&edit=1