#50163 [NEW]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
From: be3ch at centrum dot cz
Operating system: Windows 2003 Server
PHP version: 5.2.11
PHP Bug Type: Filesystem function related
Bug description: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
Description:
------------
Hello,
I have installed PHP 5.2.11 on Windows 2003 Server, IIS6 and FastCGI
handler. For this configuration is recommended usage of non-ts version of
PHP. I'm encountered a problem with this version.
If I'm using PHP 5.2.11 ts and for IUSR are on webroot directory only READ
permissions, all works correctly.
If I'm using PHP 5.2.11 non-ts and for IUSR are on webroot directory only
READ permissions, files functions don't work. But functions like include or
require work correctly.
If I'm using PHP 5.2.11 non-ts and for IUSR are on webroot directory
READ+EXECUTE permissions, all works correctly.
There are some my test results :
Web=test.com
RootPath=D:\wwwroot\testcom\www\
TestScript=http://test.com/test.php
IUSR=IUSR_testcom
1) IUSR_testcom NTFS permissions on RootPath : READ
(OK) PHP 5.2.11 ts - test script result: bool(true)
(KO) PHP 5.2.11 non-ts - test script result: Warning: file_exists():
open_basedir restriction in effect. File(test.php) is not within the
allowed path(s): (D:\wwwroot\testcom;D:\tmp\System;D:\tmp\Php) in
D:\wwwroot\testcom\www\test.php on line 3 bool(false)
2) IUSR_testcom NTFS permissions on RootPath : READ + EXECUTE
(OK) PHP 5.2.11 ts - test script result: bool(true)
(OK) PHP 5.2.11 non-ts - test script result: bool(true)
Why PHP non-ts not working correctly when on root path are only READ
permissions for IUSR? FastCGI and PHP are running with impersonate.
Reproduce code:
---------------
Test script test.php source code:
<?php
var_dump(file_exists('test.php'));
?>
Expected result:
----------------
bool(true)
Actual result:
--------------
Warning: file_exists(): open_basedir restriction in effect. File(test.php)
is not within the allowed path(s):
(D:\wwwroot\testcom;D:\tmp\System;D:\tmp\Php) in
D:\wwwroot\testcom\www\test.php on line 3 bool(false)
--
Edit bug report at http://bugs.php.net/?id=50163&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50163&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50163&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50163&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50163&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50163&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50163&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50163&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50163&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50163&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50163&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50163&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50163&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50163&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50163&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50163&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50163&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50163&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50163&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50163&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50163&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50163&r=mysqlcfg
Thread (23 messages)
- be3ch at centrum dot cz
- pajoye@php.net#50163 [Opn->Bgs]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Bgs]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.net#50163 [Bgs]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Bgs]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.net#50163 [Bgs->Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Fbk->Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- ksingla@php.net#50163 [Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.net#50163 [Opn->Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Fbk->Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.net#50163 [Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- be3ch at centrum dot cz#50163 [Opn]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.net#50163 [Opn->Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- saurabh0 at gmail dot comBug #50163 [Com]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.netBug #50163 [NoF->Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- cataphract@php.netBug #50163 [Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- saurabh0 at gmail dot comBug #50163 [Com]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- cataphract@php.netBug #50163 [Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- cataphract@php.netBug #50163 [Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- cataphract@php.netBug #50163 [Fbk]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts
- pajoye@php.netBug #50163 [Fbk->NoF]: IUSR_ NTFS permissions issue on PHP 5.2.11-nts