Skip to content

Test fails on armhf with PHP 8.5 due to warning about casting values to int #44

Description

@renanrodrigo

When running the test suite on armhf and using PHP 8.5, a warning is displayed when some casts to int lead to overflows.
This was caught during the PHP 8.5 migration on Ubuntu. Here are the logs of a test run where you can read:

Warning: The float 4294967295 is not representable as an int, cast occurred in /usr/share/php/Log.php on line 677

These warnings are polluting the output and causing the tests to fail. On Ubuntu, I've added a patch to just ignore the warnings and move on, as the expected values in the tests are correct even in the 32bits systems. I can open a PR with this patch, but I'd like to know if you have a better idea around the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions