mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fix GH-8396: Network online test using https broken
This commit is contained in:
parent
e5ab9f45d5
commit
dc01fce36d
@ -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--
|
||||
|
Loading…
Reference in New Issue
Block a user