summaryrefslogtreecommitdiff
path: root/ext/openssl/tests
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-06-18 15:55:23 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-06-18 15:56:14 +0200
commitb5f5da421109e1578dabcc88272d985a706c4b51 (patch)
tree9e062571b9976c57d5ac6e480a7ab1d1c0baa26a /ext/openssl/tests
parent472352f5a75eec7a90bed6468855b14504bc8739 (diff)
parent8ba0624a09fe83e4c718361fc7599bc61d06c577 (diff)
downloadphp-git-b5f5da421109e1578dabcc88272d985a706c4b51.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/openssl/tests')
-rw-r--r--ext/openssl/tests/stream_security_level.phpt5
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);