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.
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