#27857 [Opn->Bgs]: ftp_rawlist doesn't list all files/dirs
| From: | pollita@php.net | Date: | Sun, 04 Apr 2004 04:19:36 +0000 |
| Subject: | #27857 [Opn->Bgs]: ftp_rawlist doesn't list all files/dirs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57473@lists.php.net to get a copy of this message | ||
ID: 27857
Updated by: pollita@php.net
Reported By: ledge00 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: FTP related
Operating System: Windows XP
PHP Version: 4.3.5
New Comment:
ftp_rawlist() doesn't do any caching of results, it just proxies the
results returned from the FTP server.
Perhaps your FTP server (or the "webshare" software itself) performs
some type of caching to avoid repeatedly stating the same files.
Previous Comments:
------------------------------------------------------------------------
[2004-04-03 22:30:21] ledge00 at hotmail dot com
Description:
------------
When using "@ftp_rawlist" to retrieve a listing of files on my ftp
server, files/directories recently created are not listed.
Also, for a file/directory that is listed, if I delete it, it is still
returned by "@ftp_rawlist".
If have tried adjusting all "cache" parameters in php.ini, but the
problem still recurs.
the problem seems to disappear after 3 minutes or so after the
directory/file is created.
The code I've been trying can be found here:
http://www.fatsquirrel.org/software/webshare/
I'm using Apache 2.0.49 with SSL and PHP 4.3.5.
This problem also seems to occur in PHP Debuggers also, so I don't
think it's related to Apache.
Thank you for your help.
Reproduce code:
---------------
The code can be found here:
http://www.fatsquirrel.org/software/webshare/
The function that causes the problem is:
function ls($dir)
{
return(@ftp_rawlist($this->cid,$dir));
}
Expected result:
----------------
All files/directories report by ftp_rawlistshould match the files as
reported by explorer.
Actual result:
--------------
new directories created by explorer, are not shown when using
ftp_rawlist. After 3 minutes or so, the new directory/file is shown.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27857&edit=1