From: Operating system: Windows Server 2003 R2 32-bit PHP version: 5.3.1 Package: FTP related} Bug Type: Bug Bug description:ftp_put() returns false when transfer was successful
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 bug report at http://bugs.php.net/bug.php?id=51190&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51190&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51190&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51190&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51190&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51190&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51190&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51190&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51190&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51190&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51190&r=support Expected behavior: http://bugs.php.net/fix.php?id=51190&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51190&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51190&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51190&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51190&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51190&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51190&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51190&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51190&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51190&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51190&r=mysqlcfg