Merge branch 'PHP-7.4'

This commit is contained in:
Nikita Popov 2020-06-18 15:55:23 +02:00
commit b5f5da4211

View file

@ -21,7 +21,10 @@ $serverCode = <<<'CODE'
$serverUri = "ssl://127.0.0.1:64322"; $serverUri = "ssl://127.0.0.1:64322";
$serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN; $serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
$serverCtx = stream_context_create(['ssl' => [ $serverCtx = stream_context_create(['ssl' => [
'local_cert' => '%s' 'local_cert' => '%s',
// Make sure the server side starts up successfully if the default security level is
// higher. We want to test the error at the client side.
'security_level' => 1,
]]); ]]);
$server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx); $server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);