|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43955 FTP Connection Error NumBer Returned
Submitted: 2008-01-28 17:14 UTC Modified: 2021-03-03 12:29 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: aparker at hubtack dot com Assigned:
Status: Open Package: FTP related
PHP Version: 5.2.5 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
46 - 3 = ?
Subscribe to this entry?

 [2008-01-28 17:14 UTC] aparker at hubtack dot com
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"; }


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-03 12:29 UTC]
-Package: Feature/Change Request +Package: FTP related
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 14:01:32 2024 UTC