#40884 [NEW]: Cannot specify port range in pasv mode

From: Date: Wed, 21 Mar 2007 17:12:15 +0000
Subject: #40884 [NEW]: Cannot specify port range in pasv mode
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110654@lists.php.net to get a copy of this message
From: simon at connexon dot com Operating system: Windows Server 2003 PHP version: 5.2.1 PHP Bug Type: FTP related Bug description: Cannot specify port range in pasv mode Description: ------------ Ok, I searched everywhere for this but could not find anything... And I think it should be there. When using pasv_mode for a ftp connection, we should allowed to specify the port range that the passive mode will be using. In our case, the place where we need to upload some files accept only pasv connections with ASCII data, and a range of ports between 49000 and 50000. So ftp_connect does connect to port 21, however there is no way to specify that the pasv_mode will be using a range of ports. So the changes of it using a port in the range is quite slim! Any ideas? Reproduce code: --------------- $conn_id = ftp_connect(_FTP_SERVER_, 21, 15) or die("Could not connect to FTP"); ftp_pasv($conn_id, true); $upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII) or die("Could not upload the desired file."); Expected result: ---------------- The file being uploaded Actual result: -------------- Well since it's not using a valid port, it fails. But I guess it's normal since we can't specify a port range! Can this be integrated in PHP? -- Edit bug report at http://bugs.php.net/?id=40884&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40884&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40884&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40884&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40884&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40884&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40884&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40884&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40884&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40884&r=support Expected behavior: http://bugs.php.net/fix.php?id=40884&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40884&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40884&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40884&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40884&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40884&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40884&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40884&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40884&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40884&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40884&r=mysqlcfg

« previous php.bugs (#110654) next »