From: ledge00 at hotmail dot com Operating system: Windows XP PHP version: 4.3.5 PHP Bug Type: FTP related Bug description: ftp_rawlist doesn't list all files/dirs
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 bug report at http://bugs.php.net/?id=27857&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27857&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27857&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27857&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27857&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27857&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27857&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27857&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27857&r=support Expected behavior: http://bugs.php.net/fix.php?id=27857&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27857&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27857&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27857&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27857&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27857&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27857&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27857&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27857&r=float
