|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75856 IPv6 ::/128 is not recognized by INET_PTON() and INET_NTOP()
Submitted: 2018-01-21 20:43 UTC Modified: 2018-01-22 07:50 UTC
From: alimadadi at outlook dot com Assigned:
Status: Not a bug Package: *Network Functions
PHP Version: Irrelevant OS: macOS, maybe all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
27 - 11 = ?
Subscribe to this entry?

 [2018-01-21 20:43 UTC] alimadadi at outlook dot com
::/128 is a valid IPv6 address but is not recognized by INET_PTON() and INET_NTOP()

Test script:


Expected result:
IPv6 address ::/128 should be recognized by INET_PTON() and INET_NTOP()

Actual result:
inet_pton(): Unrecognized address ::/128


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-22 07:50 UTC]
-Status: Open +Status: Not a bug
 [2018-01-22 07:50 UTC]
That is not an IP address. That is an IP address range in CIDR format.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jul 27 14:01:25 2021 UTC