Bug #54803 [Opn->Fbk]: file_exists() error.

From: Date: Wed, 18 May 2011 08:15:28 +0000
Subject: Bug #54803 [Opn->Fbk]: file_exists() error.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-160802@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54803&edit=1

 ID:                 54803
 Updated by:         pajoye@php.net
 Reported by:        vinirresko at hotmail dot com
 Summary:            file_exists() error.
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *Directory/Filesystem functions
 Operating System:   Windows XP SP3
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Also use an absolute path with the drive name if the current drive is
not the one 
where this file is (/foo is not an absolute path on windows, c:/foo
is).

See the cacls command or the file property to read the perms.


Previous Comments:
------------------------------------------------------------------------
[2011-05-18 10:11:05] vinirresko at hotmail dot com

How can I see the permissions of the file ?

I think this is not blocked.

------------------------------------------------------------------------
[2011-05-18 09:39:40] pajoye@php.net

What are the permissions of this file? 

Also I'm not sure what it is exactly, you say directory but it seems
that you look 
for a file.

------------------------------------------------------------------------
[2011-05-18 09:36:20] vinirresko at hotmail dot com

Description:
------------
I found an error on the file_exists() function.
When i try to teste, e.g.:
$dir = "/class/test.php"; // this directory really exists, approved.
When i try to test, returned a false value.

Test script:
---------------
<?
$dir = "/class/test.php"; // this directory really exists, approved.
if(file_exists($dir)){
   print "File ".$dir." exists.";
}else{
   print "File ".$dir." does not exists.";
}
?>

Expected result:
----------------
returns : File /class/test.php exists.

Actual result:
--------------
returns : File /class/test.php does not exists.


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



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


Thread (17 messages)

« previous php.bugs (#160802) next »