lbarnaud                Wed May 20 09:13:08 2009 UTC

  Added files:                 
    /php-src/ext/sockets/tests  ipv6_skipif.inc 

  Modified files:              
    /php-src/ext/sockets/tests  ipv6loop.phpt 
                                socket_sentto_recvfrom_ipv6_udp.phpt 
  Log:
  Fix skipif
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sockets/tests/ipv6loop.phpt?r1=1.4&r2=1.5&diff_format=u
Index: php-src/ext/sockets/tests/ipv6loop.phpt
diff -u php-src/ext/sockets/tests/ipv6loop.phpt:1.4 
php-src/ext/sockets/tests/ipv6loop.phpt:1.5
--- php-src/ext/sockets/tests/ipv6loop.phpt:1.4 Wed Jul 16 14:08:04 2008
+++ php-src/ext/sockets/tests/ipv6loop.phpt     Wed May 20 09:13:08 2009
@@ -5,9 +5,7 @@
        if (!extension_loaded('sockets')) {
                die('skip sockets extension not available.');
        }
-       if (!defined("AF_INET6")) {
-               die('skip no IPv6 support');
-       }
+       require 'ipv6_skipif.inc';
 ?>
 --FILE--
 <?php
http://cvs.php.net/viewvc.cgi/php-src/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt
diff -u php-src/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt:1.1 
php-src/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt:1.2
--- php-src/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt:1.1  Sun May 
17 18:07:36 2009
+++ php-src/ext/sockets/tests/socket_sentto_recvfrom_ipv6_udp.phpt      Wed May 
20 09:13:08 2009
@@ -5,6 +5,7 @@
 if (!extension_loaded('sockets')) {
     die('SKIP The sockets extension is not loaded.');
 }
+require 'ipv6_skipif.inc';
 --FILE--
 <?php
     $socket = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP);

http://cvs.php.net/viewvc.cgi/php-src/ext/sockets/tests/ipv6_skipif.inc?view=markup&rev=1.1
Index: php-src/ext/sockets/tests/ipv6_skipif.inc
+++ php-src/ext/sockets/tests/ipv6_skipif.inc
<?php
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');



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to