xref: /PHP-8.3/ext/sockets/tests/ipv6_skipif.inc (revision f8d79582)
1<?php
2if (getenv("CI_NO_IPV6") || !defined("AF_INET6")) {
3    die('skip no IPv6 support');
4}
5if (@stream_socket_client('udp://[::1]:8888') === false)
6    die('skip no IPv6 support');
7
8