com php-src: These tests all assume that IPV6 is available.: 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
| From: | Rasmus Lerdorf | Date: | Sat, 10 Jan 2015 01:24:48 +0000 |
| Subject: | com php-src: These tests all assume that IPV6 is available.: 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 |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84054@lists.php.net to get a copy of this message | ||
Commit: 50c721a62338e4cfc0a4c3a5551d87569f800433
Author: Rasmus Lerdorf <rasmus@php.net> Fri, 9 Jan 2015 17:24:48 -0800
Parents: 16d779a83369f001680ac35a8e24d136c2d1b75a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=50c721a62338e4cfc0a4c3a5551d87569f800433
Log:
These tests all assume that IPV6 is available.
Changed paths:
M sapi/fpm/tests/003.phpt
M sapi/fpm/tests/004.phpt
M sapi/fpm/tests/005.phpt
M sapi/fpm/tests/006.phpt
M sapi/fpm/tests/007.phpt
Diff:
diff --git a/sapi/fpm/tests/003.phpt b/sapi/fpm/tests/003.phpt
index f928626..a4c04ae 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 2a4d666..565819a 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 c565c2a..6c8210e 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 a12ca25..e552087 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 0d81790..6329af2 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