Skip to content

Commit 82c7536

Browse files
authored
Update BuildBinCommand.php
1 parent 6ede3df commit 82c7536

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Commands/BuildBinCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6060
$domain = 'download.workerman.net';
6161
$output->writeln("\r\nDownloading PHP$version ...");
6262
if (extension_loaded('openssl')) {
63-
$client = stream_socket_client("ssl://$domain:443");
63+
$context = stream_context_create([
64+
'ssl' => [
65+
'verify_peer' => false,
66+
'verify_peer_name' => false,
67+
]
68+
]);
69+
$client = stream_socket_client("ssl://$domain:443", $context);
6470
} else {
6571
$client = stream_socket_client("tcp://$domain:80");
6672
}

0 commit comments

Comments
 (0)