php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19104 ftp_get hangs with small files
Submitted: 2002-08-26 06:42 UTC Modified: 2002-09-21 02:13 UTC
From: frederick dot amorison at minfin dot fed dot be Assigned:
Status: No Feedback Package: FTP related
PHP Version: 4.1.2 OS: Linux Debian Woody
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: frederick dot amorison at minfin dot fed dot be
New email:
PHP Version: OS:

 

 [2002-08-26 06:42 UTC] frederick dot amorison at minfin dot fed dot be
Hello,

I have th following problem with ftp_get function.
When I try to download small files (198 bytes or less),   nothing seems to happens. After 90 secs I receive a Warning message (Warning: ftp_get: in /var/www/updater/toolbar.php on line 32 ).

My ftp server (proftpd) says transfer is Ok.


Here is a part of this script : (line 32 is the one with ftp_get)

  if ($ftp_conn=ftp_connect($RemoteServer)){
    if (ftp_login($ftp_conn,$login,$passwd)){
      if ($afiles=ftp_get($ftp_conn,$file,$file,FTP_BINARY)){
      } else { $res.="$msgDownloadFailed";}
    } else { $res.="$msgAutenticationFailed";}
  }else { $res.="$msgConnectionFailed";}

  ftp_quit($ftp_conn);
 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-26 07:50 UTC] frederick dot amorison at minfin dot fed dot be
The same test with ftp_fget:

The "output" file is writen after 90 secs (but this time there is something written).

PS: My "fopen" and "fclose" are correct!
 [2002-08-26 11:15 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

This should be fixed already..

 [2002-09-21 02:13 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 05 10:01:32 2024 UTC