#30930 [Opn]: include('./xxx.php') fails!
| From: | patrick dot allaert at belgacom dot be | Date: | Mon, 29 Nov 2004 11:40:25 +0000 |
| Subject: | #30930 [Opn]: include('./xxx.php') fails! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69610@lists.php.net to get a copy of this message | ||
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:
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...
Previous Comments:
------------------------------------------------------------------------
[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