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

PHP 8.2 "Deprecated" warning #9616

Closed
2 tasks done
stafra opened this issue Aug 28, 2024 · 1 comment
Closed
2 tasks done

PHP 8.2 "Deprecated" warning #9616

stafra opened this issue Aug 28, 2024 · 1 comment

Comments

@stafra
Copy link

stafra commented Aug 28, 2024

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

When GSSAPI auth (SSO) is enabled, lot of PHP Deprecation warnings appears in the apache error log file:

[Wed Aug 28 08:53:45.874531 2024] [proxy_fcgi:error] [pid 1579676] [client xxx.xxx.xxx.xxx:16368] AH01071: Got error 'PHP message: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube.php on line 945; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #2 ($input_token) of type string is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #3 ($reqflags) of type int is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #4 ($timereq) of type int is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679', referer: https://some.site.ltd/?_task=mail&_mbox=INBOX
[Wed Aug 28 08:53:45.895700 2024] [proxy_fcgi:error] [pid 1577627] [client xxx.xxx.xxx.xxx:40378] AH01071: Got error 'PHP message: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube.php on line 945; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #2 ($input_token) of type string is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #3 ($reqflags) of type int is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #4 ($timereq) of type int is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679', referer: https://some.site.ltd/?_task=mail&_mbox=INBOX
[Wed Aug 28 08:53:46.001539 2024] [proxy_fcgi:error] [pid 1647283] [client xxx.xxx.xxx.xxx:59828] AH01071: Got error 'PHP message: PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube.php on line 945; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #2 ($input_token) of type string is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #3 ($reqflags) of type int is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679; PHP message: PHP Deprecated:  GSSAPIContext::initSecContext(): Passing null to parameter #4 ($timereq) of type int is deprecated in /var/www/roundcube.sso/program/lib/Roundcube/rcube_imap_generic.php on line 679', referer: https://some.site.ltd/?_task=mail&_mbox=INBOX

What browser(s) are you seeing the problem on?

Firefox

What version of PHP are you using?

8.2.7

What version of Roundcube are you using?

1.6.8

JavaScript errors

No response

PHP errors

No response

@github-staff github-staff deleted a comment Aug 28, 2024
@alecpl alecpl added this to the 1.6.10 milestone Sep 7, 2024
alecpl added a commit that referenced this issue Sep 7, 2024
alecpl added a commit that referenced this issue Sep 7, 2024
@alecpl
Copy link
Member

alecpl commented Sep 7, 2024

Fixed.

@alecpl alecpl closed this as completed Sep 7, 2024
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

3 participants
@alecpl @stafra and others