#25822 [Opn->Bgs]: ftp_put of small files failes
| From: | sniper@php.net | Date: | Mon, 13 Oct 2003 03:17:07 +0000 |
| Subject: | #25822 [Opn->Bgs]: ftp_put of small files failes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48890@lists.php.net to get a copy of this message | ||
ID: 25822
Updated by: sniper@php.net
Reported By: jzimmerman at bmslab dot com
-Status: Open
+Status: Bogus
Bug Type: FTP related
Operating System: windows 2000
PHP Version: 4.3.3
New Comment:
I can't reproduce with other FTP servers.
Apprently some bug in that Pablo FTP server.
Previous Comments:
------------------------------------------------------------------------
[2003-10-10 12:11:30] jzimmerman at bmslab dot com
Description:
------------
I'm encountering a problem when issuing an ftp_put on small files. If a
file is under about 8K, the put will fail with the following error
message:
Warning: ftp_put(): Connection closed; transfer aborted
In isolating the failure, I was able to take the text file being ftp'd
and remove one line at a time. The ftp worked until the file became
smaller than about 8K.
The failure occurred in both ASCII and BINARY modes.
The destination FTP server in this case is the PABLO FTP server.
Thanks very much for your help,
John Zimmerman
Reproduce code:
---------------
$bUpload = ftp_put($connID, "myTest01.txt",
"c:/public/transfer/intranet/myTest.txt", FTP_BINARY);
Expected result:
----------------
successful ftp transfer
Actual result:
--------------
Warning: ftp_put(): Connection closed; transfer aborted
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25822&edit=1