Lines Matching refs:request_info

375 	if (SG(request_info).no_headers == 1) {  in sapi_cgi_send_headers()
481 assert(SG(request_info).content_length >= SG(read_post_bytes)); in sapi_cgi_read_post()
483 remaining_bytes = (size_t)(SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post()
508 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_fcgi_read_post()
699 char *script_name = SG(request_info).request_uri; in sapi_cgi_register_variables()
746 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
863 if (!SG(request_info).path_translated) {
895 path_len = strlen(SG(request_info).path_translated);
898 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
900 memcpy(path, SG(request_info).path_translated, path_len + 1);
904 path = estrndup(SG(request_info).path_translated, path_len);
1173 SG(request_info).path_translated = NULL;
1174 SG(request_info).request_method = NULL;
1175 SG(request_info).proto_num = 1000;
1176 SG(request_info).query_string = NULL;
1177 SG(request_info).request_uri = NULL;
1178 SG(request_info).content_type = NULL;
1179 SG(request_info).content_length = 0;
1299 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_path_info);
1301 SG(request_info).request_uri = orig_script_name;
1380 if (!SG(request_info).request_uri) {
1386 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_script_name);
1388 SG(request_info).request_uri = orig_script_name;
1418 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_script_name);
1420 SG(request_info).request_uri = env_script_name;
1427 SG(request_info).request_uri = env_path_info;
1429 SG(request_info).request_uri = env_script_name;
1437 SG(request_info).path_translated = estrdup(script_path_translated);
1440 SG(request_info).request_method = CGI_GETENV("REQUEST_METHOD");
1442 SG(request_info).query_string = CGI_GETENV("QUERY_STRING");
1443 SG(request_info).content_type = (content_type ? content_type : "" );
1444 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
1869 SG(request_info).path_translated = NULL;
2315 SG(request_info).no_headers = 1;
2359 SG(request_info).no_headers = 1;
2385 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2386 SG(request_info).path_translated = script_file;
2389 SG(request_info).argc = argc - (php_optind - 1);
2390 SG(request_info).argv = &argv[php_optind - 1];
2391 SG(request_info).argv[0] = script_file;
2394 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2395 SG(request_info).path_translated = estrdup(argv[php_optind]);
2397 SG(request_info).argc = argc - php_optind;
2398 SG(request_info).argv = &argv[php_optind];
2403 SG(request_info).no_headers = 1;
2415 if (!SG(request_info).query_string && argc > php_optind) {
2435 SG(request_info).query_string = s;
2452 SG(request_info).no_headers = 1;
2460 if (cgi || fastcgi || SG(request_info).path_translated) {
2479 if (SG(request_info).path_translated) {
2480 efree(SG(request_info).path_translated);
2481 SG(request_info).path_translated = NULL;
2484 if (free_query_string && SG(request_info).query_string) {
2485 free(SG(request_info).query_string);
2486 SG(request_info).query_string = NULL;
2543 if (SG(request_info).path_translated) {
2544 efree(SG(request_info).path_translated);
2545 SG(request_info).path_translated = NULL;
2554 if (free_query_string && SG(request_info).query_string) {
2555 free(SG(request_info).query_string);
2556 SG(request_info).query_string = NULL;