#46481 [NEW]: apache_lookup_uri() draws blank if Apache auth enabled
| From: | rosenfield dot albert at gmail dot com | Date: | Tue, 04 Nov 2008 13:45:49 +0000 |
| Subject: | #46481 [NEW]: apache_lookup_uri() draws blank if Apache auth enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-130597@lists.php.net to get a copy of this message | ||
From: rosenfield dot albert at gmail dot com
Operating system: Windows (Linux too?)
PHP version: 5.3.0alpha2
PHP Bug Type: Scripting Engine problem
Bug description: apache_lookup_uri() draws blank if Apache auth enabled
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).
--
Edit bug report at http://bugs.php.net/?id=46481&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46481&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46481&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46481&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46481&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46481&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46481&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46481&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46481&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46481&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46481&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46481&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46481&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46481&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46481&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46481&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46481&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46481&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46481&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46481&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46481&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46481&r=mysqlcfg