php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21109 ftp_connect throws script error and halts execution
Submitted: 2002-12-20 05:33 UTC Modified: 2003-02-25 01:56 UTC
From: tit dot petric at telemach dot net Assigned:
Status: Closed Package: FTP related
PHP Version: 4.2.3 OS: linux debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tit dot petric at telemach dot net
New email:
PHP Version: OS:

 

 [2002-12-20 05:33 UTC] tit dot petric at telemach dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-20 05:43 UTC] 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:51 UTC] tit dot petric at telemach dot net
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.
 [2002-12-20 05:54 UTC] derick@php.net
Setting it to suspended then until you provide feedback.

Derick
 [2002-12-31 05:08 UTC] derick@php.net
dup of #21309
 [2003-02-25 01:56 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC