Bug #75856 [NEW]: IPv6 ::/128 is not recognized by INET_PTON() and INET_NTOP()

From: Date: Sun, 21 Jan 2018 20:43:25 +0000
Subject: Bug #75856 [NEW]: IPv6 ::/128 is not recognized by INET_PTON() and INET_NTOP()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213648@lists.php.net to get a copy of this message
From: alimadadi at outlook dot com Operating system: macOS, maybe all PHP version: Irrelevant Package: *Network Functions Bug Type: Bug Bug description:IPv6 ::/128 is not recognized by INET_PTON() and INET_NTOP() 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 bug report at https://bugs.php.net/bug.php?id=75856&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75856&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75856&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75856&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75856&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75856&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75856&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75856&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75856&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75856&r=support Expected behavior: https://bugs.php.net/fix.php?id=75856&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75856&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75856&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75856&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75856&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75856&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75856&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75856&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75856&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75856&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75856&r=mysqlcfg

« previous php.bugs (#213648) next »