ID: 48535
Comment by: tobias dot burger at rolmail dot net
Reported By: tobias dot burger at rolmail dot net
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows Server 2008
PHP Version: 5.3.0RC3
Assigned To: pajoye
New Comment:
I've set the setting fastcgi.impersonate in php.ini to 1 (like
recommendet in the documentation).
If I set it to 0 it works.
Previous Comments:
------------------------------------------------------------------------
[2009-06-12 09:58:19] pajoye@php.net
I use 2008 as well and it works fine. Can you add perms for your user
specifically and test again? take #2
------------------------------------------------------------------------
[2009-06-12 09:51:32] tobias dot burger at rolmail dot net
detailed system information
* Windows Server 2008
* IIS7 with Fast-CGI installed
* PHP5.3 ((5.3.0RC3) VC9 non thread safe from
http://windows.php.net/qa/ (tried also VC6 and thread safe
version)
The problem occurs only if executing the script from the web server.
I run the same script from the console and it works.
The permissions are set correctly (full permissions to everyone), as I
can read and modify the file via PHP (running on IIS).
------------------------------------------------------------------------
[2009-06-12 09:29:17] pajoye@php.net
I use 2008 as well and it works fine. Can you add perms for your user
specifically and test again?
------------------------------------------------------------------------
[2009-06-12 09:25:55] tobias dot burger at rolmail dot net
User group EVERYONE has full permissions.
Other operations are working on that file:
e.g. include_once, file_get_contents
------------------------------------------------------------------------
[2009-06-12 09:21:56] pajoye@php.net
c:\php53rc3tsvc9x86> php -r "var_dump(file_exists('news.txt'));"
bool(true)
c:\php53rc3tsvc9x86> php -r
"var_dump(file_exists(realpath('news.txt')));"
bool(true)
c:\php53rc3tsvc9x86> php -r
"var_dump(file_exists(realpath('news123.txt')));"
bool(false)
same with VC6 builds.
I suspect David is right, the console may be run under a user not
having the permissions to access c:\inetpub (5.3 has ACL supports now
and actually returns the right info).
------------------------------------------------------------------------
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/48535--
Edit this bug report at http://bugs.php.net/?id=48535&edit=1