| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2010-05-10 06:31 UTC] michael dot clark at ncver dot edu dot au
  [2010-05-12 09:07 UTC] mike@php.net
  [2021-02-17 15:52 UTC] cmb@php.net
 
-Status:      Open
+Status:      Feedback
-Assigned To:
+Assigned To: cmb
  [2021-02-17 15:52 UTC] cmb@php.net
  [2021-02-28 04:22 UTC] php-bugs at lists dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
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: --------------- <?php $conn_id = ftp_connect("server"); $login_result = ftp_login($conn_id, "user", "pass"); // check connection if ((!$conn_id) || (!$login_result)) { $error_message .= "FTP connection has failed!"; } else { echo "FTP pwd: ".ftp_pwd($conn_id). "<br />"; $remote_list = ftp_rawlist($conn_id, "/home/devdba"); foreach ($remote_list as $list_item) { echo $list_item."<br />"; } } ?> 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)