#35752 [Opn]: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI
| From: | jacques@php.net | Date: | Mon, 02 Jan 2006 15:20:42 +0000 |
| Subject: | #35752 [Opn]: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91355@lists.php.net to get a copy of this message | ||
ID: 35752
Updated by: jacques@php.net
Reported By: fcu-phpbugs at no-way dot org
Status: Open
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.4.2RC1
New Comment:
Also this behaviour is seen in PHP 5.1.1 run under FastCGI.
Previous Comments:
------------------------------------------------------------------------
[2005-12-20 22:28:30] fcu-phpbugs at no-way dot org
Description:
------------
When using Apache's Basic Auth together with php in FastCGI Mode, the
credentials of the User do not get passed to the PHP Script.
When I configure FastCGI to pass the Authentication Headers
(-pass-header Authorization), these get passed to the script, but they
are ignored by PHP.
This is because in cgi_main.c only the Env-Var "HTTP_AUTHORIZATION"
gets checked and not "Authorization" which seems to be the correct
Header value (at least with apache2).
All the apache Handler correctly use that header to set the
Authentication Env-Vars.
Could the cgi handler also check for that header?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35752&edit=1