ID: 30930
User updated by: patrick dot allaert at belgacom dot be
Reported By: patrick dot allaert at belgacom dot be
Status: Open
Bug Type: IIS related
Operating System: Windows 2000
PHP Version: 4.3.9
New Comment:
One more consideration:
The module php ISAPI is loaded in IIS at the site level and not at
server level !! (I found it was also possible to set the ISAPI module
in the WWW Service Master properties, unfortunately, I cannot test if
setting it at this level resolve this problem)
Previous Comments:
------------------------------------------------------------------------
[2004-11-29 12:40:21] patrick dot allaert at belgacom dot be
It seems that this problem occurs only when using IIS "virtual sites".
What I mean by "virtual site" (Apache term ?) is that I added a new
"site" in IIS listening on a specific port (8080) and with a specific
Host Header Name...
------------------------------------------------------------------------
[2004-11-29 12:32:40] patrick dot allaert at belgacom dot be
Description:
------------
Including a script in the current directory with './' fails when IIS is
configured with a virtual site with ISAPI module.
It works well with the cgi installation!
Reproduce code:
---------------
--- D:\wwwroot\a.php ---
<?php
system('cd');
include('./b.php');
?>
------------------------
--- D:\wwwroot\b.php ---
TEST
------------------------
==> http://localhost/a.php
Expected result:
----------------
With a cgi installation:
D:\wwwroot TEST
Actual result:
--------------
With the ISAPI installation:
C:\WINNT\system32
Warning: main(./b.php): failed to open stream: No such file or
directory in D:\wwwroot\a.php on line 3
Warning: main(): Failed opening './b.php' for inclusion
(include_path='.;c:\php\includes;c:\php\pear;c:\php;c:\php\font') in
D:\wwwroot\a.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30930&edit=1