Lines Matching refs:request_info

389 	if (SG(request_info).no_headers == 1) {  in sapi_cgi_send_headers()
493 assert(SG(request_info).content_length >= SG(read_post_bytes)); in sapi_cgi_read_post()
495 remaining_bytes = (size_t)(SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post()
520 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_fcgi_read_post()
714 char *script_name = SG(request_info).request_uri; in sapi_cgi_register_variables()
761 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
879 if (!SG(request_info).path_translated) {
906 path_len = strlen(SG(request_info).path_translated);
909 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
911 memcpy(path, SG(request_info).path_translated, path_len + 1);
915 path = estrndup(SG(request_info).path_translated, path_len);
1193 SG(request_info).path_translated = NULL;
1194 SG(request_info).request_method = NULL;
1195 SG(request_info).proto_num = 1000;
1196 SG(request_info).query_string = NULL;
1197 SG(request_info).request_uri = NULL;
1198 SG(request_info).content_type = NULL;
1199 SG(request_info).content_length = 0;
1319 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_path_info);
1321 SG(request_info).request_uri = orig_script_name;
1401 if (!SG(request_info).request_uri) {
1407 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_script_name);
1409 SG(request_info).request_uri = orig_script_name;
1439 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_script_name);
1441 SG(request_info).request_uri = env_script_name;
1448 SG(request_info).request_uri = env_path_info;
1450 SG(request_info).request_uri = env_script_name;
1458 SG(request_info).path_translated = estrdup(script_path_translated);
1461 SG(request_info).request_method = CGI_GETENV("REQUEST_METHOD");
1463 SG(request_info).query_string = CGI_GETENV("QUERY_STRING");
1464 SG(request_info).content_type = (content_type ? content_type : "" );
1465 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
1966 SG(request_info).path_translated = NULL;
2398 SG(request_info).no_headers = 1;
2442 SG(request_info).no_headers = 1;
2469 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2470 SG(request_info).path_translated = script_file;
2473 SG(request_info).argc = argc - (php_optind - 1);
2474 SG(request_info).argv = &argv[php_optind - 1];
2475 SG(request_info).argv[0] = script_file;
2478 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2479 SG(request_info).path_translated = estrdup(argv[php_optind]);
2481 SG(request_info).argc = argc - php_optind;
2482 SG(request_info).argv = &argv[php_optind];
2487 SG(request_info).no_headers = 1;
2499 if (!SG(request_info).query_string && argc > php_optind) {
2519 SG(request_info).query_string = s;
2529 if (SG(request_info).path_translated || cgi || fastcgi) {
2531 file_handle.filename = SG(request_info).path_translated;
2554 SG(request_info).no_headers = 1;
2562 if (cgi || fastcgi || SG(request_info).path_translated) {
2581 if (SG(request_info).path_translated) {
2582 efree(SG(request_info).path_translated);
2583 SG(request_info).path_translated = NULL;
2586 if (free_query_string && SG(request_info).query_string) {
2587 free(SG(request_info).query_string);
2588 SG(request_info).query_string = NULL;
2718 if (SG(request_info).path_translated) {
2719 efree(SG(request_info).path_translated);
2720 SG(request_info).path_translated = NULL;
2729 if (free_query_string && SG(request_info).query_string) {
2730 free(SG(request_info).query_string);
2731 SG(request_info).query_string = NULL;