Bug #47437 [Bgs]: fsockopen doesn't work with DNS names, only IPs

From: Date: Tue, 07 Sep 2010 09:19:20 +0000
Subject: Bug #47437 [Bgs]: fsockopen doesn't work with DNS names, only IPs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-154140@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=47437&edit=1

 ID:                 47437
 Updated by:         pajoye@php.net
 Reported by:        ogi at triangle dot bg
 Summary:            fsockopen doesn't work with DNS names, only IPs
 Status:             Bogus
 Type:               Bug
 Package:            Sockets related
 Operating System:   Windows XP Pro SP3
 PHP Version:        5.2.9RC2
 Assigned To:        pajoye
 Block user comment: N

 New Comment:

Fix and discussions will go now into the bug #50963.


Previous Comments:
------------------------------------------------------------------------
[2009-02-18 17:16:18] pajoye@php.net

no php bug, it tries to contact localhost which was certainly updated to
IPv6 ::1, or the server was using IPv6 and not ipv4. In both cases it is
not a bug. (bogus)

------------------------------------------------------------------------
[2009-02-18 17:12:17] ogi at triangle dot bg

Bingo! After uninstalling IPv6 everything works as expected.

I remember that I installed IPv6 for XP and after that I didn't used
Drupal. Today I updated Drupal and fell into this problem.

I don't know if this is PHP problem or some underlining library (XP
bug?).

------------------------------------------------------------------------
[2009-02-18 17:11:28] pajoye@php.net

what's about IPv6?

------------------------------------------------------------------------
[2009-02-18 17:05:52] ogi at triangle dot bg

C:\WINDOWS\system32\drivers\etc\hosts contains

127.0.0.1       localhost

and other entries are irrelevant to this case.

This happened after some Drupal updates but I can't see how this can
influence PHP itself - the above PHP example is isolated from Drupal
framework.

------------------------------------------------------------------------
[2009-02-18 17:03:53] pajoye@php.net

Can you check that you do not have IPv6 enabled (it is not in xp Pro
afaict)? I think it is enabled and your host file should have a line
like:

::1 locahost ..other hosts...

comment it out and be sure that the ipv4 127.0.0.1 aliases are in place.

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


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

    http://bugs.php.net/bug.php?id=47437


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


Thread (11 messages)

« previous php.bugs (#154140) next »