Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NumberToLocalizedStringTransformer uses INF to check value, but INF is float(0) on Solaris #8246

Closed
@Geckow

Description

@Geckow

This took me some time to debug, as the form-element only reports "value is invalid" and no exceptions were in the profiler, but in NumberToLocalizedStringTransformer line 130+

    if ($result >= INF || $result <= -INF) {
        throw new TransformationFailedException('I don\'t have a clear idea what infinity looks like');
    }

values are reverseTransform'ed and tested against INF. On Solaris however, for years INF equals float(0), so the above test always returns true making it impossible to use the Form framework on Solaris hosts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions