Req #30930 [Fbk->NoF]: ISAPI: include('./xxx.php') fails!
| From: | php-bugs at lists dot php dot net | Date: | Sun, 29 Jan 2017 04:22:42 +0000 |
| Subject: | Req #30930 [Fbk->NoF]: ISAPI: include('./xxx.php') fails! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207012@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: php-bugs@lists.php.net
Reported by: patrick dot allaert at belgacom dot be
Summary: ISAPI: include('./xxx.php') fails!
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: *General Issues
Operating System: Windows 2000
PHP Version: 4.3.9
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2017-01-20 20:25:34] heiglandreas@php.net
Is this still relevant?
------------------------------------------------------------------------
[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