]> granicus.if.org Git - php/commitdiff
Fix #72810. Add check for SKIP_ONLINE_TESTS
authorVille Hukkamäki <vhu@iki.fi>
Thu, 11 Aug 2016 09:08:04 +0000 (12:08 +0300)
committerNikita Popov <nikic@php.net>
Thu, 11 Aug 2016 10:01:24 +0000 (12:01 +0200)
NEWS
ext/sockets/tests/socket_send.phpt
ext/sockets/tests/socket_shutdown.phpt
ext/standard/tests/streams/stream_context_tcp_nodelay.phpt
ext/standard/tests/streams/stream_context_tcp_nodelay_fopen.phpt

diff --git a/NEWS b/NEWS
index 3cd83b927abd2e7e3e85c18bd55ef5971abb65d1..c4f3cdbb01d3078a580de25c3b84be30c0f042c0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -44,6 +44,7 @@ PHP                                                                        NEWS
     (vhuk)
   . Fixed bug #72764 (ftps:// opendir wrapper data channel encryption fails
     with IIS FTP 7.5, 8.5). (vhuk)
+  . Fixed bug #72810 (Missing SKIP_ONLINE_TESTS checks). (vhuk)
 
 04 Aug 2016, PHP 7.1.0beta2
 
index ceeb397979c1967bd8269545dc796998abb5b85b..4093ad47cfdfa6fd75d965d67f381796689b148d 100644 (file)
@@ -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.');
 }
index 77cbc8f32c254a7b44213c4ac1ee8b76f6c2c718..747016b795c0c4a60d992f19c40926f3ce68ef9a 100644 (file)
@@ -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.');
 }
index ca3289fbc2bee2928f23f7496e5e889c69c12313..401c65bce05e69e5f6969f206a147f8bf149efc5 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 stream context tcp_nodelay
 --SKIPIF--
-<?php if (!extension_loaded("sockets")) die("skip: need sockets") ?>
+<?php
+if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
+if (!extension_loaded("sockets")) die("skip: need sockets");
+ ?>
 --FILE--
 <?php
 $ctxt = stream_context_create([
index 08ad4c2d2e05e8ab808e6221d255c5c2f0ca4797..bf35925e4df8e94057041ac5f46628205da9a4c3 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 stream context tcp_nodelay fopen
 --SKIPIF--
-<?php if (!extension_loaded("sockets")) die("skip: need sockets") ?>
+<?php
+if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
+if (!extension_loaded("sockets")) die("skip: need sockets");
+?>
 --FILE--
 <?php
 $ctxt = stream_context_create([