A PHP extension that provides access to getaddrinfo.
This extensions offers a Class by the name of "NetV6" with two static methods
- getHostByName($hostname, $protocol)
- getHostByNameL($hostname, $protocol)
For $protocol you may use
- NetV6::IPV4
- NetV6::IPV6
- NetV6::DUAL
On error during lookup a NetV6Exception will be thrown with Message and Code (according to getaddrinfo)
For getHostByName NetV6::DUAL will get IPv6 and if not available IPv4 (or error) For getHostByNameL NetV6::DUAL will get both IPv6 and IPv4
- refactor (!!!) So many duplicates...
- tests
Requirements: php5, php5-dev, *nix os, pear & pecl
- phpize .
- ./configure
- make
- make install
- Add extension to php