Req #72733 [Com]: It would be nice to have something like getaddrinfo.

From: Date: Wed, 03 Aug 2016 23:06:41 +0000
Subject: Req #72733 [Com]: It would be nice to have something like getaddrinfo.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202898@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72733&edit=1

 ID:                 72733
 Comment by:         dave at mudsite dot com
 Reported by:        email at davekok dot nl
 Summary:            It would be nice to have something like getaddrinfo.
 Status:             Open
 Type:               Feature/Change Request
 Package:            Sockets related
 Operating System:   Any
 PHP Version:        7.0.9
 Block user comment: N
 Private report:     N

 New Comment:

I'm not certain I'm following what is hard about supporting both.  socket_create()'s
first argument allows you to choose to have this socket be an AF_INET or AF_INET6.  Unless
you're attempting to pull information about a host wherein you can get all addresses about a
host for a specific purpose a-la: http://www.logix.cz/michal/devel/various/getaddrinfo.c.xp


Previous Comments:
------------------------------------------------------------------------
[2016-08-02 13:28:56] email at davekok dot nl

Description:
------------
Currently it is rather hard to support both IPv4 and IPv6 in PHP when using sockets. It would be
rather nice if getaddrinfo system function would be available to PHP scripts. If have yet to find a
alternative for PHP that works just as clean.



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



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


Thread (14 messages)

« previous php.bugs (#202898) next »