#43955 [NEW]: FTP Connection Error NumBer Returned

From: Date: Mon, 28 Jan 2008 17:14:22 +0000
Subject: #43955 [NEW]: FTP Connection Error NumBer Returned
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121608@lists.php.net to get a copy of this message
From: aparker at hubtack dot com Operating system: Windows PHP version: 5.2.5 PHP Bug Type: Feature/Change Request Bug description: FTP Connection Error NumBer Returned Description: ------------ Currnetly ftp_connect takes three parameters host, port and timeout and returns either a valid connection or false. It would be nice if it had a fourth parameter for connection error numbers so that we could take the appropriate action or at least tell the user what's wrong. for example: if(!$conn_id = ftp($host, $port, $timeout, $error)) { if ($error == 123) { echo "appropriate error message"; } } -- Edit bug report at http://bugs.php.net/?id=43955&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43955&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43955&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43955&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43955&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43955&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43955&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43955&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43955&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43955&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43955&r=support Expected behavior: http://bugs.php.net/fix.php?id=43955&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43955&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43955&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43955&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43955&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43955&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43955&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43955&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43955&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43955&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43955&r=mysqlcfg

« previous php.bugs (#121608) next »