diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-18 15:55:23 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-18 15:56:14 +0200 |
commit | b5f5da421109e1578dabcc88272d985a706c4b51 (patch) | |
tree | 9e062571b9976c57d5ac6e480a7ab1d1c0baa26a /ext/openssl/tests | |
parent | 472352f5a75eec7a90bed6468855b14504bc8739 (diff) | |
parent | 8ba0624a09fe83e4c718361fc7599bc61d06c577 (diff) | |
download | php-git-b5f5da421109e1578dabcc88272d985a706c4b51.tar.gz |
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/openssl/tests')
-rw-r--r-- | ext/openssl/tests/stream_security_level.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/openssl/tests/stream_security_level.phpt b/ext/openssl/tests/stream_security_level.phpt index ebb21c5d1a..44ba4c6d57 100644 --- a/ext/openssl/tests/stream_security_level.phpt +++ b/ext/openssl/tests/stream_security_level.phpt @@ -21,7 +21,10 @@ $serverCode = <<<'CODE' $serverUri = "ssl://127.0.0.1:64322"; $serverFlags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN; $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); |