Doc #63711 [Opn->Nab]: inet_pton not working with IPv6 on Windows

From: Date: Wed, 23 Jan 2013 15:17:33 +0000
Subject: Doc #63711 [Opn->Nab]: inet_pton not working with IPv6 on Windows
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9460@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63711&edit=1 ID: 63711 Updated by: googleguy@php.net Reported by: Pavel dot Srubar at gmail dot com Summary: inet_pton not working with IPv6 on Windows -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: MS Windows XP SP3 PHP Version: 5.4.9 Block user comment: N Private report: N New Comment: This works fine for me on Windows 7 using PHP 5.3 built with IPv6 Support. Check your phpinfo() to confirm that your PHP was built with IPv6 support. If it does not work as expected please open a code bug for this function. There is no documentation bug here. Previous Comments: ------------------------------------------------------------------------ [2012-12-06 14:43:23] Pavel dot Srubar at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=63711&edit=1

« previous php.doc.bugs (#9460) next »