ID:               48535
 User updated by:  tobias dot burger at rolmail dot net
 Reported By:      tobias dot burger at rolmail dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: Windows Server 2008
 PHP Version:      5.3.0RC3
 Assigned To:      pajoye
 New Comment:

User group EVERYONE has full permissions.
Other operations are working on that file:
e.g. include_once, file_get_contents


Previous Comments:
------------------------------------------------------------------------

[2009-06-12 09:21:56] paj...@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).

------------------------------------------------------------------------

[2009-06-12 09:17:41] d...@php.net

Please check if you have the correct permissions.

------------------------------------------------------------------------

[2009-06-12 08:00:29] tobias dot burger at rolmail dot net

Correction: file_exists does ALWAYS return false, even for normal file
pathes

------------------------------------------------------------------------

[2009-06-12 07:32:37] tobias dot burger at rolmail dot net

Description:
------------
file_exists returns false if the file path is a symlink

Reproduce code:
---------------
# d:\myfolder\test.php
> mklink /D c:\inetpub\wwwroot\myfolder d:\myfolder

file_exists('c:\inetpub\wwwroot\myfolder\test.php')


Expected result:
----------------
true

Actual result:
--------------
false


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48535&edit=1

Reply via email to