Lines Matching refs:request

251 		fcgi_request *request = (fcgi_request*) SG(server_context);  in sapi_cgibin_single_write()  local
252 ret = fcgi_write(request, FCGI_STDOUT, str, str_length); in sapi_cgibin_single_write()
296 fcgi_request *request = (fcgi_request*) server_context; in sapi_cgibin_flush() local
297 if (!parent && request && !fcgi_flush(request, 0)) { in sapi_cgibin_flush()
443 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_read_post() local
445 char *request_body_filename = FCGI_GETENV(request, "REQUEST_BODY_FILE"); in sapi_cgi_read_post()
460 tmp_read_bytes = fcgi_read(request, buffer + read_bytes, count_bytes - read_bytes); in sapi_cgi_read_post()
477 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgibin_getenv() local
478 return fcgi_getenv(request, name, name_len); in sapi_cgibin_getenv()
496 fcgi_request *request = (fcgi_request*) SG(server_context);
497 return fcgi_putenv(request, name, name_len, value);
504 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_read_cookies() local
506 return FCGI_GETENV(request, "HTTP_COOKIE"); in sapi_cgi_read_cookies()
524 fcgi_request *request = NULL; in cgi_php_import_environment_variables() local
545 request = (fcgi_request*) SG(server_context); in cgi_php_import_environment_variables()
546 fcgi_loadenv(request, cgi_php_load_env_var, array_ptr); in cgi_php_import_environment_variables()
599 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_log_fastcgi() local
607 if (CGIG(fcgi_logging) && request && message && len > 0 in sapi_cgi_log_fastcgi()
608 && fcgi_write(request, FCGI_STDERR, message, len) < 0) { in sapi_cgi_log_fastcgi()
695 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_activate() local
706 server_name = FCGI_GETENV(request, "SERVER_NAME"); in sapi_cgi_activate()
740 doc_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); in sapi_cgi_activate()
961 fcgi_request *request = (fcgi_request*) SG(server_context); in init_request_info() local
962 char *env_script_filename = FCGI_GETENV(request, "SCRIPT_FILENAME"); in init_request_info()
963 char *env_path_translated = FCGI_GETENV(request, "PATH_TRANSLATED"); in init_request_info()
977 SG(request_info).request_method = FCGI_GETENV(request, "REQUEST_METHOD"); in init_request_info()
989 char *content_length = FCGI_GETENV(request, "CONTENT_LENGTH"); in init_request_info()
990 char *content_type = FCGI_GETENV(request, "CONTENT_TYPE"); in init_request_info()
991 char *env_path_info = FCGI_GETENV(request, "PATH_INFO"); in init_request_info()
992 char *env_script_name = FCGI_GETENV(request, "SCRIPT_NAME"); in init_request_info()
995 char *env_server_software = FCGI_GETENV(request, "SERVER_SOFTWARE"); in init_request_info()
1002 env_path_info = FCGI_PUTENV(request, "ORIG_PATH_INFO", env_path_info); in init_request_info()
1007 env_path_info = FCGI_PUTENV(request, "PATH_INFO", env_path_info); in init_request_info()
1066 char *env_redirect_url = FCGI_GETENV(request, "REDIRECT_URL"); in init_request_info()
1067 char *env_document_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); in init_request_info()
1075 env_document_root = FCGI_PUTENV(request, "DOCUMENT_ROOT", PG(doc_root)); in init_request_info()
1151 FCGI_PUTENV(request, "ORIG_PATH_INFO", orig_path_info); in init_request_info()
1157 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1159 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_path_info); in init_request_info()
1171 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1173 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_script_name); in init_request_info()
1176 env_path_info = FCGI_PUTENV(request, "PATH_INFO", path_info); in init_request_info()
1181 FCGI_PUTENV(request, "ORIG_SCRIPT_FILENAME", orig_script_filename); in init_request_info()
1183 script_path_translated = FCGI_PUTENV(request, "SCRIPT_FILENAME", pt); in init_request_info()
1212 FCGI_PUTENV(request, "ORIG_PATH_TRANSLATED", orig_path_translated); in init_request_info()
1214 env_path_translated = FCGI_PUTENV(request, "PATH_TRANSLATED", path_translated); in init_request_info()
1231 FCGI_PUTENV(request, "ORIG_PATH_TRANSLATED", orig_path_translated); in init_request_info()
1233 env_path_translated = FCGI_PUTENV(request, "PATH_TRANSLATED", path_translated); in init_request_info()
1249 FCGI_PUTENV(request, "ORIG_SCRIPT_FILENAME", orig_script_filename); in init_request_info()
1251 script_path_translated = FCGI_PUTENV(request, "SCRIPT_FILENAME", NULL); in init_request_info()
1258 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1260 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_script_name); in init_request_info()
1274 FCGI_PUTENV(request, "ORIG_SCRIPT_FILENAME", orig_script_filename); in init_request_info()
1276 script_path_translated = FCGI_PUTENV(request, "SCRIPT_FILENAME", script_path_translated); in init_request_info()
1282 FCGI_PUTENV(request, "ORIG_PATH_INFO", orig_path_info); in init_request_info()
1283 FCGI_PUTENV(request, "PATH_INFO", NULL); in init_request_info()
1286 FCGI_PUTENV(request, "ORIG_PATH_TRANSLATED", orig_path_translated); in init_request_info()
1287 FCGI_PUTENV(request, "PATH_TRANSLATED", NULL); in init_request_info()
1292 FCGI_PUTENV(request, "ORIG_SCRIPT_NAME", orig_script_name); in init_request_info()
1294 SG(request_info).request_uri = FCGI_PUTENV(request, "SCRIPT_NAME", env_script_name); in init_request_info()
1317 SG(request_info).query_string = FCGI_GETENV(request, "QUERY_STRING"); in init_request_info()
1322 auth = FCGI_GETENV(request, "HTTP_AUTHORIZATION"); in init_request_info()
1327 ini = FCGI_GETENV(request, "PHP_VALUE"); in init_request_info()
1336 ini = FCGI_GETENV(request, "PHP_ADMIN_VALUE"); in init_request_info()
1466 fcgi_request *request = (fcgi_request*) SG(server_context); in ZEND_END_ARG_INFO() local
1472 if (!fcgi_is_closed(request)) { in ZEND_END_ARG_INFO()
1476 fcgi_end(request); in ZEND_END_ARG_INFO()
1477 fcgi_close(request, 0, 0); in ZEND_END_ARG_INFO()
1488 fcgi_request *request; in PHP_FUNCTION() local
1495 if ((request = (fcgi_request*) SG(server_context))) { in PHP_FUNCTION()
1496 fcgi_loadenv(request, sapi_add_request_header, return_value); in PHP_FUNCTION()
1552 fcgi_request *request; in main() local
1865 request = fpm_init_request(fcgi_fd); in main()
1868 while (EXPECTED(fcgi_accept_request(request) >= 0)) { in main()
1871 SG(server_context) = (void *) request; in main()
1879 fcgi_finish_request(request, 1); in main()
1974 fcgi_request_set_keep(request, 0); in main()
1975 fcgi_finish_request(request, 0); in main()
1980 fcgi_destroy_request(request); in main()