|  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
Have you experienced this issue?
Rate the importance of this bug to you:

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

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";}



Add a Patch

Pull Requests

Add a Pull Request


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]
Please try using this CVS snapshot:
For Windows:

This should be fixed already..

 [2002-09-21 02:13 UTC]
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 Jun 13 17:01:32 2024 UTC