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

calling Auth_SASL::factory() w/ Auth_SASL 1.0.6 #5401

Closed
philfry opened this issue Aug 16, 2016 · 2 comments
Closed

calling Auth_SASL::factory() w/ Auth_SASL 1.0.6 #5401

philfry opened this issue Aug 16, 2016 · 2 comments

Comments

@philfry
Copy link

philfry commented Aug 16, 2016

Hi,

I'm getting deprecation warnings for Auth_SASL::factory():

PHP Deprecated:  Non-static method Auth_SASL::factory() should not be called statically
  in /usr/share/roundcubemail/program/lib/Roundcube/rcube_imap_generic.php on line 578

this should fix it:

--- roundcubemail-1.2.1/program/lib/Roundcube/rcube_imap_generic.php.nonstatic
+++ roundcubemail-1.2.1/program/lib/Roundcube/rcube_imap_generic.php
@@ -575,7 +575,7 @@ class rcube_imap_generic
                     $user  = '';
                 }

-                $auth_sasl = Auth_SASL::factory('digestmd5');
+                $auth_sasl = (new Auth_SASL)->factory('digestmd5');
                 $reply     = base64_encode($auth_sasl->getResponse($authc, $pass,
                     base64_decode($challenge), $this->host, 'imap', $user));

Kind regards

Philippe

@alecpl
Copy link
Member

alecpl commented Aug 16, 2016

The same code in used in Net_Sieve and Net_SMTP. I suppose it would be good to fix this upstream ticket http://pear.php.net/bugs/bug.php?id=21033.

@alecpl
Copy link
Member

alecpl commented Aug 16, 2016

It was fixed where I could. Net_SMTP PR need to be merged.

@alecpl alecpl closed this as completed Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants