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:
---------------
<?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) 

-- 
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

Reply via email to