Skip to content

str_increment wrong for numbers larger PHP_INT_MAX/PHP_INT_MIN #540

@kkmuffme

Description

@kkmuffme
var_dump( str_increment('9223372036854775820') );

Additionally, the return should have a (string) type cast to be strictly correct

EDIT: same for str_decrement?

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