|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-31 12:41 UTC] php at lachoseinteractive dot net
[2005-12-21 21:25 UTC] sniper@php.net
[2005-12-29 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ Reading a directory with a DirectoryIterator using an ftp wrapper doesn't work well. Tested on 3 ftp servers. (proftp, ncftp, and ..unknown :-/). on 3 different machines and network. With proftp and ncftp, some items are missing from the retrieved directory list. (whereas it works well with readdir()), even with a directory containing no more than 2 or 3 files. This doesn't seem to be related to the nature of the file, but rather to its position in the list : add a new file to the directory, and the previously missing file would show up, while another one is now missing. On the third server (ftpperso.free.fr), the directory was correctly read. In all cases, retrieving the list is very slow, and often fails. Reproduce code: --------------- example: $dir = new DirectoryIterator("ftp://myftpserver.com/"); foreach ( $dir as $f ) { if ( $f->isDot() ) continue; echo $f->getFilename()."\n"; }