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.
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
$_SERVERdirectly, reading it throughfilter_var_array(), or falling back to try either of those things whenfilter_input()returnsnull.