Bug #51190 [Com]: ftp_put() returns false when transfer was successful

From: Date: Wed, 03 Mar 2010 14:55:57 +0000
Subject: Bug #51190 [Com]: ftp_put() returns false when transfer was successful
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148217@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51190&edit=1

 ID:               51190
 Comment by:       
 Reported by:      alexclifford47 at gmail dot com
 Summary:          ftp_put() returns false when transfer was successful
 Status:           Open
 Type:             Bug
 Package:          FTP related
 Operating System: Windows Server 2003 R2 32-bit
 PHP Version:      5.3.1

 New Comment:

I'm having the exact same problem..
The upload is successful , however ftp_put returns false...
Any info would be appreciated.
Thanks
Ameya


Previous Comments:
------------------------------------------------------------------------
[2010-03-03 05:47:50] alexclifford47 at gmail dot com

Description:
------------
Hi,

I am getting the following warning message when trying to use
ftp_put():
Warning: ftp_put(): Transfer OK

This is causing the function to return false, when in fact the file is 
transferred 
successfully.

I have Googled this warning message but no one else has ever received
it. Where 
is 
this warning coming from and why is PHP reporting a "Transfer OK" as a
warning?

Destination server is Windows Server 2008 64-bit running FileZilla
Server 
(latest version).

Alex

Test script:
---------------
$conn_id = ftp_connect($ftp_server);
ftp_login($conn_id, $ftp_user, $ftp_pass);

if (ftp_put($conn_id, 

Expected result:
----------------
1

Actual result:
--------------
Warning: ftp_put(): Transfer OK
0


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51190&edit=1


Thread (13 messages)

« previous php.bugs (#148217) next »