From:             jmichae3 at yahoo dot com
Operating system: XP Pro SP3
PHP version:      5.2.6
PHP Bug Type:     FTP related
Bug description:  ftp_put returns error on Accepted data connection

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 bug report at http://bugs.php.net/?id=46531&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46531&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46531&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46531&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46531&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46531&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46531&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46531&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46531&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46531&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46531&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46531&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46531&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46531&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46531&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46531&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46531&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46531&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46531&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46531&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46531&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46531&r=mysqlcfg

Reply via email to