Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround E_DEPRECATED warning on Auth_SASL::factory() call #29

Merged
merged 10 commits into from
Aug 16, 2016
3 changes: 2 additions & 1 deletion Net/SMTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ protected function authDigestMD5($uid, $pwd, $authz = '')
return $error;
}

$digest = Auth_SASL::factory('digest-md5');
$auth_sasl = new Auth_SASL;
$digest = $auth_sasl->factory('digest-md5');
$challenge = base64_decode($this->arguments[0]);
$auth_str = base64_encode(
$digest->getResponse($uid, $pwd, $challenge, $this->host, "smtp", $authz)
Expand Down