From: Johannes Schlüter Date: Wed, 27 Aug 2014 22:09:14 +0000 (+0200) Subject: Fix compilation on systems without ecdh_curve X-Git-Tag: PRE_PHP7_REMOVALS~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dadbbf8945fd24e3dcfd19504d47c01381ade6f9;p=php Fix compilation on systems without ecdh_curve --- diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c index bc877adb1c..7954fb753a 100644 --- a/ext/openssl/xp_ssl.c +++ b/ext/openssl/xp_ssl.c @@ -1177,7 +1177,8 @@ static int set_server_specific_opts(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) return FAILURE; } #else - if (SUCCESS == php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "ecdh_curve", &val)) { + val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", "ecdh_curve"); + if (val != NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "ECDH curve support not compiled into the OpenSSL lib against which PHP is linked");