Permalink
Browse files

Bugfix #2628 - temporary hack to one of the PEAR library files to ena…

…ble SMTP connections to work on PHP 5.6 in some cases. Please be aware this is a totally experimental fix, use at your own risk.
  • Loading branch information...
John Hunt
John Hunt committed Feb 17, 2016
1 parent 19292ad commit d48499b66e3ce9950bdccb7d9b8689a5acaa359f
Showing with 1 addition and 3 deletions.
  1. +1 −3 include/pear/Net/SMTP.php
@@ -597,9 +597,7 @@ function auth($uid, $pwd , $method = '', $tls = true, $authz = '')
* 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 && version_compare(PHP_VERSION, '5.1.0', '>=') &&
extension_loaded('openssl') && isset($this->_esmtp['STARTTLS']) &&
strncasecmp($this->host, 'ssl://', 6) !== 0) {
if (false && (isset($this->_esmtp['STARTTLS']) || ($this->_esmtp['STARTTLS'] == true))) {
/* Start the TLS connection attempt. */
if (PEAR::isError($result = $this->_put('STARTTLS'))) {
return $result;

0 comments on commit d48499b

Please sign in to comment.