title: PHP ftp_login() not accepting username and password
body: <p>We're migrating from PHP 4 to 5 (FINALLY!)</p>
  
  <p>I need a php script to connect to an external server over SSL-FTP. Long story short, this works on PHP 4, but not 5.</p>
  
  <pre><code>&lt;?
  $user = "USER";
  $pass = "PASS";
  
  $conn_id = ftp_ssl_connect("WEBADDRESS.com",21) or die ("could not connect");
  $login_result = ftp_login($conn_id,$user,$pass);
  ?&gt;
  </code></pre>
  
  <p>On 5 it returns: <strong>Warning: ftp_login() [function.ftp-login]: Please login with USER and PASS. in /var/www/html/test.php  on line 6
  failed to connect</strong></p>
  
  <p>I'm guessing it's because I'm doing something dumb in my PHP.ini, but I can't find anything.</p>
  
  <p>More info:</p>
  
  <p>OS: Redhat ES 5 2.6.18</p>
  
  <p>PHP 5.2.14 </p>
  
  <p>Compiled with: './configure' '--with-apxs2=/usr/sbin/apxs' '--prefix=/usr/local' '--with-config-file-path=/etc' '--enable-ftp' '--with-gd' '--with-openssl' '--with-libxml-dir' '--enable-soap' '--with-zlib' '--with-mssql=/usr/local/freetds' '--with-mysql' </p>