From: fcurra at tecnonexo dot com
Operating system: Linux 2.4.25
PHP version: 4.3.7
PHP Bug Type: FTP related
Bug description: ftp_rawlist problem 'php_connect_nonb() failed: Connection refused'
Description:
------------
I need to retrieve files from a SSL-FTP connection.
I started working with PHP 4.3.3, but the function ftp_rawlist() allways
returned false with a specific FTP server (casually the one which i need
to connect, it works with others). So, after read comments about other
ocurrences of this problem i installed PHP 4.3.7 and tried again. I though
that maybe with the last PHP version this problem were solved.
When i execute the reproduced code, received the actual result showed.
Reproduce code:
---------------
if( $conn_id = ftp_ssl_connect($ftp_host) ) {
$login_result = ftp_login($conn_id, $ftp_user_name,
$ftp_user_pass);
ftp_pasv($conn_id, true);
$pwd = ftp_pwd($conn_id);
$buff = ftp_rawlist($conn_id, $pwd);
var_dump($buff);
}
ftp_close($conn_id);
Expected result:
----------------
print the list of files.
Actual result:
--------------
Warning: ftp_rawlist(): php_connect_nonb() failed: Connection refused
(111) in /usr/local/apache_1.3.27/htdocs/nti/connect.php on line 44
bool(false)
** LINE 44 is ***********************
$buff = ftp_rawlist($conn_id, $pwd);
*************************************
--
Edit bug report at http://bugs.php.net/?id=29110&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29110&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29110&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29110&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29110&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29110&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29110&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29110&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29110&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29110&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29110&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29110&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29110&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29110&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29110&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29110&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29110&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29110&r=float