Skip to content

Commit

Permalink
Revert "This was added in PHP 5.1.0."
Browse files Browse the repository at this point in the history
But it still requires the openssl extension to be installed.

This reverts commit a0dbbe8.
  • Loading branch information
yunosh committed Jan 26, 2015
1 parent f93fa0a commit 3a2f949
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/ManageSieve/lib/Horde/ManageSieve.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ public function connect($host, $port, $options = null, $useTLS = true)
}

// Check if we can enable TLS via STARTTLS.
if ($useTLS && !empty($this->_capability['starttls'])) {
if ($useTLS &&
!empty($this->_capability['starttls']) &&
function_exists('stream_socket_enable_crypto')
) {
$this->_startTLS();
}
}
Expand Down

0 comments on commit 3a2f949

Please sign in to comment.