#48535 [Opn->Bgs]: file_exists returns false if the file path is a symlink

From: Date: Fri, 12 Jun 2009 09:17:41 +0000
Subject: #48535 [Opn->Bgs]: 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-138232@lists.php.net to get a copy of this message
 ID:               48535
 Updated by:       dsp@php.net
 Reported By:      tobias dot burger at rolmail dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows Server 2008
 PHP Version:      5.3.0RC3
 New Comment:

Please check if you have the correct permissions.


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

[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



Thread (18 messages)

« previous php.bugs (#138232) next »