PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #23603 php install problem on IIS:path_info ISAPI and CGI
Submitted:13 May 2003 7:08am UTC Modified: 14 May 2003 2:38am UTC
From:chedong at hotmail dot com Assigned to:
Status:Closed Category:IIS related
Version:4.3.1 OS:WINDOWS 2000
Votes:1 Avg. Score:5.0 ± 0.0 Reproduced:0 of 0 (0.0%)
View/Vote Developer Edit Submission

[13 May 2003 7:08am 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

[13 May 2003 8:42am 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/
[13 May 2003 9:00am 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
[13 May 2003 4:29pm 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..
[13 May 2003 9:11pm 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
[14 May 2003 1:21am 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
[14 May 2003 2:38am UTC] magnus@php.net
Closed then since it was fixed.. 

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC