#37039 [Bgs]: getenv('PHP_AUTH_USER') does not work

From: Date: Tue, 11 Apr 2006 14:08:55 +0000
Subject: #37039 [Bgs]: getenv('PHP_AUTH_USER') does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95604@lists.php.net to get a copy of this message
 ID:               37039
 User updated by:  php dot net at sebastianmendel dot de
 Reported By:      php dot net at sebastianmendel dot de
 Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows
 PHP Version:      5.1.2
 New Comment:

but how do i access PHP_AUTH_USER or any other PHP_ variable with

variables_order = "GPC"

in php.ini?


Previous Comments:
------------------------------------------------------------------------

[2006-04-11 13:54:49] sniper@php.net

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


Thread (6 messages)

« previous php.bugs (#95604) next »