diff options
author | Dennis1993 <marvin-wegener@outlook.com> | 2013-07-26 18:38:13 +0200 |
---|---|---|
committer | Dennis1993 <marvin-wegener@outlook.com> | 2013-07-26 18:38:13 +0200 |
commit | e9505469030cd5cfd0930c8f12c855057a32cad4 (patch) | |
tree | 79cb86de184583a557bcb6345e465896f0a56a0f | |
parent | ac1fa9871567473f34e3b400496ae08e9b6c0461 (diff) |
Update SMTP.php
-rw-r--r-- | program/lib/Net/SMTP.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Net/SMTP.php b/program/lib/Net/SMTP.php index 02575955b..2c1ef5c55 100644 --- a/program/lib/Net/SMTP.php +++ b/program/lib/Net/SMTP.php @@ -595,7 +595,8 @@ class Net_SMTP * extension, are connected to an SMTP server which supports the * STARTTLS extension, and aren't already connected over a secure * (SSL) socket connection. */ - if ($tls && extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) && + if ($tls && version_compare(PHP_VERSION, '5.1.0', '>=') && + extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) && strncasecmp($this->host, 'ssl://', 6) !== 0) { /* Start the TLS connection attempt. */ if (PEAR::isError($result = $this->_put('STARTTLS'))) { |