Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66830 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65410 invoked from network); 27 Mar 2013 12:45:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2013 12:45:14 -0000 Received: from [127.0.0.1] ([127.0.0.1:1065]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 0A/D5-30100-AD9E2515 for ; Wed, 27 Mar 2013 07:45:14 -0500 Authentication-Results: pb1.pair.com smtp.mail=sam@mujo.be; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=sam@mujo.be; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mujo.be designates 91.212.186.24 as permitted sender) X-PHP-List-Original-Sender: sam@mujo.be X-Host-Fingerprint: 91.212.186.24 zimbra.mujo.be Linux 2.6 Received: from [91.212.186.24] ([91.212.186.24:45125] helo=zimbra.mujo.be) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/85-30100-2A8E2515 for ; Wed, 27 Mar 2013 07:40:03 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.mujo.be (Postfix) with ESMTP id C6F242000C for ; Wed, 27 Mar 2013 13:39:58 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.mujo.be Received: from zimbra.mujo.be ([127.0.0.1]) by localhost (zimbra.mujo.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XnCJaNiEHx93 for ; Wed, 27 Mar 2013 13:39:57 +0100 (CET) Received: from [192.168.69.43] (94-225-34-82.access.telenet.be [94.225.34.82]) by zimbra.mujo.be (Postfix) with ESMTPSA id C575F148034 for ; Wed, 27 Mar 2013 13:39:57 +0100 (CET) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <7D873005-C72C-4BEB-BED2-46BF716F40BD@mujo.be> Date: Wed, 27 Mar 2013 13:39:58 +0100 To: internals@lists.php.net Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) Subject: RFC ? gethostbyname - getnameinfo() From: sam@mujo.be (Sam Hermans) Hi, The rcf howto pushed me into mailing you guys to measure reaction.=20 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