Bug #52395 [Fbk->NoF]: ftp_connect only uses DNS hostnames

From: Date: Sun, 28 Feb 2021 04:22:08 +0000
Subject: Bug #52395 [Fbk->NoF]: ftp_connect only uses DNS hostnames
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232425@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52395&edit=1

 ID:               52395
 Updated by:       php-bugs@lists.php.net
 Reported by:      john-ubuntu at cornerstonelinux dot co dot uk
 Summary:          ftp_connect only uses DNS hostnames
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          FTP related
 Operating System: Ubuntu 10.04
 PHP Version:      5.3.2
 Assigned To:      cmb
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2021-02-19 16:06:14] cmb@php.net

Is this still unresolved for any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>

------------------------------------------------------------------------
[2010-09-23 00:13:11] emperorshishire at gmail dot com

I just recently ran into this problem.  I'm using proftpd as an ftpd.  Proftpd was initially
configured to run from inetd, but I reconfigured it to run standalone.  The difference was that when
configured to run from inetd, it was running only on ipv4, and when reconfigured to run standalone,
it runs on both ipv4 and ipv6.  Something is definately going on with ipv4/6 resolution here.

------------------------------------------------------------------------
[2010-07-22 14:36:59] john-ubuntu at cornerstonelinux dot co dot uk

Setting status back to "Open" as feedback provided.

------------------------------------------------------------------------
[2010-07-21 22:53:56] john-ubuntu at cornerstonelinux dot co dot uk

The FTP server is running only on the IPv4 localhost:
--------
$ sudo netstat -vnutlp | grep ftpd
tcp        0      0 127.0.0.1:21            0.0.0.0:*               LISTEN      604/vsftpd      
--------

mgdm@php.net, you suggest that PHP is only resolving IPv6 addresses.
How can I find out if that is the case, and how can I change that?

Also why would this only effect the FTP functions and not effect the
IMAP and SMTP functions?

Could you also run 'host -v localhost' and compare the output to my
example above to confirm that the system you are using does not have
a DNS server that resolves "localhost" (because most do).

------------------------------------------------------------------------
[2010-07-21 22:43:09] mgdm@php.net

I just tried that using Ubuntu's PHP on 10.04, and it doesn't have that problem. Neither
does a plain PHP. Are you sure it's not something local to your setup (like the FTP server
listening on a v4 address and PHP resolving localhost to v6?)

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=52395


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


Thread (9 messages)

« previous php.bugs (#232425) next »