Skip to content

Commit dc01fce

Browse files
committed
Fix GH-8396: Network online test using https broken
1 parent e5ab9f4 commit dc01fce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/standard/tests/network/bug80067.phpt

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ if (!in_array('https', stream_get_wrappers())) die('skip: https wrapper is requi
77
?>
88
--FILE--
99
<?php
10-
$context = stream_context_create(['socket' => ['bindto' => '0']]);
10+
$context = stream_context_create([
11+
'socket' => ['bindto' => '0'],
12+
'ssl' => ['verify_peer' => false]
13+
]);
1114
var_dump(file_get_contents('https://httpbin.org/get', false, $context) !== false);
1215
?>
1316
--EXPECT--

0 commit comments

Comments
 (0)