ID: 29129
Comment by: nospam0 at malkusch dot de
Reported By: sethw at webglimmer dot com
Status: Open
Bug Type: *General Issues
Operating System: Linux RH ES 3.0
PHP Version: 5.0.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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