php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46481 apache_lookup_uri() draws blank if Apache auth enabled
Submitted: 2008-11-04 13:45 UTC Modified: 2009-03-18 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: rosenfield dot albert at gmail dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5CVS, 6CVS (2008-11-25) OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-11-04 13:45 UTC] rosenfield dot albert at gmail dot com
Description:
------------
Using:
 $info = apache_lookup_uri($uri);

for a directory fx /test/, which happens to have an index.php file in it.

Seems to work if there is no .htaccess file in the directory.

With this .htaccess file, apache_lookup_uri stops working:
=====
# NT Domain Logins.
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain <domaincontroller>
SSPIOfferBasic On
SSPIOmitDomain On
AuthName "Webstatistics"
Require valid-user
=====

Instead of an object, apache_lookup_uri just returns FALSE.


Reproduce code:
---------------
.htaccess:
# NT Domain Logins.
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain <domaincontroller>
SSPIOfferBasic On
SSPIOmitDomain On
AuthName "Webstatistics"
Require valid-user

index.php:
(anything)

PHP script to execute:
 $info = apache_lookup_uri($uri);

... where $uri is the virtual path where index.php and .htaccess resides.


Expected result:
----------------
Object with information about the virtual path.


Actual result:
--------------
Nothing (FALSE).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-05 11:13 UTC] rosenfield dot albert at gmail dot com
Yes sir!

Replaced PHP 5.2.6 with windows snapshot (5.2.7RC3-dev), but the problem seems to persist.
 [2009-02-13 00:13 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-02-17 12:47 UTC] rosenfield dot albert at gmail dot com
Seems to be the one I already tried - the latest v5.2 snapshot - isn't it?

Is there a particular commit I should make sure is included in the version tested?
 [2009-03-10 10:45 UTC] jani@php.net
Just try the snapshot. I only remember Ilia patching something in apache stuff after you tried it last time. Then update the date in the Version field above to reflect the snapshot date you used..
 [2009-03-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 16:01:29 2024 UTC