#35752 [NEW]: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI

From: Date: Tue, 20 Dec 2005 21:28:31 +0000
Subject: #35752 [NEW]: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90762@lists.php.net to get a copy of this message
From: fcu-phpbugs at no-way dot org Operating system: All PHP version: 4.4.2RC1 PHP Bug Type: CGI related Bug description: PHP_AUTH_USER and PHP_AUTH_PW not available when using FastCGI 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 bug report at http://bugs.php.net/?id=35752&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35752&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35752&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35752&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35752&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35752&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35752&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35752&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35752&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35752&r=support Expected behavior: http://bugs.php.net/fix.php?id=35752&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35752&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35752&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35752&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35752&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35752&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35752&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35752&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35752&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35752&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35752&r=mysqlcfg

« previous php.bugs (#90762) next »