Lines Matching refs:request_info
378 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers()
484 assert(SG(request_info).content_length >= SG(read_post_bytes)); in sapi_cgi_read_post()
486 remaining_bytes = (size_t)(SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post()
511 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_fcgi_read_post()
702 char *script_name = SG(request_info).request_uri; in sapi_cgi_register_variables()
749 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
866 if (!SG(request_info).path_translated) {
898 path_len = strlen(SG(request_info).path_translated);
901 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
903 memcpy(path, SG(request_info).path_translated, path_len + 1);
907 path = estrndup(SG(request_info).path_translated, path_len);
1176 SG(request_info).path_translated = NULL;
1177 SG(request_info).request_method = NULL;
1178 SG(request_info).proto_num = 1000;
1179 SG(request_info).query_string = NULL;
1180 SG(request_info).request_uri = NULL;
1181 SG(request_info).content_type = NULL;
1182 SG(request_info).content_length = 0;
1302 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_path_info);
1304 SG(request_info).request_uri = orig_script_name;
1383 if (!SG(request_info).request_uri) {
1389 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_script_name);
1391 SG(request_info).request_uri = orig_script_name;
1421 SG(request_info).request_uri = CGI_PUTENV("SCRIPT_NAME", env_script_name);
1423 SG(request_info).request_uri = env_script_name;
1430 SG(request_info).request_uri = env_path_info;
1432 SG(request_info).request_uri = env_script_name;
1440 SG(request_info).path_translated = estrdup(script_path_translated);
1443 SG(request_info).request_method = CGI_GETENV("REQUEST_METHOD");
1445 SG(request_info).query_string = CGI_GETENV("QUERY_STRING");
1446 SG(request_info).content_type = (content_type ? content_type : "" );
1447 SG(request_info).content_length = (content_length ? atol(content_length) : 0);
1872 SG(request_info).path_translated = NULL;
2331 SG(request_info).no_headers = 1;
2375 SG(request_info).no_headers = 1;
2398 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2399 SG(request_info).path_translated = script_file;
2402 SG(request_info).argc = argc - (php_optind - 1);
2403 SG(request_info).argv = &argv[php_optind - 1];
2404 SG(request_info).argv[0] = script_file;
2407 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2408 SG(request_info).path_translated = estrdup(argv[php_optind]);
2410 SG(request_info).argc = argc - php_optind;
2411 SG(request_info).argv = &argv[php_optind];
2416 SG(request_info).no_headers = 1;
2428 if (!SG(request_info).query_string && argc > php_optind) {
2448 SG(request_info).query_string = s;
2474 SG(request_info).no_headers = 1;
2482 if (cgi || fastcgi || SG(request_info).path_translated) {
2501 if (SG(request_info).path_translated) {
2502 efree(SG(request_info).path_translated);
2503 SG(request_info).path_translated = NULL;
2506 if (free_query_string && SG(request_info).query_string) {
2507 free(SG(request_info).query_string);
2508 SG(request_info).query_string = NULL;
2564 if (SG(request_info).path_translated) {
2565 efree(SG(request_info).path_translated);
2566 SG(request_info).path_translated = NULL;
2575 if (free_query_string && SG(request_info).query_string) {
2576 free(SG(request_info).query_string);
2577 SG(request_info).query_string = NULL;