Bug #66581 [Csd]: ftp_connect fails if first connect of multiple addresses fails

From: Date: Sun, 02 Feb 2014 02:46:39 +0000
Subject: Bug #66581 [Csd]: ftp_connect fails if first connect of multiple addresses fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184117@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66581&edit=1

 ID:                 66581
 User updated by:    jik at kamens dot us
 Reported by:        jik at kamens dot us
 Summary:            ftp_connect fails if first connect of multiple
                     addresses fails
 Status:             Closed
 Type:               Bug
 Package:            FTP related
 Operating System:   CentOS 6.5
 PHP Version:        Irrelevant
 Assigned To:        krakjoe
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2014-02-01 09:54:36] 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-01-26 17:10:39] 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.




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=66581&edit=1


Thread (3 messages)

« previous php.bugs (#184117) next »