Lines Matching refs:value
237 char *value; in sapi_capi_register_server_variables() local
241 value = lstFset_get(rc->t->vars, "uri"); in sapi_capi_register_server_variables()
242 if (value != NULL) { in sapi_capi_register_server_variables()
243 php_register_variable("PHP_SELF", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
244 php_register_variable("REQUEST_URI", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
248 value = lstFset_get(rc->t->vars, "ccode"); in sapi_capi_register_server_variables()
249 if(value!=NULL) in sapi_capi_register_server_variables()
250 php_register_variable("COUNTRY_CODE", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
253 value = lstFset_get(rc->t->vars, "query"); in sapi_capi_register_server_variables()
254 if (value != NULL) in sapi_capi_register_server_variables()
255 php_register_variable("argv", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
261 value = lstFset_get(rc->t->req_hdrs, "host"); in sapi_capi_register_server_variables()
262 if (value != NULL) { in sapi_capi_register_server_variables()
263 php_register_variable("HTTP_HOST", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
265 php_register_variable("SERVER_NAME", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
268 value = lstFset_get(rc->t->res_hdrs, "Server"); in sapi_capi_register_server_variables()
269 if (value != NULL) in sapi_capi_register_server_variables()
270 php_register_variable("SERVER_SOFTWARE", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
273 value = lstFset_get(rc->t->vars, "protocol"); in sapi_capi_register_server_variables()
274 if (value != NULL) in sapi_capi_register_server_variables()
275 php_register_variable("SERVER_PROTOCOL", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
278 value = lstFset_get(rc->t->vars, "method"); in sapi_capi_register_server_variables()
279 if (value != NULL) in sapi_capi_register_server_variables()
280 php_register_variable("REQUEST_METHOD", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
283 value = lstFset_get(rc->t->vars, "query"); in sapi_capi_register_server_variables()
284 if (value != NULL) in sapi_capi_register_server_variables()
285 php_register_variable("QUERY_STRING", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
288 value = lstFset_get(rc->t->vars, "docroot"); in sapi_capi_register_server_variables()
289 if (value != NULL) in sapi_capi_register_server_variables()
290 php_register_variable("DOCUMENT_ROOT", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
293 value = lstFset_get(rc->t->req_hdrs, "accept"); in sapi_capi_register_server_variables()
294 if (value != NULL) in sapi_capi_register_server_variables()
295 php_register_variable("HTTP_ACCEPT", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
298 value = lstFset_get(rc->t->req_hdrs, "accept-charset"); in sapi_capi_register_server_variables()
299 if (value != NULL) in sapi_capi_register_server_variables()
300 php_register_variable("HTTP_ACCEPT_CHARSET", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
303 value = lstFset_get(rc->t->req_hdrs, "accept-encoding"); in sapi_capi_register_server_variables()
304 if (value != NULL) in sapi_capi_register_server_variables()
305 php_register_variable("HTTP_ACCEPT_ENCODING", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
308 value = lstFset_get(rc->t->req_hdrs, "accept-language"); in sapi_capi_register_server_variables()
309 if (value != NULL) in sapi_capi_register_server_variables()
310 php_register_variable("HTTP_ACCEPT_LANGUAGE", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
313 value = lstFset_get(rc->t->req_hdrs, "connection"); in sapi_capi_register_server_variables()
314 if (value != NULL) in sapi_capi_register_server_variables()
315 php_register_variable("HTTP_CONNECTION", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
318 value = lstFset_get(rc->t->req_hdrs, "referer"); in sapi_capi_register_server_variables()
319 if (value != NULL) in sapi_capi_register_server_variables()
320 php_register_variable("HTTP_REFERER", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
323 value = lstFset_get(rc->t->req_hdrs, "user-agent"); in sapi_capi_register_server_variables()
324 if (value != NULL) in sapi_capi_register_server_variables()
325 php_register_variable("HTTP_USER_AGENT", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
334 value = lstFset_get(rc->t->vars, "path"); in sapi_capi_register_server_variables()
335 if (value != NULL) { in sapi_capi_register_server_variables()
336 php_register_variable("SCRIPT_FILENAME", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()
337 php_register_variable("PATH_TRANSLATED", value, track_vars_array TSRMLS_CC); in sapi_capi_register_server_variables()