Skip to content

Version 6 is broken when using a 32bits build of PHP #816

Closed
@stof

Description

@stof

see https://github.com/symfony/symfony/actions/runs/14262540647/job/39977141591#step:5:23 which was a CI job of Symfony running on 32bits with Composer 2.8.7 (which migrated to v6 of this library).

the root cause is that the value of Validator::ERROR_ALL is bigger than PHP_INT_MAX on a 32bits build of PHP (as PHP integers are signed integers) and so becomes a float.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions