#36333 [Opn->Fbk]: ftp_get Problem with small files
| From: | tony2001@php.net | Date: | Wed, 08 Feb 2006 13:05:39 +0000 |
| Subject: | #36333 [Opn->Fbk]: ftp_get Problem with small files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93053@lists.php.net to get a copy of this message | ||
ID: 36333
Updated by: tony2001@php.net
Reported By: gierse at systemtechnik dot net
-Status: Open
+Status: Feedback
-Bug Type: *General Issues
+Bug Type: FTP related
Operating System: WinXP SP 2
PHP Version: 4.4.2
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-02-08 13:48:45] gierse at systemtechnik dot net
Description:
------------
Hello
the following error occurs with the download of small files with
ftp_get().
First 30 seconds the download is fine, then the following downloads
fail with the message:
Warning: ftp_get(): File send OK. in F:\Testdaten\include\ftp.class.php
on line 105
The size of the files is 28 bytes. Depending upon my InterNet
connection 50 or 60 files can be downloaded before the error occurs.
I´m using FTB_BINARY, but also tried FTP_ASCII mode, the error is the
same.
I tried the latest CVS of PHP 5.1, the error still exists
with sleep(1) before downloading more files can be copied (about 300)
to my local harddrive before the error messages comes.
Reproduce code:
---------------
.
.
.
if(ftp_get ( $this->ftpConn_id, $DateiLokal, $DataDatei, $mode )) {
$this->Statusliste[$i]['file']=$DataDatei;
$this->Statusliste[$i]['status']=2;
} else {
$this->Statusliste[$i]['file']=$DataDatei;
$this->Statusliste[$i]['status']=6;
$this->TransferOk= false;
}
.
.
.
$DateiLokal is the local Filename, $DataDatei is the name of the file
which is to be copied.
Expected result:
----------------
Download of all files to my local Harddrive
Actual result:
--------------
download of a few files to my local harddrive
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36333&edit=1