ID:               29132
 Comment by:       daviidu at everydns dot net
 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:

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


Previous Comments:
------------------------------------------------------------------------

[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.



------------------------------------------------------------------------

[2004-07-14 06:49:40] endrju at itrisinajumi dot lv

Changed category - General Issues;

------------------------------------------------------------------------

[2004-07-14 06:40:59] endrju at itrisinajumi dot lv

Description:
------------
When making HTTP authentication there is no $_SERVER["PHP_AUTH_USER"]
in headers (but there is $_SERVER["PHP_AUTH_PW"]).

I noticed this when i upgraded to PHP 5.0.0 and checked phpMyAdmin - it
hanged. After some investigation I found that there's no
$_SERVER["PHP_AUTH_USER"] in headers.

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-openssl'
'--with-imap=../imap-2004/' '--with-mysql=/usr/local/mysql'
'--with-mssql' '--with-pgsql' '--with-gd' '--with-png' '--with-zlib'
'--with-jpeg' '--with-iconv' '--with-gettext' '--with-xml'
'--with-mcrypt' '--enable-mbstring' '--enable-sockets' '--with-bz2'
'--enable-calendar' '--enable-bcmath'

Reproduce code:
---------------
<?php
  if (!isset($_SERVER['PHP_AUTH_USER'])) {
   header('WWW-Authenticate: Basic realm="My Realm"');
   header('HTTP/1.0 401 Unauthorized');
   echo 'Text to send if user hits Cancel button';
   exit;
  } else {
   echo "<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>";
   echo "<p>You entered {$_SERVER['PHP_AUTH_PW']} as your
password.</p>";
  }
?> 

Expected result:
----------------
(This is from http://lv.php.net/manual/en/features.http-auth.php).
I Expected that when i enter username, password and press OK, the code
will output my entered username and password.

Actual result:
--------------
Script keeps asking the username and password indefinitely;


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29132&edit=1

Reply via email to