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 deprecated #11

Open
verboEse opened this issue Jul 12, 2024 · 0 comments
Open

PHP deprecated #11

verboEse opened this issue Jul 12, 2024 · 0 comments

Comments

@verboEse
Copy link

verboEse commented Jul 12, 2024

I'm running on Debian stable (12/bookworm) with PHP 8.2, which seems to be not compatible to this module:

2024/07/12 13:04:53 [error] 566#566: *148501 FastCGI sent in stderr: "PHP message: PHP Deprecated:  Return type of Icinga\Module\Azure\restclient\RestClient::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/modules/azure/library/Azure/restclient/RestClient.php on line 76; PHP message: PHP Deprecated:  Return type of Icinga\Module\Azure\restclient\RestClient::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/modules/azure/library/Azure/restclient/RestClient.php on line 84; PHP message: PHP Deprecated:  Return type of Icinga\Module\Azure\restclient\RestClient::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/modules/azure/library/Azure/restclient/RestClient.php on line 80; PHP message: PHP Deprecated:  Return type of Icinga\Module\Azure\restclient\RestClient::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/modules/azure/library/Azure/restclient/RestClient.php on line 88; PHP message: PHP Deprecated:  Return type of Icinga\Module\Azure\restclient\RestClient::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/icingaweb2/modules/azure/library/Azure/restclient/RestClient.php on line 71; PHP message: PHP Deprecated:  Return type of Icinga\Module\Azure\restclient\RestClient::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/sh
2024/07/12 13:04:53 [error] 566#566: *148501 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: , request: "POST /director/importsource/add HTTP/1.0", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "127.0.0.1:8080", referrer: "https://icinga-prod.mydomain.net/director/importsources"

When trying to create a new importsource, after providing the tenantid and client credentials, the connection to icinga breaks and this message pops in the error log of NGinX.
I assume the code is not yet ready for PHP 8.0+. I'm not sure though if these deprecatione notes also explain the broken connection?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant