Bug #51190 [NEW]: ftp_put() returns false when transfer was successful
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
Thread (13 messages)
- alexclifford47 at gmail dot com
- "Bug #51190 [Com]: ftp_put() returns false when transfer was successful
- iliaa@php.netBug #51190 [Opn->Csd]: ftp_put() returns false when transfer was successful
- alexclifford47 at gmail dot comBug #51190 [Csd]: ftp_put() returns false when transfer was successful
- alexclifford47 at gmail dot comBug #51190 [Csd]: ftp_put() returns false when transfer was successful
- cmb@php.netBug #51190 [Csd->ReO]: ftp_put() returns false when transfer was successful
- linh232324 at gmail dot comBug #51190 [Com]: ftp_put() returns false when transfer was successful
- kalle@php.netBug #51190 [ReO]: ftp_put() returns false when transfer was successful
- cmb@php.netBug #51190 [ReO]: ftp_put() returns false when transfer was successful
- mattficken@php.netBug #51190 [Com]: ftp_put() returns false when transfer was successful
- afterfivebydesign at gmail dot comBug #51190 [Com]: ftp_put() returns false when transfer was successful
- cmb@php.netBug #51190 [ReO->Fbk]: ftp_put() returns false when transfer was successful
- php-bugs at lists dot php dot netBug #51190 [Fbk->NoF]: ftp_put() returns false when transfer was successful