#31774 [Com]: Data missing using DirectoryIterator with ftp:// wrapper
ID: 31774
Comment by: homechoice2005 at yahoo dot com
Reported By: php at lachoseinteractive dot net
Status: Assigned
Bug Type: FTP related
Operating System: Linux & Mac OS X
PHP Version: 5CVS-2005-03-20
Assigned To: pollita
New Comment:
You are welcome to home
choice your online choice to day...
here at home choice , our goal is to make your shoppoing
experience better, faster, easier and safer than ever
before? that is why we have compiled a range of products
that offers something for everyone... from top quality bed
line designs and cookwave to top brand clectronics and
appliance.
CUSTOMER
CARE PLAN
everythinmg you order from us is covered by our
compreliensive home choice customewre care plan. what
does that mean to me?" i hear you ask. peace of mind is
what you get?
MAIN
PRODUCTS:
RADIO CD ...ONE YEAR GURANTEE:
Nu-tec 3cd hi-fi
Lg 3cd hi-fi
sansui 3cd battery/mains hi fi
sansui 5cd battery/mains hi fi
nu tec 5cd hi fi
homechoice 3cd hi fi
telefunken 3cd hi fi
VIDEO RECORDER:
LG 2-head video recorder
sansui diamond 3 head
sansui 2-head video recorder
MICROWAVE COOKING:
hot plate combo
home choice tow-tone combo
frying pan combo
estia delux grill
ideal multi griller
zass combo griller
home choice mini oven
deluxe table top stove
twister blender
sunbeam kitchen helper
magicline magi mixa
magicline food processor and blender
microwave with grill
stainless steel microwave
stock pot
CURTAIN:
Spring flower curtain
christina curtain
doruble drops curtain
luxury set colorado curtain
BED BLANKET:
electronics blanket
bed blanket
PHONES DETAILS
Nokia 6630 185 USD
Nokia 6650 20 USD
Nokia 6670 180 USD
Nokia 6680 200 USD
Nokia 6681 230 USD
Nokia 6810 250 USD
Nokia 6820 20 USD
Nokia 7200 120 USD
Nokia 7250 55 USD
Nokia 7250i 70 USD
Nokia 7260 85 USD
Nokia 7270 170 USD
Nokia 7280 190 USD
Nokia 7600 200 USD
Nokia 7610 185 USD
Nokia 7650 95 USD
Nokia 7710 260 USD
Nokia 7700 255 USD
Nokia 8800 260 USD
Nokia 8910i 110 USD
Nokia 9500 300 USD
Nokia 9300 190 USD
Nokia N70 285 USD
Nokia N90 300 USD
Nokia N91 325 USD
Sonyericsson P910i 295 USD
Sonyericsson p910a 320 USD
Sonyericsson P900 230 USD
Sonyericsson k750i 180 USD
Sonyericsson K700i 150 USD
Sonyericsson T610i 170 USD
Sonyericsson T630 130 USD
Sonyericsson K500i 200 USD
Sonyericsson W800 180 USD
whether its lastest vcr or a beautiful bed linen set that you
are intrested in, rest assured that your order we be
delivered to your door. thats right... place your order from
the comfort of your favourite chair and then just sit back
and relax? well take care of everything?
SPEEDY DELIVERY...
PLASE PROVIDE ALL THE DETAILS WE ASK FOR ON YOUR
ORDER FROM, AS THIS WILL ENABLE US TO APPROVE
YOUR ORDER QUICKLY AND SAEND TO YOU YOUR GOODS
STRAIGHT AWAY. THE FOLLOWNNG INFORMATION IS
ESPECIALLY IMPORTANT
INPORTANT INFORMATION:
. WHAT YOU WANT TO ORDER.
. YOUR STREET ADDRESS: IF YOU WANT TO USE OUR
CONVENIENT HOME CHOICE DELIVER SERVICE.
. YOUR TELEPHONE NUMBER
IMPORTANT:
IF YOU HAVE ANY QUERIES ABOUT OUR PRODUCTS AND
SERVICE S, PLEASE E-MAIL US ON homechoice2005
@yahoo.comOUR FRIENDLY CUSTOMER SERVICE
REPRESENTATIVES ARE ALWAYS READY TO HELP YOU.
MONDAY TO SATURDAY FROM 8.30 AM TO 7PM. FRIDAY
8.30AM TO 1.PM .
EASYPAYMENTTHROUGH.
.WESTERN UNIOR MONEY TRANSFER
. POSTING THROUGH OUR COMPANY ADDRESS
. T/T BANK
Previous Comments:
------------------------------------------------------------------------
[2005-04-29 03:48:20] sniper@php.net
Assigned to the FTP maintainer.. :)
------------------------------------------------------------------------
[2005-03-22 20:33:11] php at lachoseinteractive dot net
Same bug in php5-200503201530
------------------------------------------------------------------------
[2005-02-28 20:53:47] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-01-31 12:41:10] php at lachoseinteractive dot net
After more investigation, it turns out that the iterator
reconnects to the server several times for each file of
list in order to get SIZE information, etc instead of
parsing a raw list from an FTP LIST command.
Looks like DirectoryIterator needs optimization for use
with ftp wrapper.
------------------------------------------------------------------------
[2005-01-31 02:32:17] php at lachoseinteractive dot net
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";
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31774&edit=1
Thread (9 messages)