ID: 50163 Updated by: ksin...@php.net Reported By: be3ch at centrum dot cz Status: Open Bug Type: Filesystem function related Operating System: win32 only - Windows 2003 Server PHP Version: 5.2.11 Assigned To: pajoye New Comment:
Can you paste the value of include_path directive (ini_get('include_path')) for each of the cases? Given that fullpath to file works with just read permissions tell that relative path test.php is getting resolved to some other path which is outside open_basedir. Strange that adding execute permission make it resolve to a different path. Previous Comments: ------------------------------------------------------------------------ [2009-11-13 12:15:32] be3ch at centrum dot cz D:\wwwroot>icacls D:\wwwroot\testcom\ D:\wwwroot\testcom\ NT AUTHORITY\SYSTEM:(OI)(CI)(F) NT AUTHORITY\NETWORK SERVICE:(OI)(CI)(R) BUILTIN\Administrators:(OI)(CI)(F) TEST_SERVER\G6FTPUser:(OI)(CI)(R,W,D,DC) TEST_SERVER\IUSR_testcom:(OI)(CI)(R) Successfully processed 1 files; Failed processing 0 files D:\wwwroot>icacls D:\wwwroot\testcom\www D:\wwwroot\testcom\www BUILTIN\Administrators:(OI)(CI)(F) TEST_SERVER\G6FTPUser:(OI)(CI)(R,W,D,DC) TEST_SERVER\IUSR_testcom:(OI)(CI)(R) NT AUTHORITY\NETWORK SERVICE:(OI)(CI)(R) NT AUTHORITY\SYSTEM:(OI)(CI)(F) Successfully processed 1 files; Failed processing 0 files ------------------------------------------------------------------------ [2009-11-13 12:02:05] paj...@php.net Pls run: icacls D:\wwwroot\testcom\ icacls D:\wwwroot\testcom\www\ and past the result here. So we can try to reproduce your problem with the same settings. ------------------------------------------------------------------------ [2009-11-13 11:41:32] be3ch at centrum dot cz Sorry, PHP 5.3.0 VC9 x86 Non Thread Safe - same problem. Non-TS version of PHP not working correctly when on webroot directory are only READ NTFS permissions. It's working only with READ+EXECUTE. ------------------------------------------------------------------------ [2009-11-13 11:00:44] paj...@php.net Simply try it with 5.3. impersonate and ACL has been improved/fixed there. ------------------------------------------------------------------------ [2009-11-13 10:57:37] be3ch at centrum dot cz I'm think it's not problem with ACL, because with PHP 5.2.11 ts-version it works correctly and if script will be changed to FULL path : <?php var_dump(file_exists('D:\wwwroot\testcom\www\test.php')); ?> it works with PHP 5.2.11 non-ts and only READ permissions correctly too. ------------------------------------------------------------------------ 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