#29132 [Com]: $_SERVER["PHP_AUTH_USER"] is not in headers anymore?
ID: 29132 Comment by: neilcurry1 at hotmail dot com Reported By: endrju at itrisinajumi dot lv Status: Closed Bug Type: *General Issues Operating System: FreeBSD 5.2.1 PHP Version: 5.0.0 New Comment: I just spend 2 days trying to sort this problem out, seeking help from http://phpmac.com/ also. I have downloaded the latest snapshot and build and installed. Everything OK now :) I think a new release to php 5 is needed to stop others pulling their hair out over this one. Neil Previous Comments: [2004-07-21 17:00:33] tmeader at pobox dot com I've come across two other admins thus far who have been having this problem, and had no idea that it was PHP related. They spent at least 6 hours trying to debug their script before giving up for the day. This is a MAJOR bug, since it basically breaks ALL PHP scripts that use HTTP Auth. Can we PLEASE have a fast interim 5.0.1 to fix this? [2004-07-15 18:27:53] daviidu at everydns dot net This bug is quite serious actually and I would expect a lot of semi-clued people to not recognize it as a PHP bug or maybe only after wasting a lot of time. I would suggest a 5.0.1 release out the door ASAP. -davidu [2004-07-14 13:08:56] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2004-07-14 13:05:15] alex dot pagnoni at solarix dot it Stefan, I can confirm you that $_SERVER['PHP_AUTH_USER'] now works fine again with the latest php5 snapshot (php5-200407141030). [2004-07-14 11:58:48] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip This Bug should be fixed in CVS now... Please test next snapshot. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29132 -- Edit this bug report at http://bugs.php.net/?id=29132&edit=1
#29182 [Com]: $_SERVER['PHP_AUTH_USER'] missing ?
ID: 29182 Comment by: neilcurry1 at hotmail dot com Reported By: herve at elma dot fr Status: Bogus Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0 New Comment: Just see the linked bug report, should have read first. Sorry Neil Previous Comments: [2004-07-23 03:03:30] neilcurry1 at hotmail dot com Same problem here, using Apache 1.3.31 and PHP 5.0.0 on Mac OS X 10.3.4. PHP_AUTH_USER variable is blank PHP_AUTH_PW variable works fine. Test Script: "); echo("You entered " . $_SERVER["PHP_AUTH_PW"] . " for a password."); } ?> If you set the loop test to PHP_AUTH_USER it just keeps asking for the username and password. The result of the above script outputs nothing where the username should be, and the correct password you entered where the password should be. Neil [2004-07-15 11:51:11] [EMAIL PROTECTED] Duplicate. See #29132 [2004-07-15 11:48:01] [EMAIL PROTECTED] Duplicate. See #29132 [2004-07-15 11:22:46] herve at elma dot fr Description: Since I have installed PHP-5.0.0 I do not have any answer to the command $_SERVER['PHP_AUTH_USER'] ... PHP_AUTH_USER seems to not being defined ... included in the phpinfo() ... !? With Apache 1.3.31, php compiled as a module. Reproduce code: --- Expected result: The auth user name ... as explain in the PHP documentation : When running under Apache as module doing HTTP authentication this variable is set to the username provided by the user. Actual result: -- 'PHP_AUTH_USER' not defined. -- Edit this bug report at http://bugs.php.net/?id=29182&edit=1
#29182 [Com]: $_SERVER['PHP_AUTH_USER'] missing ?
ID: 29182 Comment by: neilcurry1 at hotmail dot com Reported By: herve at elma dot fr Status: Bogus Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0 New Comment: Same problem here, using Apache 1.3.31 and PHP 5.0.0 on Mac OS X 10.3.4. PHP_AUTH_USER variable is blank PHP_AUTH_PW variable works fine. Test Script: "); echo("You entered " . $_SERVER["PHP_AUTH_PW"] . " for a password."); } ?> If you set the loop test to PHP_AUTH_USER it just keeps asking for the username and password. The result of the above script outputs nothing where the username should be, and the correct password you entered where the password should be. Neil Previous Comments: [2004-07-15 11:51:11] [EMAIL PROTECTED] Duplicate. See #29132 [2004-07-15 11:48:01] [EMAIL PROTECTED] Duplicate. See #29132 [2004-07-15 11:22:46] herve at elma dot fr Description: Since I have installed PHP-5.0.0 I do not have any answer to the command $_SERVER['PHP_AUTH_USER'] ... PHP_AUTH_USER seems to not being defined ... included in the phpinfo() ... !? With Apache 1.3.31, php compiled as a module. Reproduce code: --- Expected result: The auth user name ... as explain in the PHP documentation : When running under Apache as module doing HTTP authentication this variable is set to the username provided by the user. Actual result: -- 'PHP_AUTH_USER' not defined. -- Edit this bug report at http://bugs.php.net/?id=29182&edit=1