Bug #10466 Updated: hidden '.' files don't work with file_exists()
| From: | jmoore@php.net | Date: | Tue, 24 Apr 2001 16:14:14 +0000 |
| Subject: | Bug #10466 Updated: hidden '.' files don't work with file_exists() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52286@lists.php.net to get a copy of this message | ||
ID: 10466
Updated by: jmoore
Reported By: atom@suspicious.org
Old-Status: Closed
Status: Bogus
Bug Type: Filesystem function related
PHP Version: 4.0.4pl1
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[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@suspicious.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");
}
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10466&edit=2