We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4d11b commit 4a01ddfCopy full SHA for 4a01ddf
ext/openssl/xp_ssl.c
@@ -395,6 +395,18 @@ static inline int php_openssl_setup_crypto(php_stream *stream,
395
}
396
#endif
397
398
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
399
+ {
400
+ zval **val;
401
+
402
+ if (stream->context && SUCCESS == php_stream_context_get_option(
403
+ stream->context, "ssl", "disable_compression", &val) &&
404
+ zval_is_true(*val)) {
405
+ SSL_CTX_set_options(sslsock->ctx, SSL_OP_NO_COMPRESSION);
406
+ }
407
408
+#endif
409
410
sslsock->ssl_handle = php_SSL_new_from_context(sslsock->ctx, stream TSRMLS_CC);
411
if (sslsock->ssl_handle == NULL) {
412
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to create an SSL handle");
0 commit comments