diff --git a/Net/SMTP.php b/Net/SMTP.php index c67244c..f4f5e1f 100644 --- a/Net/SMTP.php +++ b/Net/SMTP.php @@ -835,8 +835,10 @@ public function setAuthMethod($name, $callback, $prepend = true) */ protected function authDigestMD5($uid, $pwd, $authz = '') { + /* TODO trigger deprecation error in 2.0.0 and remove authDigestMD5() in 3.0.0 trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method DIGEST-MD5' . ' is no longer secure and should be avoided.', E_USER_DEPRECATED); + */ if (PEAR::isError($error = $this->put('AUTH', 'DIGEST-MD5'))) { return $error; @@ -890,8 +892,10 @@ protected function authDigestMD5($uid, $pwd, $authz = '') */ protected function authCRAMMD5($uid, $pwd, $authz = '') { + /* TODO trigger deprecation error in 2.0.0 and remove authCRAMMD5() in 3.0.0 trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method CRAM-MD5' . ' is no longer secure and should be avoided.', E_USER_DEPRECATED); + */ if (PEAR::isError($error = $this->put('AUTH', 'CRAM-MD5'))) { return $error; @@ -933,8 +937,10 @@ protected function authCRAMMD5($uid, $pwd, $authz = '') */ protected function authLogin($uid, $pwd, $authz = '') { + /* TODO trigger deprecation error in 2.0.0 and remove authLogin() in 3.0.0 trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method LOGIN' . ' is no longer secure and should be avoided.', E_USER_DEPRECATED); + */ if (PEAR::isError($error = $this->put('AUTH', 'LOGIN'))) { return $error; diff --git a/package.xml b/package.xml index 5f01fe6..0914956 100644 --- a/package.xml +++ b/package.xml @@ -22,9 +22,9 @@ schengawegga@gmail.com yes - 2023-10-26 + 2023-11-01 - 1.11.0 + 1.11.1 1.4.0 @@ -33,12 +33,7 @@ BSD-2-Clause -* Feature: Add SCRAM-SHA-1, SCRAM-SHA-224, SCRAM-SHA-256, SCRAM-SHA-384 and SCRAM-SHA-512 support (#76) -* Task: Mark authentication methods CRAM-MD5, DIGEST-MD5 and LOGIN as DEPRECATED with deprecation warnings in the error-log (#76) -* BugFix: SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS) (#74) -* BugFix: Issue with non-blocking streams on establishing STARTTLS encryption (#74) -* BugFix: Implement TLS1.3 on STARTTLS encryption (#74) -* BugFix: using implode() instead of join() (#74) +* BugFix: Triggering deprecation warnings in error-log causes system failures because of changing the behavior in error reporting (#76)