Skip to content

Commit 8ba0624

Browse files
committed
Downgrade server security level in security level test
We want to test the client side error here, so make sure the server side can start up successfully.
1 parent c7fe71c commit 8ba0624

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)