From: jzimmerman at bmslab dot com
Operating system: windows 2000
PHP version: 4.3.3
PHP Bug Type: FTP related
Bug description: ftp_put of small files failes

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 bug report at [url]http://bugs.php.net/?id=25822&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25822&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25822&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25822&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25822&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25822&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25822&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25822&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25822&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25822&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25822&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25822&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25822&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25822&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25822&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25822&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25822&r=float[/url]