#37039 [Ana->Asn]: getenv('PHP_AUTH_USER') does not work

From: Date: Tue, 11 Apr 2006 17:11:22 +0000
Subject: #37039 [Ana->Asn]: getenv('PHP_AUTH_USER') does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95612@lists.php.net to get a copy of this message
 ID:               37039
 Updated by:       sniper@php.net
 Reported By:      php dot net at sebastianmendel dot de
-Status:           Analyzed
+Status:           Assigned
-Bug Type:         Unknown/Other Function
+Bug Type:         Feature/Change Request
 Operating System: Windows
 PHP Version:      5.1.2
 Assigned To:      rasmus


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

[2006-04-11 16:19:36] rasmus@php.net

You can't, which makes this a valid bug.

------------------------------------------------------------------------

[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] 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 (#95612) next »