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

Reply via email to