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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ledge00 at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Fri Apr 26 06:01:32 2024 UTC