#10466 [Com]: hidden '.' files don't work with file_exists()
| From: | black-lesbian1998 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:01:22 +0000 |
| Subject: | #10466 [Com]: hidden '.' files don't work with file_exists() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62806@lists.php.net to get a copy of this message | ||
ID: 10466
Comment by: black-lesbian1998 at hotmail dot com
Reported By: atom at suspicious dot org
Status: Bogus
Bug Type: Filesystem function related
Operating System: linux 2.4.2 (red-hat 6) i686
PHP Version: 4.0.4pl1
New Comment:
<a href=http://quick-fisting-vide.da.ru>black
lesbian</a>
Previous Comments:
------------------------------------------------------------------------
[2001-04-24 12:16:29] atom at suspicious dot org
single quotes solved it.
thanks...
------------------------------------------------------------------------
[2001-04-23 18:46:50] atom at suspicious dot org
single quotes works fine. thanks!
also, could be a bug, but i got it to work by having it ~follow~ a
symbolic link.
it didn't check that the link existed, it checked the the place the
link pointed to existed.
could be a security issue.
thanks... atom
------------------------------------------------------------------------
[2001-04-23 17:13:21] torben@php.net
Usually we like to have more information than 'doesn't work'. :)
But for the moment, what happens if you quote your strings?
i.e.:
if (file_exists('/file/names/must/be/.quoted.txt')) {
. . .
}
------------------------------------------------------------------------
[2001-04-23 17:02:22] atom at suspicious dot org
file_exists () seems to get confused with 'hidden' files, starting with
'.' (dot).
this works fine:
--------------------------------------------------------------
if(file_exists(test/normal-file)) {
die ("error message");
}
this does not work:
--------------------------------------------------------------
if(file_exists(test/.hidden-file)) {
die ("error message");
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=10466&edit=1