title: ftp_connect not returning resource, nor raising an error
body: <p>I'm encountering a situation where ftp_connect() fails, returning a falsey value.  It doesn't raise an error (warning), therefore it doesn't enter the error handler.</p>
  
  <p>php doesn't give me any error information so I don't know what to do next to resolve the issue (apart from looking at the c source for ftp_connect). </p>
  
  <p>Does anybody know under what circumstances this is possible?</p>
  
  <pre><code>$this-&gt;connection = @ftp_connect($ip);
  if (!$this-&gt;connection) {
      // Execution passes to here.
  } 
  </code></pre>
  
  <p>The call doesn't timeout, it returns the falsey value immmediately.  I say falsey because although it's probably returning FALSE, my code doesn't strictly check and it could be something else (i.e. NULL).</p>
  
  <p>I cannot replicate the issue.  I know it's happening from log files, it continues to happen and it's seemingly arbitrary.</p>
  
  <p>If I try and replicate the issue by changing $ip to be incorrect it will call the error handler.  From my tests the @ doesn't stop the error handler being called, it just (temporarily?) sets error_reporting to 0.</p>