Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10536 invoked by uid 1010); 8 Jan 2005 05:45:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10517 invoked from network); 8 Jan 2005 05:45:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2005 05:45:39 -0000 X-Host-Fingerprint: 64.233.184.197 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.197:58245] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD (r4059)) with SMTP id 18/1D-47049-2837FD14 for ; Sat, 08 Jan 2005 00:45:39 -0500 Received: by wproxy.gmail.com with SMTP id 36so510689wri for ; Fri, 07 Jan 2005 21:45:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=KnCqv57Ffb0Fg1vkT5WV37mDAahf/Owq98FmbByW0iJ169Of8Y5IyoEdkC2yhIpXExWdbhkUaNRx6+/KhQlUR2touBMDn7Tajn+XPI/mGGGsf/HD1bY2OXD2pM67gIGLzjAu0dFG8ZAvtBy1A5fzcy6cNeBLXO5eRlogo0YIVIU= Received: by 10.54.17.29 with SMTP id 29mr250478wrq; Fri, 07 Jan 2005 21:45:35 -0800 (PST) Received: by 10.54.59.35 with HTTP; Fri, 7 Jan 2005 21:45:35 -0800 (PST) Message-ID: <30bd80240501072145750bf8d8@mail.gmail.com> Date: Sat, 8 Jan 2005 00:45:35 -0500 Reply-To: =?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?= To: internals@lists.php.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_49_11157367.1105163135813" Subject: [PATCH] Resend with modifications: inet_getaddrfam() From: nicobn@gmail.com (=?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?=) ------=_Part_49_11157367.1105163135813 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, This patch adds a function for getting the family of the address in $Address. If $Address is not of any family, false is returned. I, myself, need this function to verify that an ip provided by an user is a real ip. Then, to use this address with, in exemple, socket_create() and later bind it, I need to know the address family of the address so it is very useful. Please comment my patch and, if there are no objections, commit it ;-). Thank you for your time, Nic. ------=_Part_49_11157367.1105163135813--