Bug #75856 [Opn->Nab]: IPv6 ::/128 is not recognized by INET_PTON() and INET_NTOP()
| From: | requinix@php.net | Date: | Mon, 22 Jan 2018 07:50:53 +0000 |
| Subject: | Bug #75856 [Opn->Nab]: IPv6 ::/128 is not recognized by INET_PTON() and INET_NTOP() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213657@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75856&edit=1
ID: 75856
Updated by: requinix@php.net
Reported by: alimadadi at outlook dot com
Summary: IPv6 ::/128 is not recognized by INET_PTON() and
INET_NTOP()
-Status: Open
+Status: Not a bug
Type: Bug
Package: *Network Functions
Operating System: macOS, maybe all
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
That is not an IP address. That is an IP address range in CIDR format.
Previous Comments:
------------------------------------------------------------------------
[2018-01-21 20:43:24] alimadadi at outlook dot com
Description:
------------
::/128 is a valid IPv6 address but is not recognized by INET_PTON() and INET_NTOP()
Test script:
---------------
<?php
var_dump(inet_ntop(inet_pton('::/128')));
Expected result:
----------------
IPv6 address ::/128 should be recognized by INET_PTON() and INET_NTOP()
Actual result:
--------------
ERROR:
inet_pton(): Unrecognized address ::/128
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75856&edit=1