]> granicus.if.org Git - php/commitdiff
These tests all assume that IPV6 is available.
authorRasmus Lerdorf <rasmus@php.net>
Sat, 10 Jan 2015 01:24:48 +0000 (17:24 -0800)
committerFerenc Kovacs <tyra3l@gmail.com>
Wed, 25 Oct 2017 00:21:16 +0000 (02:21 +0200)
sapi/fpm/tests/003.phpt
sapi/fpm/tests/004.phpt
sapi/fpm/tests/005.phpt
sapi/fpm/tests/006.phpt
sapi/fpm/tests/007.phpt

index f928626eccfa5e178f3a4023d7961e1c91a6c4e0..a4c04ae9ce97149e23c82eb1b78e4cf41df02178 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 FPM: Test IPv6 support
 --SKIPIF--
-<?php include "skipif.inc"; ?>
+<?php include "skipif.inc";
+      @stream_socket_client('tcp://[::1]:0', $errno);
+      if ($errno != 111) die('skip IPv6 not supported.');
+?>
 --FILE--
 <?php
 
index 2a4d666c64fb18c5cc34c0d342e216bb30224177..565819aed42c3cfe418d3ec80270d91e60940390 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 FPM: Test IPv4/IPv6 support
 --SKIPIF--
-<?php include "skipif.inc"; ?>
+<?php include "skipif.inc";
+      @stream_socket_client('tcp://[::1]:0', $errno);
+      if ($errno != 111) die('skip IPv6 not supported.');
+?>
 --FILE--
 <?php
 
index c565c2a9ebd7a22609f592180d26f17f328e3460..6c8210ec8e7268553980a511fae6973f4ef2b732 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 FPM: Test IPv4 allowed clients
 --SKIPIF--
-<?php include "skipif.inc"; ?>
+<?php include "skipif.inc";
+      @stream_socket_client('tcp://[::1]:0', $errno);
+      if ($errno != 111) die('skip IPv6 not supported.');
+?>
 --FILE--
 <?php
 
index a12ca253d210351ec20517e14dd287464ff0b2a0..e5520873359d9a0e42eb695c60832b5a58084be4 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 FPM: Test IPv6 allowed clients (bug #68428)
 --SKIPIF--
-<?php include "skipif.inc"; ?>
+<?php include "skipif.inc";
+      @stream_socket_client('tcp://[::1]:0', $errno);
+      if ($errno != 111) die('skip IPv6 not supported.');
+?>
 --FILE--
 <?php
 
index 0d817907cf06aef9b7d650a9c6ab0c0ef23e0d98..6329af209adfbf5c2a0cc0914d6009719a930486 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 FPM: Test IPv6 all addresses and access_log (bug #68421)
 --SKIPIF--
-<?php include "skipif.inc"; ?>
+<?php include "skipif.inc";
+      @stream_socket_client('tcp://[::1]:0', $errno);
+      if ($errno != 111) die('skip IPv6 not supported.');
+?>
 --FILE--
 <?php