#24329 [Fbk->Opn]: Appending path info to a php script breaks under IIS
| From: | marcus at quintic dot co dot uk | Date: | Mon, 18 Aug 2003 14:41:12 +0000 |
| Subject: | #24329 [Fbk->Opn]: Appending path info to a php script breaks under IIS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46103@lists.php.net to get a copy of this message | ||
ID: 24329
User updated by: marcus at quintic dot co dot uk
Reported By: marcus at quintic dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: IIS related
Operating System: XP and 2k
PHP Version: 4.3.2
New Comment:
This does not appear to fix it under the limited tests I've tried. I'll
add more feedback when I can perform more testing.
Previous Comments:
------------------------------------------------------------------------
[2003-08-14 00:35:31] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
And check your php.ini settings. (this works fine for me in
Linux/Apache)
------------------------------------------------------------------------
[2003-06-25 06:14:35] marcus at quintic dot co dot uk
The first para should read:
.... If I attach some path_info to the url I get a cannot find page
error under IIS5.1 on XP and under 2k a PHP error saying it cant find
the test.php/whatever/I/have/here script.
------------------------------------------------------------------------
[2003-06-25 06:13:10] marcus at quintic dot co dot uk
Description:
------------
I have a page, test.php, that contains simply a call to phpinfo(). If I
go to it in a browser as http://localhost/test.php it
displays the php
information as expected. If I attach some path_info to the url I get a
cannot find page error under IIS5.1 on XP and a PHP error saying it
cant find the test.php/whatever/I/have/here script.
Clearly this is wrong. I have searched the bug tracking database and
the following suggestions have been tried in both ISAPI and CGI mode
(none of them work for us, although the bugs are getting closed
presumably because they work for the people trying them):
cgi.force_redirect = 0 (I've also tried 1)
cgi.fix_pathinfo = 0 (I've also tried 1)
Setting the IIS AllowPathInfo... variable to TRUE or FALSE makes no
difference. I've also tried all combinations of the above. This isnt a
one off either as it happens on all machines we've tried it on (5
separate IIS5 installations so far).
The strange thing is, IIS looks like its requesting the correct
document, test.php because thats whats coming up in the IIS logs - it
looks like php is returning the error. On the 2k box this is more
obvious because we get an error from php saying that it cant open a
stream on c:/inetpub/wwwroot/whatever/I/have/here when IIS is allowing
PATH_INFO and c:/inetpub/wwwroot/test.php/whatever/I/have/here when IIS
does not allow PATH_INFO.
Reproduce code:
---------------
// IIS5.1, PHP 4.3.x
// Goto URL http://localhost/test.php/path/info
<?php phpinfo(); ?>
Expected result:
----------------
I'd expect the test.php document to be displayed whether I entered path
information or not.
Note that this is not a bug about PATH_INFO being incorrect - we dont
even get that far. PHP returns errors about not being able to open a
stream to a document that _includes_ the path_info in its translated
path. It also happens under ISAPI or CGI.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24329&edit=1