diff options
-rw-r--r-- | sapi/fpm/tests/003.phpt | 5 | ||||
-rw-r--r-- | sapi/fpm/tests/004.phpt | 5 | ||||
-rw-r--r-- | sapi/fpm/tests/005.phpt | 5 | ||||
-rw-r--r-- | sapi/fpm/tests/006.phpt | 5 | ||||
-rw-r--r-- | sapi/fpm/tests/007.phpt | 5 |
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 |