ID: 48535 Updated by: paj...@php.net Reported By: tobias dot burger at rolmail dot net -Status: Bogus +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows Server 2008 PHP Version: 5.3.0RC3 -Assigned To: +Assigned To: pajoye New Comment:
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). Previous Comments: ------------------------------------------------------------------------ [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