#40818 [NEW]: include "./config.php" doesn´t work in some cases
From: marik at marbes dot cz
Operating system: Win32
PHP version: 5CVS-2007-03-15 (snap)
PHP Bug Type: IIS related
Bug description: include "./config.php" doesn´t work in some cases
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
--
Edit bug report at http://bugs.php.net/?id=40818&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40818&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40818&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40818&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40818&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40818&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40818&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40818&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40818&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40818&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40818&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40818&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40818&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40818&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40818&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40818&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40818&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40818&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40818&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40818&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40818&r=mysqlcfg
Thread (9 messages)
- marik at marbes dot cz