php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32801 http autentication
Submitted: 2005-04-22 12:39 UTC Modified: 2005-04-22 14:13 UTC
From: xmlich02 at stud dot fit dot vutbr dot cz Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.3 OS: MacOS / Safari 125.12
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xmlich02 at stud dot fit dot vutbr dot cz
New email:
PHP Version: OS:

 

 [2005-04-22 12:39 UTC] xmlich02 at stud dot fit dot vutbr dot cz
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-22 14:13 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 17 13:00:03 2025 UTC