#36333 [NEW]: ftp_get Problem with small files

From: Date: Wed, 08 Feb 2006 12:48:47 +0000
Subject: #36333 [NEW]: ftp_get Problem with small files
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93052@lists.php.net to get a copy of this message
From: gierse at systemtechnik dot net Operating system: WinXP SP 2 PHP version: 4.4.2 PHP Bug Type: *General Issues Bug description: ftp_get Problem with small files 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 bug report at http://bugs.php.net/?id=36333&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36333&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36333&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36333&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36333&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36333&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36333&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36333&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36333&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36333&r=support Expected behavior: http://bugs.php.net/fix.php?id=36333&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36333&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36333&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36333&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36333&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36333&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36333&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36333&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36333&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36333&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36333&r=mysqlcfg

« previous php.bugs (#93052) next »