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);