From: gem at rellim dot com
Operating system: any
PHP version: 5.5.14
Package: *Network Functions
Bug Type: Feature/Change Request
Bug description:ip2long(), or a successor needs to support IPv6
Description:
------------
Currently ip2long() on works on some IP addresses: IPv4 addresses, not
IPv6 addresses.
I would like it, or an ip2long-ng(), to also support IPv6 addresses.
Test script:
---------------
<?php
print_r( ip2long( '2607:400:0:1f3::1:6'));
Expected result:
----------------
The results should be something like:
0x26070400000001f30000000000010006
Actual result:
--------------
FALSE, since it is invalid IPv4 address, but is a valid IP address
--
Edit bug report at https://bugs.php.net/bug.php?id=67601&edit=1
--