#32801 [NEW]: http autentication
| From: | xmlich02 at stud dot fit dot vutbr dot cz | Date: | Fri, 22 Apr 2005 10:39:42 +0000 |
| Subject: | #32801 [NEW]: http autentication | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-78049@lists.php.net to get a copy of this message | ||
From: xmlich02 at stud dot fit dot vutbr dot cz
Operating system: MacOS / Safari 125.12
PHP version: 5.0.3
PHP Bug Type: *General Issues
Bug description: http autentication
Description:
------------
Http autentication doesnt works on Safari / MacOS.
No authentication dialog is opened. (using code from
documentation)
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:
----------------
authentication dialog,
<p>Hello user123</p><p>Yoe entered test as your
password.</p>
Actual result:
--------------
no authentication dialog.
Text to send if user hits Cancel button
--
Edit bug report at http://bugs.php.net/?id=32801&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32801&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32801&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32801&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32801&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32801&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32801&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32801&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32801&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32801&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32801&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32801&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32801&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32801&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32801&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32801&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32801&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32801&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32801&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32801&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32801&r=mysqlcfg