Doc #63711 [NEW]: inet_pton not working with IPv6 on Windows
| From: | Pavel dot Srubar at gmail dot com | Date: | Thu, 06 Dec 2012 14:43:23 +0000 |
| Subject: | Doc #63711 [NEW]: inet_pton not working with IPv6 on Windows | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9270@lists.php.net to get a copy of this message | ||
From: Pavel dot Srubar at gmail dot com
Operating system: MS Windows XP SP3
PHP version: 5.4.9
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:inet_pton not working with IPv6 on Windows
Description:
------------
---
From manual page:
http://www.php.net/function.inet-pton#refsect1-function.inet-
pton-changelog
---
Changelog of inet_pton() says
"5.3.0 This function is now available on Windows platforms."
and install requirements at
http://php.net/manual/en/network.installation.php
"There is no installation needed to use these functions; they are part of
the PHP
core."
however the function does not recognize IPv6 addresses on my Windows XP
SP3.
Test script:
---------------
<?php echo phpversion(); if (defined('AF_INET6')) echo "\r\nAF_INET6
defined. ";
echo "\r\n".inet_ntop(inet_pton('127.0.0.1'));
echo "\r\n".inet_ntop(inet_pton('::1'));
?>
Expected result:
----------------
5.4.0
AF_INET6 defined.
127.0.0.1
::1
Actual result:
--------------
5.4.0
AF_INET6 defined.
127.0.0.1
Warning: inet_pton(): Unrecognized address ::1
--
Edit bug report at https://bugs.php.net/bug.php?id=63711&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63711&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63711&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63711&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63711&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63711&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63711&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63711&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63711&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63711&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63711&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63711&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63711&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63711&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63711&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63711&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63711&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63711&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63711&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63711&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63711&r=mysqlcfg