php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23603 php install problem on IIS:path_info ISAPI and CGI
Submitted: 2003-05-13 07:08 UTC Modified: 2003-05-14 02:38 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: chedong at hotmail dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 4.3.1 OS: WINDOWS 2000
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: chedong at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-05-13 07:08 UTC] chedong at hotmail dot com
test.php:
<?
php phpinfo();
?>


according to:
http://support.microsoft.com/default.aspx?scid=kb;en-us;q184320

I enabled IIS's path_info support via:
c:\inetpub\AdminScripts\adsutil set w3svc/AllowPathInfoForScriptMappings True
c:\inetpub\AdminScripts\adsutil set w3svc/1/AllowPathInfoForScriptMappings True

1 Install php 4.3.1 with installer.exe

http://localhost/test.php ok
http://localhost/test.php/path returned with 
 
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

same with php 4.2.3 with installer.exe

2 I also tried with 4.2.3 4.0.6 with ISAPI mode and all failed:
In ISAPI installation according to notes on:
http://ariadne.muze.nl/en/download/install
(ariadne is a path_info base php Content Manage System.)
but path_into parsed and shows:
Warning: Failed opening 'c:\inetpub\wwwroot\path' for inclusion (include_path='') in Unknown on line 0

if patched with:
ftp://ftp.muze.nl/pub/ariadne/win/iis/php-4.0.6/php4isapi.dll
the return error with:
PHP has encountered an Access Violation at 77FCB5BF
and couse IIS crashed.

3 I tried php 4.3.1 with:
cgi.fix_pathinfo=0
in php.ini
seem it only work with acWeb 3.0 not IIS 5.0
http://php430.eserv.ru/php_info.php/path/info

Regards

Che, Dong
http://www.chedong.com



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-13 08:42 UTC] chedong at hotmail dot com
additional on Ariadne patch:
the Ariadne patch only work with php 4.2.3 Win32 and need AllowPathInfoForScriptMappings
False

4.3.1 not work even with Ariadne patch:
ftp://ftp.muze.nl/pub/ariadne/win/iis/php-4.3.1/
 [2003-05-13 09:00 UTC] chedong at hotmail dot com
in php 4.2.3 isapi mode the path_info convert to real path:
if my iis doc root at:
C:\CheDong\Downloads\ariadne\www\
the http://localhost/test.php/path will return with

Warning: Unknown(C:\CheDong\Downloads\ariadne\www\test.php\path): failed to create stream: No such file or directory in Unknown on line 0

Warning: Unknown(): Failed opening 'C:\CheDong\Downloads\ariadne\www\test.php\path' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0


patched with ftp://ftp.muze.nl/pub/ariadne/win/iis/php-4.2.3/php4isapi.dll
the phpinfo returns with
PATH_INFO /test.php/path 
_SERVER["PATH_INFO"] /path
 [2003-05-13 16:29 UTC] 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

IIRC, this is fixed..

 [2003-05-13 21:11 UTC] chedong at hotmail dot com
I tried PHP Version 4.3.2-RC3-dev with ISAPI mode, the 
http://localhost/test.php/path still return with:

Warning: Unknown(C:\CheDong\Downloads\ariadne\www\test.php\path): failed to open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening 'C:\CheDong\Downloads\ariadne\www\test.php\path' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0

but on Linux the test.php/path/ will return with:
_SERVER["PATH_INFO"] /path

could it be passed like Ariadne patch?

Regards

Che, Dong
http://www.chedong.com
 [2003-05-14 01:21 UTC] chedong at hotmail dot com
I tried PHP Version 4.3.2-RC3-dev-Win32 with CGI/FastCGI mode by added line 
cgi.force_redirect = 0
in php.ini the 
http://localhost/test.php/path return ok now.

Thanks 

Che, Dong
http://www.chedong.com
 [2003-05-14 02:38 UTC] magnus@php.net
Closed then since it was fixed.. 
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jun 19 04:00:02 2026 UTC