summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorVille Hukkamäki <vhu@iki.fi>2016-08-11 12:08:04 +0300
committerNikita Popov <nikic@php.net>2016-08-11 12:01:24 +0200
commit283b0cc8a5eeb69b8d77195549b385d1db4f6955 (patch)
treeb124e31dde100e9d5ab27bda0c5e35c0bfa813c1 /ext/sockets
parenta53a6b3fb4060c9c71a84b0acaaa0211777f6e17 (diff)
downloadphp-git-283b0cc8a5eeb69b8d77195549b385d1db4f6955.tar.gz
Fix #72810. Add check for SKIP_ONLINE_TESTS
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/tests/socket_send.phpt1
-rw-r--r--ext/sockets/tests/socket_shutdown.phpt1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/sockets/tests/socket_send.phpt b/ext/sockets/tests/socket_send.phpt
index ceeb397979..4093ad47cf 100644
--- a/ext/sockets/tests/socket_send.phpt
+++ b/ext/sockets/tests/socket_send.phpt
@@ -4,6 +4,7 @@ int socket_send ( resource $socket , string $buf , int $len , int $flags );
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
--SKIPIF--
<?php
+if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
if (!extension_loaded('sockets')) {
die('SKIP sockets extension not available.');
}
diff --git a/ext/sockets/tests/socket_shutdown.phpt b/ext/sockets/tests/socket_shutdown.phpt
index 77cbc8f32c..747016b795 100644
--- a/ext/sockets/tests/socket_shutdown.phpt
+++ b/ext/sockets/tests/socket_shutdown.phpt
@@ -4,6 +4,7 @@ bool socket_shutdown ( resource $socket [, int $how = 2 ] ) ;
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
--SKIPIF--
<?php
+if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
if (!extension_loaded('sockets')) {
die('SKIP sockets extension not available.');
}