[PATCH] Resend with modifications: inet_getaddrfam()

php.internals

Nicolas Bérard Nault

21 years ago
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.

Derick Rethans

21 years ago
On Sat, 8 Jan 2005, [ISO-8859-1] Nicolas B?rard 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
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org