php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36333 ftp_get Problem with small files
Submitted: 2006-02-08 13:48 UTC Modified: 2006-02-16 01:00 UTC
From: gierse at systemtechnik dot net Assigned:
Status: No Feedback Package: FTP related
PHP Version: 4.4.2 OS: WinXP SP 2
Private report: No CVE-ID: None
 [2006-02-08 13:48 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-08 14:05 UTC] tony2001@php.net
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.



 [2006-02-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC