forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_superglobals.php
229 lines (214 loc) · 6.72 KB
/
_superglobals.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?php
/**
* @xglobal $GLOBALS array
* Contains a reference to every variable which is currently available within the global scope of the script.
* The keys of this array are the names of the global variables.
* $GLOBALS has existed since PHP 3.
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$GLOBALS = array();
/**
* @xglobal $_COOKIE array
* Variables provided to the script via HTTP cookies. Analogous to the old $HTTP_COOKIE_VARS array
* (which is still available, but deprecated).
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_COOKIE = array();
/**
* @xglobal $_ENV array
* @xglobal $HTTP_ENV_VARS array
*
* Variables provided to the script via the environment.
* Analogous to the old $HTTP_ENV_VARS array (which is still available, but deprecated).
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_ENV = array();
/**
* @deprecated 4.1.0
*/
$HTTP_ENV_VARS = array();
/**
* @xglobal $_FILES array
* @xglobal $HTTP_POST_FILES array
*
* Variables provided to the script via HTTP post file uploads. Analogous to the old $HTTP_POST_FILES array
* (which is still available, but deprecated).
* See POST method uploads for more information.
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_FILES = array();
/**
* @deprecated 4.1.0
*/
$HTTP_POST_FILES = array();
/**
* @xglobal $_GET array
* @xglobal $HTTP_GET_VARS array
*
* Variables provided to the script via URL query string.
* Analogous to the old $HTTP_GET_VARS array (which is still available, but deprecated).
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_GET = array();
/**
* @deprecated 4.1.0
*/
$HTTP_GET_VARS = array();
/**
* @xglobal $_POST array
* @xglobal $HTTP_POST_VARS array
*
* Variables provided to the script via HTTP POST. Analogous to the old $HTTP_POST_VARS array
* (which is still available, but deprecated).
* @link http://www.php.net/manual/en/language.variables.predefined.php
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_POST = array();
/**
* @deprecated 4.1.0
*/
$HTTP_POST_VARS = array();
/**
* @xglobal $_REQUEST array
* Variables provided to the script via the GET, POST, and COOKIE input mechanisms,
* and which therefore cannot be trusted.
* The presence and order of variable inclusion in this array is defined according to the
* PHP variables_order configuration directive.
* This array has no direct analogue in versions of PHP prior to 4.1.0.
* See also import_request_variables().
* <p>
* Caution
* <p>Since PHP 4.3.0, FILE information from $_FILES does not exist in $_REQUEST.
* <p>
* Note: When running on the command line , this will not include the argv and argc entries; these are present in the $_SERVER array.
*
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_REQUEST = array();
/**
* @xglobal $_SERVER array
* @xglobal $HTTP_SERVER_VARS array
*
* Variables set by the web server or otherwise directly related to the execution environment of the current script.
* Analogous to the old $HTTP_SERVER_VARS array (which is still available, but deprecated).
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_SERVER = array();
/**
* @deprecated 4.1.0
*/
$HTTP_SERVER_VARS = array();
$_SERVER['PHP_SELF'] = '';
$_SERVER['argv'] = '';
$_SERVER['argc'] = '';
$_SERVER['GATEWAY_INTERFACE'] = 'CGI/1.1';
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_NAME'] = 'localhost';
$_SERVER['SERVER_SOFTWARE'] = '';
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.0';
$_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['REQUEST_TIME'] = '';
$_SERVER['QUERY_STRING'] = '';
$_SERVER['DOCUMENT_ROOT'] = '';
$_SERVER['HTTP_ACCEPT'] = '';
$_SERVER['HTTP_ACCEPT_CHARSET'] = 'iso-8859-1,*,utf-8';
$_SERVER['HTTP_ACCEPT_ENCODING'] = 'gzip';
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'en';
$_SERVER['HTTP_CONNECTION'] = 'Keep-Alive';
$_SERVER['HTTP_HOST'] = '';
$_SERVER['HTTP_REFERER'] = '';
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586).';
$_SERVER['HTTPS'] = '';
$_SERVER['REMOTE_ADDR'] = '';
$_SERVER['REMOTE_HOST'] = '';
$_SERVER['REMOTE_PORT'] = '';
$_SERVER['SCRIPT_FILENAME'] = '';
$_SERVER['SERVER_ADMIN'] = '';
$_SERVER['SERVER_PORT'] = '80';
$_SERVER['SERVER_SIGNATURE'] = '';
$_SERVER['PATH_TRANSLATED'] = '';
$_SERVER['SCRIPT_NAME'] = '';
$_SERVER['REQUEST_URI'] = '/index.html';
$_SERVER['PHP_AUTH_DIGEST'] = '';
$_SERVER['PHP_AUTH_USER'] = '';
$_SERVER['PHP_AUTH_PW'] = '';
$_SERVER['AUTH_TYPE'] = '';
$_SERVER['PATH_INFO'] = '';
$_SERVER['ORIG_PATH_INFO'] = '';
/**
* @xglobal $_SESSION array
* @xglobal $HTTP_SESSION_VARS array
*
* Variables which are currently registered to a script's session.
* Analogous to the old $HTTP_SESSION_VARS array (which is still available, but deprecated).
* See the Session handling functions section for more information.
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$_SESSION = array();
/**
* @deprecated 4.1.0
*/
$HTTP_SESSION_VARS = array();
/**
* @xglobal $argc int
*
* The number of arguments passed to script
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$argc = 0;
/**
* @xglobal $argv array
*
* Array of arguments passed to script
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$argv = array();
/**
* @xglobal $HTTP_RAW_POST_DATA string
*
* Raw POST data
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*
* @deprecated 5.6.0 Deprecated as of PHP 5.6.0. Use the php://input stream instead.
*/
$HTTP_RAW_POST_DATA = '';
/**
* @xglobal $http_response_header array
*
* HTTP response headers
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$http_response_header = array();
/**
* @xglobal $php_errormsg string
* The previous error message
*
* <p><a href="http://www.php.net/manual/en/reserved.variables.php">
* http://us2.php.net/manual/en/reserved.variables.php</a>
*/
$php_errormsg = '';