#29129 [Opn->Csd]: PHP_AUTH_USER does not seem to be passing thru
| From: | tony2001@php.net | Date: | Wed, 14 Jul 2004 10:57:29 +0000 |
| Subject: | #29129 [Opn->Csd]: PHP_AUTH_USER does not seem to be passing thru | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62217@lists.php.net to get a copy of this message | ||
ID: 29129
Updated by: tony2001@php.net
Reported By: sethw at webglimmer dot com
-Status: Open
+Status: Closed
Bug Type: *General Issues
Operating System: Linux RH ES 3.0
PHP Version: 5.0.0
New Comment:
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.
Try next CVS snapshot, please.
Previous Comments:
------------------------------------------------------------------------
[2004-07-14 12:52:30] nospam0 at malkusch dot de
In fact it is set, but it's NULL (use array_key_exists()
instead of isset()). I have the same problem with PHP5
final. CVS from 8th Juli works fine.
------------------------------------------------------------------------
[2004-07-14 10:42:04] alex dot pagnoni at solarix dot it
Same bug as #29132.
------------------------------------------------------------------------
[2004-07-14 01:56:33] sethw at webglimmer dot com
Description:
------------
So a dump of $_SERVER reveals that after a
<?
header( 'WWW-Authenticate: Basic realm="WG Content-Management"' );
?>
that $_SERVER['PHP_AUTH_PW'] is set but not $_SERVER['PHP_AUTH_USER']
Any ideas?
Reproduce code:
---------------
if (isset( $_SERVER['PHP_AUTH_USER'] ) &&
isset($_SERVER['PHP_AUTH_PW'])) {
// code
}
// always returns false regardless of what is entered
Expected result:
----------------
should return true if the "Authentication Box" is filled in
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29129&edit=1