From: [EMAIL PROTECTED] Operating system: linux debian PHP version: 4.2.3 PHP Bug Type: FTP related Bug description: ftp_connect throws script error and halts execution
$this->_connection = ftp_connect($host); if (!$this->_connection) { trigger_error('FTP Connection to '.$host.' failed.',E_USER_ERROR); } $this->_login = ftp_login($this->_connection,$user,$pass); if (!$this->_login) { trigger_error('FTP Login to '.$user.'@'.$host.' failed.',E_USER_ERROR); } $this->_passive = ftp_pasv($this->_connection,$passive); $this->_systype = ftp_systype($this->_connection); - this is the code for my connect function inside a ftp class, and it should be valid according to documentation provided, and i really cant complain i have everything routed trough error handlers, but every once in a while i get a scripting error (ughm, i dont know if that is the correct term) which basially halts the script and doesnt go trough error handlers the error message displayed is: "connect: Connection timed out" this could/should be changed to E_WARNING or E_NOTICE from this critical error kinda thing. -- Edit bug report at http://bugs.php.net/?id=21109&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21109&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21109&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21109&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21109&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21109&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21109&r=support Expected behavior: http://bugs.php.net/fix.php?id=21109&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21109&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21109&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21109&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21109&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21109&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21109&r=isapi