#19104 [NEW]: ftp_get hangs with small files
| From: | frederick dot amorison at minfin dot fed dot be | Date: | Mon, 26 Aug 2002 10:42:31 +0000 |
| Subject: | #19104 [NEW]: ftp_get hangs with small files | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17836@lists.php.net to get a copy of this message | ||
From: frederick.amorison@minfin.fed.be
Operating system: Linux Debian Woody
PHP version: 4.1.2
PHP Bug Type: FTP related
Bug description: ftp_get hangs with small files
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);
--
Edit bug report at http://bugs.php.net/?id=19104&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19104&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19104&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19104&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19104&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19104&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19104&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19104&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19104&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19104&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19104&r=globals