php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66581 ftp_connect fails if first connect of multiple addresses fails
Submitted: 2014-01-26 17:10 UTC Modified: 2014-02-02 02:46 UTC
From: jik at kamens dot us Assigned: krakjoe (profile)
Status: Closed Package: FTP related
PHP Version: Irrelevant OS: CentOS 6.5
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: jik at kamens dot us
New email:
PHP Version: OS:

 

 [2014-01-26 17:10 UTC] jik at kamens dot us
Description:
------------
I have PHP 5.3.3. It's the latest version available in CentOS 6.5 and I'm not comfortable going to non-standard RPMs, so that's why I haven't upgraded. It's really rude for your bug form not to accept a PHP version that is so widely used by so many people.

If ftp_connect gets back multiple addresses when it resolves the host name, and connecting to the first address fails, ftp_connect fails. It should try all the addresses.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-01 09:54 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2014-02-01 09:54 UTC] krakjoe@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

5.3 is unsupported, it gets security fixes _only_.

We cannot stop you using ancient versions of PHP, but we _must_ stop supporting them.

Upgrade your PHP to a stable, supported version, test for the bug again and report the bug if it still exists. 

Nobody is going to look at unsupported, outdated software just because you have the nerve to call strangers who dedicate some of their spare time to helping other strangers rude.
 [2014-02-02 02:46 UTC] jik at kamens dot us
You're right. I'm sorry.

It took me all of four minutes to determine by browsing the source code on Github that the bug has already been fixed. I obviously should have done that before filing a bug report.

In my (feeble) defense, I was coming off of an hour of troubleshooting the issue which caused me to file this bug report, exacerbated by the longstanding, legendarily bad error logging and reporting in WordPress (ftp_connect was returning a meaningful error to WordPress, and WordPress was simply throwing it away, many levels deep in their code, and neither logging nor displaying it). So I was out of patience and ready to gripe at someone. PHP obviously was not the right choice.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC