php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40818 include "./config.php" doesn?t work in some cases
Submitted: 2007-03-15 11:25 UTC Modified: 2007-09-19 08:08 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: marik at marbes dot cz Assigned:
Status: Closed Package: IIS related
PHP Version: 5CVS-2007-05-14 (snap) OS: Win32
Private report: No CVE-ID: None
 [2007-03-15 11:25 UTC] marik at marbes dot cz
Description:
------------
I have virtual host "HelpDesk" on IIS 2003 Server with anonymous access running under user "IUSR". Everything works fine until somebody tries to set NTLM access rights for IUSR on root directory of virtual host only. 

IUSR has read acccess to virtual host root directory "C:\Inetpub\helpdesk" and no access to parent directories (C:\Inetpub). Then command

include "./config/cfg_global.php";

doesn?t work. If I give IUSR read access to C:\Inetpub, it works.

I've tested it with several version >

5.0.2 works fine
5.1.6 doesn't work
5.2.0 doesn't work
5.2.1 works fine
latest snap shot built On: Mar 14, 2007 15:30 GMT doesn't work again :-)

?? There may can be similar problem as 
http://bugs.php.net/bug.php?id=38904
http://bugs.php.net/bug.php?id=38232

Thanx for answer.


Reproduce code:
---------------
include "./config/cfg_global.php";


Expected result:
----------------
included config file..

Actual result:
--------------
Warning: include(./config/cfg_global.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\helpdesk\www\index.php on line 18

Warning: include() [function.include]: Failed opening './config/cfg_global.php' for inclusion (include_path='.;C:\php5\pear') in C:\Inetpub\helpdesk\www\index.php on line 18


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-15 11:32 UTC] marik at marbes dot cz
latest snap shot built On: Mar 15, 2007 07:30 GMT doesn't work
 [2007-03-27 18:37 UTC] edink@php.net
I cannot reproduce this. WIll you help me by describing the circumstances when this fails.

Which php sapi do you use? CGI isapi, etc...
What "Directory Security" setting in IIS are you using and other details of your setup.
 [2007-03-29 07:35 UTC] marik at marbes dot cz
I?m using ISAPI (php5isapi.dll). Next information you can find <a href="http://www.marbes.cz/helpdesk/phpbug/"> here</a>.

If you need some other information, ask again.

Thank you.
 [2007-03-29 07:37 UTC] marik at marbes dot cz
I?m sorry, good URL is http://www.marbes.cz/helpdesk/phpbug/index.htm
 [2007-04-25 08:11 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-05-14 08:37 UTC] marik at marbes dot cz
I'm sorry for long time without reaction.

There is no progress with the latest snapshot from 14th of May :-(, still the same problem. 

I've updated http://www.marbes.cz/helpdesk/phpbug/index.htm so you can find result of latest phpinfo() there.

Thank you.
 [2007-07-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-09-19 08:08 UTC] marik at marbes dot cz
It works fine with 5.2.4 stable. At least it looks like to be OK.

Thanks for your time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC