Skip to content

Commit

Permalink
Add missing $_SERVER superglobals
Browse files Browse the repository at this point in the history
In addition, update the default value for REQUEST_TIME to match its actual datatype
  • Loading branch information
cookieguru authored and isfedorov committed Jan 12, 2024
1 parent d8bdf0a commit bf4fb68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superglobals/_superglobals.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
$_SERVER['SERVER_SOFTWARE'] = '';
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.0';
$_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['REQUEST_TIME'] = '';
$_SERVER['REQUEST_TIME'] = 946713600;
$_SERVER['REQUEST_TIME_FLOAT'] = 946713600.123456;
$_SERVER['QUERY_STRING'] = '';
$_SERVER['DOCUMENT_ROOT'] = '';
$_SERVER['HTTP_ACCEPT'] = '';
Expand All @@ -150,6 +151,8 @@
$_SERVER['REMOTE_ADDR'] = '';
$_SERVER['REMOTE_HOST'] = '';
$_SERVER['REMOTE_PORT'] = '';
$_SERVER['REMOTE_USER'] = '';
$_SERVER['REDIRECT_REMOTE_USER'] = '';
$_SERVER['SCRIPT_FILENAME'] = '';
$_SERVER['SERVER_ADMIN'] = '';
$_SERVER['SERVER_PORT'] = '80';
Expand Down

0 comments on commit bf4fb68

Please sign in to comment.