Skip to content

Indication for the int size in phpinfo() #12188

Closed
@dtdesign

Description

@dtdesign

Description

The majority of PHP installations are compiled with support for 64-bit values, but there is still a considerable amount of environments out there that only support 32-bit values for whatever reason. Defining support for 64-bit values in the system requirements of a software is the obvious choice here, but revealed an important shortcoming: The support int size isn’t documented in the phpinfo().

This is a problem for the average user because they cannot tell that themselves unless they run a script that compares against \PHP_INT_SIZE. The difference here to all other system requirements like installed PHP extensions or configuration settings is that those are visible through the phpinfo() output.

It could be helpful to include some sort of an indication of the int size, be it the raw value of \PHP_INT_SIZE or a more “human friendly” readout like “32-bit”.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions