From e91822243924fdae432fe827b317f1d52757773a Mon Sep 17 00:00:00 2001 From: Lars Moelleken Date: Sat, 28 May 2016 13:37:54 +0200 Subject: [PATCH] [+]: try to add fix for "SSL3_GET_SERVER_CERTIFICATE:certificate verify failed" (need some testing) v2.1 --- lib/classes/Swift/Transport/StreamBuffer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/Swift/Transport/StreamBuffer.php b/lib/classes/Swift/Transport/StreamBuffer.php index 307d7c1fb..3fcafdeec 100644 --- a/lib/classes/Swift/Transport/StreamBuffer.php +++ b/lib/classes/Swift/Transport/StreamBuffer.php @@ -292,11 +292,11 @@ private function _establishSocketConnection() } if (!empty($this->_params['verifySsl'])) { - $options = array_merge_recursive($options, $this->_params['verifySsl']); + $options = array_replace_recursive($options, $this->_params['verifySsl']); } if (!empty($this->_params['stream_context_options'])) { - $options = array_merge_recursive($options, $this->_params['stream_context_options']); + $options = array_replace_recursive($options, $this->_params['stream_context_options']); } $streamContext = stream_context_create($options);