Skip to content

INPUT_SERVER is not available on some PHP configurations #10

@Zegnat

Description

@Zegnat

Upstream bug in PHP: INPUT_SERVER returns NULL for set variables. Also mentioned as a comment in the PHP documentation for filter_input().

Either switch to reading $_SERVER directly, reading it through filter_var_array(), or falling back to try either of those things when filter_input() returns null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions