|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27491 curious Warning with ftp_put()
Submitted: 2004-03-04 05:45 UTC Modified: 2004-03-11 20:14 UTC
From: joerg dot klein at ifsam dot lu Assigned:
Status: Not a bug Package: FTP related
PHP Version: 4CVS-2004-03-10 OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: joerg dot klein at ifsam dot lu
New email:
PHP Version: OS:


 [2004-03-04 05:45 UTC] joerg dot klein at ifsam dot lu
I have a script that create some files and upload them to an FTP server. this script runs every minute.
I got this warning sporadically (sometimes 3 times a day, sometimes 1 per week):
ErrorNumber: 2 
ErrorType: Warning 
ErrorMsg: ftp_put(): Transfer complete. 

The file does not get uploaded.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-08 03:11 UTC] joerg dot klein at ifsam dot lu
ok, here you get some more infos:
the scripts connects to this FTP-Server: cl06 FTP server (SunOS 5.8)

  $conn_ftp = ftp_connect($ftp_server); 
  $login_result = ftp_login($conn_ftp, $ftp_user_name, $ftp_user_pass);
  ftp_pasv($conn_ftp, true);

upload (9 times in the script):
ftp_put($conn_ftp, $path_file_ImportFinished_t, $path_file_ImportFinished_s, FTP_BINARY); 

I expect all files to be uploaded correctly, but sometimes I get the warning for upload #3, sometimes for upload #6,...
and the file does not get uploaded.
In 99.9% of the time the script works without a problem!

If you need some more infos, leave a note ;)
 [2004-03-09 08:23 UTC]
Please try using this CVS snapshot:
For Windows:

There were some problems with the stable snapshots til now so please grab the latest from now.

 [2004-03-10 02:35 UTC] joerg dot klein at ifsam dot lu
problem still there!
 [2004-03-11 07:20 UTC] joerg dot klein at ifsam dot lu
in 1 percent of these warning I got the following ErrorMessage:

ErrorNumber: 2 
ErrorType: Warning 
ErrorMsg: ftp_put(): Type set to I.
 [2004-03-11 20:14 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

The warning you are seeing does not come from PHP itself, 
but is relayed via PHP from the ftp server you are working 
with. This is not a PHP bug. 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 06:03:35 2022 UTC