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

Undefined array key "authentication-results" with PHP 8.2 #74

Open
gunnarhaslinger opened this issue Jan 10, 2025 · 1 comment
Open
Assignees
Labels

Comments

@gunnarhaslinger
Copy link

gunnarhaslinger commented Jan 10, 2025

Using authres_status with PHP 8.2 leads to regular roundcubemail errors.log Entries:
PHP Warning: Undefined array key "authentication-results" in /var/www/roundcubemail/roundcubemail-current/plugins/authres_status/authres_status.php on line 339

Line 339 on my system is:
$hasAuthenticationResultHeaders = (bool)$headers->others['authentication-results'];

which is identical in the most current dev-master:

$hasAuthenticationResultHeaders = (bool)$headers->others['authentication-results'];

@pikachurus
Copy link

you can use 'isset' to override "Undefined array" warning:
$hasAuthenticationResultHeaders = (bool) isset($headers->others['authentication-results']);

@pimlie pimlie self-assigned this Jan 15, 2025
@pimlie pimlie added the bug label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants