#48535 [Opn]: file_exists returns false if the file path is a symlink
| From: | tobias dot burger at rolmail dot net | Date: | Fri, 12 Jun 2009 08:00:30 +0000 |
| Subject: | #48535 [Opn]: file_exists returns false if the file path is a symlink | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138229@lists.php.net to get a copy of this message | ||
ID: 48535
User updated by: tobias dot burger at rolmail dot net
Reported By: tobias dot burger at rolmail dot net
Status: Open
Bug Type: Scripting Engine problem
Operating System: Windows Server 2008
PHP Version: 5.3.0RC3
New Comment:
Correction: file_exists does ALWAYS return false, even for normal file
pathes
Previous Comments:
------------------------------------------------------------------------
[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