com php-src: Fix overbroad skipif include: ext/sockets/tests/ip v6_skipif.inc

From: Date: Sat, 02 Feb 2013 13:06:23 +0000
Subject: com php-src: Fix overbroad skipif include: ext/sockets/tests/ip v6_skipif.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-71113@lists.php.net to get a copy of this message
Commit: a100c25ea4b5864adc5203b6b979e8912062540a Author: Gustavo Lopes <glopes@nebm.ist.utl.pt> Fri, 1 Feb 2013 11:12:11 +0100 Parents: 0cea9e6843384c6c0ebb52047c42b0431a4f5660 Branches: PHP-5.4 PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a100c25ea4b5864adc5203b6b979e8912062540a Log: Fix overbroad skipif include Changed paths: M ext/sockets/tests/ipv6_skipif.inc Diff: diff --git a/ext/sockets/tests/ipv6_skipif.inc b/ext/sockets/tests/ipv6_skipif.inc index ad8cf77..1f82463 100644 --- a/ext/sockets/tests/ipv6_skipif.inc +++ b/ext/sockets/tests/ipv6_skipif.inc @@ -2,7 +2,5 @@ if (!defined("AF_INET6")) { die('skip no IPv6 support'); } -/* If IPv6 is supported on the platform this will error out with code 111 - Connection refused. - If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error) */ -@stream_socket_client('tcp://[::1]:0', $errno); -if ($errno != 111) die('skip no IPv6 support'); +if (@stream_socket_client('udp://[::1]:8888') === false) + die('skip no IPv6 support');

« previous php.cvs (#71113) next »