Bug #51779 [Com]: FTP socket failed
Edit report at http://bugs.php.net/bug.php?id=51779&edit=1 ID: 51779 Comment by: michael dot clark at ncver dot edu dot au Reported by: michael dot clark at ncver dot edu dot au Summary: FTP socket failed Status: Open Type: Bug Package: FTP related Operating System: HP-UX 11.23 ia64 PHP Version: 5.2.13 New Comment: Sorry, forgot to mention. ftp_pasv is no help in this case, especially when client and server are the same machine. PS thanks for any help resolving this issue. Previous Comments: [2010-05-10 04:57:18] michael dot clark at ncver dot edu dot au Description: Have built new installations of apache 2.2.14 with PHP 5.2.13 to replace previous installation of Apache 2.0 with PHP 4.3.4. Other functionality has all worked. We are recieving warning on all file related ftp functions: Warning: ftp_rawlist() [function.ftp-rawlist]: socket() failed: Protocol not supported (221) Connection to server and login complete successfully. When trying to list, put, get any data it fails. My guess is connection successful on first port but second (data) port not successful? Test script: --- "; $remote_list = ftp_rawlist($conn_id, "/home/devdba"); foreach ($remote_list as $list_item) { echo $list_item.""; } } ?> Expected result: FTP pwd: /home item1 item2 item3 Actual result: -- FTP pwd: /home Warning: ftp_rawlist() [function.ftp-rawlist]: socket() failed: Protocol not supported (221) -- Edit this bug report at http://bugs.php.net/bug.php?id=51779&edit=1
[PHP-BUG] Bug #51779 [NEW]: FTP socket failed
From: Operating system: HP-UX 11.23 ia64 PHP version: 5.2.13 Package: FTP related Bug Type: Bug Bug description:FTP socket failed Description: Have built new installations of apache 2.2.14 with PHP 5.2.13 to replace previous installation of Apache 2.0 with PHP 4.3.4. Other functionality has all worked. We are recieving warning on all file related ftp functions: Warning: ftp_rawlist() [function.ftp-rawlist]: socket() failed: Protocol not supported (221) Connection to server and login complete successfully. When trying to list, put, get any data it fails. My guess is connection successful on first port but second (data) port not successful? Test script: --- "; $remote_list = ftp_rawlist($conn_id, "/home/devdba"); foreach ($remote_list as $list_item) { echo $list_item.""; } } ?> Expected result: FTP pwd: /home item1 item2 item3 Actual result: -- FTP pwd: /home Warning: ftp_rawlist() [function.ftp-rawlist]: socket() failed: Protocol not supported (221) -- Edit bug report at http://bugs.php.net/bug.php?id=51779&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51779&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51779&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51779&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51779&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51779&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51779&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51779&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51779&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51779&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51779&r=support Expected behavior: http://bugs.php.net/fix.php?id=51779&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51779&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51779&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51779&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51779&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=51779&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51779&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51779&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51779&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51779&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51779&r=mysqlcfg