#46531 [Opn->Fbk]: ftp_put returns error on Accepted data connection

From: Date: Mon, 10 Nov 2008 11:24:25 +0000
Subject: #46531 [Opn->Fbk]: ftp_put returns error on Accepted data connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130827@lists.php.net to get a copy of this message
 ID:               46531
 Updated by:       jani@php.net
 Reported By:      jmichae3 at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: XP Pro SP3
 PHP Version:      5.2.6
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------

[2008-11-10 06:20:28] jmichae3 at yahoo dot com

Description:
------------
PHP Warning:  ftp_put(): Accepted data connection in
C:\www\jimm\ftp6.php on line 122

is this really an error state for ftp_put?  I would think it would be a
success!  PHP is returning an error on this.
I think this is a bug.



Reproduce code:
---------------
if (ftp_put($conn_id, basename($dest_file), $src_file, FTP_BINARY)) {
 echo "success\n";
} else {
 echo "error\n";
}

Expected result:
----------------
success

Actual result:
--------------
the server I am working with is having problems.  lately it is really
slow, and I get about 6 successful files uploaded, and the rest (about
450+ files) are 
PHP Warning:  ftp_put(): Accepted data connection in
C:\www\jimm\ftp6.php on line 122
error

also, subsequent attempts at a ftp_mkdir also fail.


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


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



Thread (7 messages)

« previous php.bugs (#130827) next »