ID: 48805 User updated by: carsten_sttgt at gmx dot de Reported By: carsten_sttgt at gmx dot de -Status: Feedback +Status: Open Bug Type: Streams related Operating System: * PHP Version: 5.*, 6CVS (2009-07-06) New Comment:
An example may be: ipv6.google.com or ipv6.beijing2008.cn (our in-house company servers are not accessible by the outside world) But don't you think it's easier to test this with a local webserver like Apache? BTW: It doesn't matter if this is an IPv6 only or a dual stack server. Connections with the IPv6 address doesn't work. That's the point. Previous Comments: ------------------------------------------------------------------------ [2009-07-06 12:43:35] j...@php.net Can you provide an url to an ipv6 only server? ------------------------------------------------------------------------ [2009-07-05 18:17:14] carsten_sttgt at gmx dot de Also not working on Linux. ------------------------------------------------------------------------ [2009-07-05 18:12:57] carsten_sttgt at gmx dot de Same problem on OS X. ------------------------------------------------------------------------ [2009-07-05 16:45:06] carsten_sttgt at gmx dot de It's also not working with the latest snapshot. (Version: 5.3.1-dev; Sun, 05 Jul 2009 16:08:49 +0000) ------------------------------------------------------------------------ [2009-07-05 16:13:08] carsten_sttgt at gmx dot de Description: ------------ Hallo, IPv6 socket transport is not working in Windows. PHP is build with "--enable-ipv6" and you can see this in phpinfo() to: | IPv6 Support enabled After a short check, this bug was introduced in 5.2.10. With 5.2.9 this is working perfect. (That's really a pain, if you must access a IPv6 only server...) Regards, Carsten Reproduce code: --------------- <?php var_dump(file_get_contents('http://[::1]/')); ?> Expected result: ---------------- A string with the content of the webpage. Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48805&edit=1