#21109 [Fbk->Opn]: ftp_connect throws script error and halts execution
| From: | tit dot petric at telemach dot net | Date: | Fri, 20 Dec 2002 11:51:13 +0000 |
| Subject: | #21109 [Fbk->Opn]: ftp_connect throws script error and halts execution | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28097@lists.php.net to get a copy of this message | ||
ID: 21109
User updated by: tit.petric@telemach.net
Reported By: tit.petric@telemach.net
-Status: Feedback
+Status: Open
Bug Type: FTP related
Operating System: linux debian
PHP Version: 4.2.3
New Comment:
this is a production machine so im not about to install rc's on it - as
for other computers i cant be bothered simply because i have one
deadline today and then dinner..
its all about christmas - and a merry one to you all :)
if you release 4.3 soon i'll test it on that, as far RC's go - maybe
when i get a testing box where i'm allowed to break stuff.
Previous Comments:
------------------------------------------------------------------------
[2002-12-20 05:43:33] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-12-20 05:33:55] tit.petric@telemach.net
$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 this bug report at http://bugs.php.net/?id=21109&edit=1