From:             daniel dot chobe at nextiraone dot de
Operating system: Linux
PHP version:      5.2.5
PHP Bug Type:     Feature/Change Request
Bug description:  Able to get more infos about FTP

Description:
------------
The FTP Extension dont show the choosen passiv port. But sometime it helps
if your have problem with your connection.

The other thing your can get is the last ftp responseline. It also helps
in case of problems with FTP Connections.



Reproduce code:
---------------
<?php
# Connect, Login, Uploads, get Information

$conn_id = ftp_connect($ftp_server); 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);

echo ftp_get_option($conn_id, FTP_LASTRESPONSE).PHP_EOL;
echo ftp_get_option($conn_id, FTP_PASSIVPORT).PHP_EOL;
ftp_close($conn_id); 
?>

Expected result:
----------------
226 Transfer complete
43020


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

Reply via email to