php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27857 ftp_rawlist doesn't list all files/dirs
Submitted: 2004-04-03 22:30 UTC Modified: 2004-04-03 23:19 UTC
From: ledge00 at hotmail dot com Assigned:
Status: Not a bug Package: FTP related
PHP Version: 4.3.5 OS: Windows XP
Private report: No CVE-ID: None
 [2004-04-03 22:30 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-03 23:19 UTC] pollita@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC