ID: 50163
Updated by: [email protected]
Reported By: be3ch at centrum dot cz
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: win32 only - Windows 2003 Server
PHP Version: 5.2.11
Assigned To: pajoye
New Comment:
That would help yes, please drop me a mail with the access data :)
Previous Comments:
------------------------------------------------------------------------
[2009-12-07 13:41:22] be3ch at centrum dot cz
Any progress? I can give you access to my VPS server, where you can see
it. :)
------------------------------------------------------------------------
[2009-11-24 20:14:17] be3ch at centrum dot cz
You can try this procedure to reproduce this problem:
- install Windows 2008 Server (x86)
- add Web Server role (for IIS7 support)
- download Web Platform Installer and install PHP 5.2.11
Now you have in IIS7 default web with PHP 5.2.11 support. Create test
script test.php with this content :
<?php
var_dump(file_exists('test.php'));
?>
and copy test.php to C:\Inetpub\wwwroot . Now you can try
http://localhost/test.php and you can see result of script :
bool(true).
There is default icacls result on C:\Inetpub\wwwroot directory :
wwwroot BUILTIN\IIS_IUSRS:(RX)
BUILTIN\IIS_IUSRS:(OI)(CI)(IO)(GR,GE)
NT SERVICE\TrustedInstaller:(I)(F)
NT SERVICE\TrustedInstaller:(I)(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(I)(F)
NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F)
BUILTIN\Administrators:(I)(F)
BUILTIN\Administrators:(I)(OI)(CI)(IO)(F)
BUILTIN\Users:(I)(RX)
BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)
CREATOR OWNER:(I)(OI)(CI)(IO)(F)
Successfully processed 1 files; Failed processing 0 files
Now on folder C:\inetpub\wwwroot delete inheritance and change
permissions to :
Administrators:F
IUSR:R
NETWORK SERVICE:R
System:F
icacls result will be:
wwwroot NT AUTHORITY\IUSR:(OI)(CI)(R)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
NT AUTHORITY\NETWORK SERVICE:(OI)(CI)(R)
BUILTIN\Administrators:(OI)(CI)(F)
Successfully processed 1 files; Failed processing 0 files
Restart IIS service and try http://localhost/test.php now. Result of
script will be : bool(false). Now you can try change test script to full
path and result will be bool(true). If you change PHP to TS version,
result with relative path will be correct bool(true). PHP 5.3 NonTS same
problem.
------------------------------------------------------------------------
[2009-11-20 10:51:56] [email protected]
I fail to reproduce this problem. No matter the OS or configuration,
using 5.3 or 5.2.
------------------------------------------------------------------------
[2009-11-20 08:42:15] be3ch at centrum dot cz
Any progress? :)
------------------------------------------------------------------------
[2009-11-14 08:48:38] be3ch at centrum dot cz
open_basedir and include_path are for every case same :
open_basedir = D:\wwwroot\testcom;D:\tmp\System;D:\tmp\Php
include_path = .;D:\wwwroot\testcom\www;D:\wwwroot\testcom
If open_basedir is disabled (empty), result of test script with
relative path is : bool(false) . Result with full path is correctly :
bool(true).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50163
--
Edit this bug report at http://bugs.php.net/?id=50163&edit=1