RFC ? gethostbyname - getnameinfo()
| From: | Sam Hermans | Date: | Wed, 27 Mar 2013 12:39:58 +0000 |
| Subject: | RFC ? gethostbyname - getnameinfo() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-66830@lists.php.net to get a copy of this message | ||
Hi,
The rcf howto pushed me into mailing you guys to measure reaction.
For a project i am working on i struggle a lot with the fact that
$_SERVER['REMOTE_ADDRESS'] return policy is to prefer IPv6 over IPv4, and that
gethostbyname prefers IPv4. It seems that the gethostbyname
function as used in php is deprecated, and that getnameinfo should be used.
I think that in an age where we are finally getting the support of the *big* boys to start using
IPv6 that php should be there and ready for them.
I have never contributed to php core before, but i'm more than happy to take the lead on this
one.
Please let me know what you guys think, and thank you for your time.
Kind regards,
Sam Hermans