Skip to content

Commit 6e3d19b

Browse files
committed
skip new test when offline
1 parent 717b75c commit 6e3d19b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/standard/tests/http/gh16810.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Bug #79265 variation: "host:" not at start of header
33
--INI--
44
allow_url_fopen=1
55
--SKIPIF--
6-
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
6+
<?php
7+
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
8+
if (getenv("SKIP_ONLINE_TESTS")) die("skip test requiring internet connection");
9+
?>
710
--FILE--
811
<?php
912
$uri = "http://www.example.com";

0 commit comments

Comments
 (0)