php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #30930 ISAPI: include('./xxx.php') fails!
Submitted: 2004-11-29 12:32 UTC Modified: 2017-01-29 04:22 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: patrick dot allaert at belgacom dot be Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 4.3.9 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: patrick dot allaert at belgacom dot be
New email:
PHP Version: OS:

 

 [2004-11-29 12:32 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-29 12:40 UTC] 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 18:42 UTC] 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)
 [2017-01-20 20:25 UTC] heiglandreas@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2017-01-20 20:25 UTC] heiglandreas@php.net
Is this still relevant?
 [2017-01-29 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 03:01:29 2024 UTC