#45129 [Opn->Fbk]: file_exists() incorrectly returns true when using the FTP wrapper
| From: | felipe@php.net | Date: | Sat, 12 Jul 2008 22:51:32 +0000 |
| Subject: | #45129 [Opn->Fbk]: file_exists() incorrectly returns true when using the FTP wrapper | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126578@lists.php.net to get a copy of this message | ||
ID: 45129
Updated by: felipe@php.net
Reported By: lonedesign_2k at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: *
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-06-23 16:06:53] nanawel at eyeos dot org
Problem reproduced with FileZilla Server 0.9.25 under Windows XP Pro
SP3.
------------------------------------------------------------------------
[2008-05-31 19:43:29] lonedesign_2k at yahoo dot com
Problem occurred using FileZilla Server 0.9.23 beta on Windows 2000,
and ProFTPD 1.2.9 on CentOS Enterprise Linux - OS ES 5.0.
------------------------------------------------------------------------
[2008-05-31 19:29:23] bjori@php.net
Works fine for me using tnftpd and vsFTPd..
------------------------------------------------------------------------
[2008-05-31 16:25:13] lonedesign_2k at yahoo dot com
OS changed from 'Windows 2000' to 'All' reproduced on a Linux system.
------------------------------------------------------------------------
[2008-05-29 20:53:30] lonedesign_2k at yahoo dot com
Description:
------------
file_exists() is returning true, but the file does not exist in the
specified FTP directory.
Glen.
Reproduce code:
---------------
clearstatcache(); // just in case.
$dst = 'ftp://user:pass@localhost/test.txt';
if (file_exists($dst)) {
echo 'File exists.';
} else {
echo 'File does not exist.';
}
Expected result:
----------------
Output of 'File does not exist.'.
Actual result:
--------------
Output of 'File exists.'.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45129&edit=1