Req #30930 [Opn->Fbk]: ISAPI: include('./xxx.php') fails!
| From: | heiglandreas@php.net | Date: | Fri, 20 Jan 2017 20:25:35 +0000 |
| Subject: | Req #30930 [Opn->Fbk]: ISAPI: include('./xxx.php') fails! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206783@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=30930&edit=1
ID: 30930
Updated by: heiglandreas@php.net
Reported by: patrick dot allaert at belgacom dot be
Summary: ISAPI: include('./xxx.php') fails!
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Windows 2000
PHP Version: 4.3.9
Block user comment: N
Private report: N
New Comment:
Is this still relevant?
Previous Comments:
------------------------------------------------------------------------
[2004-11-29 18:42:00] patrick dot allaert at belgacom dot be
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)
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=30930&edit=1