Req #37039 [Asn->Wfx]: getenv('PHP_AUTH_USER') does not work
Edit report at https://bugs.php.net/bug.php?id=37039&edit=1
ID: 37039
Updated by: rasmus@php.net
Reported by: php dot net at sebastianmendel dot de
Summary: getenv('PHP_AUTH_USER') does not work
-Status: Assigned
+Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
Operating System: *
PHP Version: *
Assigned To: rasmus
Block user comment: N
Private report: N
New Comment:
Outdated and not needed
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 https://bugs.php.net/bug.php?id=37039&edit=1
Thread (6 messages)