diff options
Diffstat (limited to 'ext/standard/tests/network/udp6loop.phpt')
-rw-r--r-- | ext/standard/tests/network/udp6loop.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/standard/tests/network/udp6loop.phpt b/ext/standard/tests/network/udp6loop.phpt index 533d9afb2a..5426d8b7e5 100644 --- a/ext/standard/tests/network/udp6loop.phpt +++ b/ext/standard/tests/network/udp6loop.phpt @@ -2,19 +2,19 @@ Streams Based IPv6 UDP Loopback test --SKIPIF-- <?php - /* If IPv6 is supported on the platform this will error out with code 111 - - * Connection refused (or code 10049 on Windows). If IPv6 is NOT supported, $errno will be set to - * something else (indicating parse/getaddrinfo error) - * Note: Might be a good idea to export an IPv6 support indicator - * (such as AF_INET6 exported by ext/sockets), however, since we - * cannot tell for sure if IPv6 works until we probe it at run time, - * this isn't really practical. - */ + /* If IPv6 is supported on the platform this will error out with code 111 - + * Connection refused (or code 10049 on Windows). If IPv6 is NOT supported, $errno will be set to + * something else (indicating parse/getaddrinfo error) + * Note: Might be a good idea to export an IPv6 support indicator + * (such as AF_INET6 exported by ext/sockets), however, since we + * cannot tell for sure if IPv6 works until we probe it at run time, + * this isn't really practical. + */ - @stream_socket_client('tcp://[::1]:0', $errno); - if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) { - die('skip IPv6 is not supported.'); - } + @stream_socket_client('tcp://[::1]:0', $errno); + if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) { + die('skip IPv6 is not supported.'); + } ?> --FILE-- <?php |