Fix GH-8396: Network online test using https broken

This commit is contained in:
Jakub Zelenka 2022-08-02 18:50:42 +01:00
parent e5ab9f45d5
commit dc01fce36d

View File

@ -7,7 +7,10 @@ if (!in_array('https', stream_get_wrappers())) die('skip: https wrapper is requi
?>
--FILE--
<?php
$context = stream_context_create(['socket' => ['bindto' => '0']]);
$context = stream_context_create([
'socket' => ['bindto' => '0'],
'ssl' => ['verify_peer' => false]
]);
var_dump(file_get_contents('https://httpbin.org/get', false, $context) !== false);
?>
--EXPECT--