From: Mikko Koppanen Date: Mon, 20 Apr 2009 09:44:29 +0000 (+0000) Subject: MFH: Closes #47991 SSL streams fail if error stack contains items X-Git-Tag: php-5.3.0RC2~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e0a3c21a3dceb3ebd76a9b7cabff4f5713e4538;p=php MFH: Closes #47991 SSL streams fail if error stack contains items --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 8c82e76370..9ebef5d833 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -4367,6 +4367,7 @@ SSL *php_SSL_new_from_context(SSL_CTX *ctx, php_stream *stream TSRMLS_DC) /* {{{ char *cipherlist = NULL; int ok = 1; + ERR_clear_error(); /* look at context options in the stream and set appropriate verification flags */ if (GET_VER_OPT("verify_peer") && zval_is_true(*val)) {