summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2015-01-09 17:24:48 -0800
committerFerenc Kovacs <tyra3l@gmail.com>2017-10-25 02:21:16 +0200
commitad7ed6fe211af3f6711f52100a026175c86c621b (patch)
tree1fe12727084e8b16dbcad0ab83ceacc14ad81d3c
parent787e3a1ee43ba3dd46bc42848f0918be631acb0b (diff)
downloadphp-git-ad7ed6fe211af3f6711f52100a026175c86c621b.tar.gz
These tests all assume that IPV6 is available.
-rw-r--r--sapi/fpm/tests/003.phpt5
-rw-r--r--sapi/fpm/tests/004.phpt5
-rw-r--r--sapi/fpm/tests/005.phpt5
-rw-r--r--sapi/fpm/tests/006.phpt5
-rw-r--r--sapi/fpm/tests/007.phpt5
5 files changed, 20 insertions, 5 deletions
diff --git a/sapi/fpm/tests/003.phpt b/sapi/fpm/tests/003.phpt
index f928626ecc..a4c04ae9ce 100644
--- a/sapi/fpm/tests/003.phpt
+++ b/sapi/fpm/tests/003.phpt
@@ -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
diff --git a/sapi/fpm/tests/004.phpt b/sapi/fpm/tests/004.phpt
index 2a4d666c64..565819aed4 100644
--- a/sapi/fpm/tests/004.phpt
+++ b/sapi/fpm/tests/004.phpt
@@ -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
diff --git a/sapi/fpm/tests/005.phpt b/sapi/fpm/tests/005.phpt
index c565c2a9eb..6c8210ec8e 100644
--- a/sapi/fpm/tests/005.phpt
+++ b/sapi/fpm/tests/005.phpt
@@ -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
diff --git a/sapi/fpm/tests/006.phpt b/sapi/fpm/tests/006.phpt
index a12ca253d2..e552087335 100644
--- a/sapi/fpm/tests/006.phpt
+++ b/sapi/fpm/tests/006.phpt
@@ -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
diff --git a/sapi/fpm/tests/007.phpt b/sapi/fpm/tests/007.phpt
index 0d817907cf..6329af209a 100644
--- a/sapi/fpm/tests/007.phpt
+++ b/sapi/fpm/tests/007.phpt
@@ -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