Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14314 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83786 invoked by uid 1010); 8 Jan 2005 11:41:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83755 invoked from network); 8 Jan 2005 11:41:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2005 11:41:18 -0000 X-Host-Fingerprint: 212.204.192.51 jdi.jdimedia.nl Linux 2.4/2.6 Received: from ([212.204.192.51:44721] helo=jdi.jdimedia.nl) by pb1.pair.com (ecelerity HEAD (r4059)) with SMTP id 85/B7-47049-6C6CFD14 for ; Sat, 08 Jan 2005 06:40:54 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j08BeotZ025656 for ; Sat, 8 Jan 2005 12:40:50 +0100 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j08Bei6k025631; Sat, 8 Jan 2005 12:40:44 +0100 Date: Sat, 8 Jan 2005 12:40:42 +0100 (CET) X-X-Sender: derick@localhost To: =?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?= cc: internals@lists.php.net In-Reply-To: <30bd80240501072145750bf8d8@mail.gmail.com> Message-ID: References: <30bd80240501072145750bf8d8@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] [PATCH] Resend with modifications: inet_getaddrfam() From: derick@php.net (Derick Rethans) On Sat, 8 Jan 2005, [ISO-8859-1] Nicolas B=E9rard Nault wrote: > 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 ;-). Please provide a link to your patch, the MLM only wants text/plain attachments and it strips others. Derick --=20 Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org