From: eddie at eschnell dot com Operating system: FreeBSD 4.11-STABLE PHP version: 4.4.4 PHP Bug Type: FTP related Bug description: Warning: ftp_put(): php_connect_nonb() failed: No route to host (65)
Description: ------------ Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) I get this error with the reproduce code. it also says Warning: ftp_put(): Type set to I. It is not uploading the file correctly. i have php 4.4.1 on iPowerWeb's server, so no upgrade is possible. Thanks in Advance Reproduce code: --------------- $conn_id = ftp_connect("ftpServer"); $login_result = ftp_login($conn_id, "userName", "passWord"); ftp_pasv($conn_id, true); if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!"; echo "Attempted to connect to stp server for user username"; exit; } else { echo "Connected to ftp server, for user user"; } $upload = ftp_put($conn_id, "bgd.txt", "bgdlocal.txt", FTP_BINARY); if (!$upload) { echo "FTP upload has failed!"; } else { echo "Uploaded $source_file to $ftp_server as $destination_file"; } // close the FTP stream ftp_close($conn_id); Expected result: ---------------- Uploaded $source_file to $ftp_server as $destination_file Actual result: -------------- Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) in /home/beachgla/public_html/catalog/update/index.php on line 475 Warning: ftp_put(): Type set to I. in /home/beachgla/public_html/catalog/update/index.php on line 475 -- Edit bug report at http://bugs.php.net/?id=40170&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40170&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40170&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40170&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40170&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40170&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40170&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40170&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40170&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40170&r=support Expected behavior: http://bugs.php.net/fix.php?id=40170&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40170&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40170&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40170&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40170&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40170&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40170&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40170&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40170&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40170&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40170&r=mysqlcfg