Skip to content

Commit b5f5da4

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 472352f + 8ba0624 commit b5f5da4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/openssl/tests/stream_security_level.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ $serverCode = <<<'CODE'
2121
$serverUri = "ssl://127.0.0.1:64322";
2222
$serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
2323
$serverCtx = stream_context_create(['ssl' => [
24-
'local_cert' => '%s'
24+
'local_cert' => '%s',
25+
// Make sure the server side starts up successfully if the default security level is
26+
// higher. We want to test the error at the client side.
27+
'security_level' => 1,
2528
]]);
2629
2730
$server = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx);

0 commit comments

Comments
 (0)