php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53318 possibly outdated information
Submitted: 2010-11-15 18:15 UTC Modified: 2010-11-17 09:43 UTC
From: inithello at gmail dot com Assigned: Kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3.3 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: inithello at gmail dot com
New email:
PHP Version: OS:

 

 [2010-11-15 18:15 UTC] inithello at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/reserved.variables.server
---

I can confirm that $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] are populated when running lighttpd 1.4.26 with php/cgi 5.3.3 under fastcgi

Test script:
---------------
<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
    header('WWW-Authenticate: Basic realm="My Realm"');
    header('HTTP/1.0 401 Unauthorized');
    echo 'Fine, be like that. See if I let you in.';
    exit;
} 
else {
    echo "<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>";
    echo "<p>You entered {$_SERVER['PHP_AUTH_PW']} as your password.</p>";
}
?> 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-17 09:43 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=305447
Log: Fixed bug #53318 (possibly outdated information)

# I removed the Apache + IIS references as almost all of our SAPI's support
# HTTP Authentication, those who doesn't are the ones rarely used like webjames
# which we don't really have any documentation for in the manual
 [2010-11-17 09:43 UTC] Kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: Kalle
 [2010-11-17 09:43 UTC] Kalle@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f07e214a3a07e0bc70daebb71d5fc331154bc3de
Log: Fixed bug #53318 (possibly outdated information)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 05:00:01 2026 UTC