Lines Matching refs:request_info
277 php_register_variable("PHP_SELF", SG(request_info).request_uri, track_vars_array TSRMLS_CC); in sapi_thttpd_register_variables()
280 …php_register_variable("REQUEST_METHOD", (char *) SG(request_info).request_method, track_vars_array… in sapi_thttpd_register_variables()
281 php_register_variable("REQUEST_URI", SG(request_info).request_uri, track_vars_array TSRMLS_CC); in sapi_thttpd_register_variables()
282 …php_register_variable("PATH_TRANSLATED", SG(request_info).path_translated, track_vars_array TSRMLS… in sapi_thttpd_register_variables()
422 highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC);
425 file_handle.filename = SG(request_info).path_translated;
442 SG(request_info).query_string = TG(hc)->query?strdup(TG(hc)->query):NULL;
447 SG(request_info).path_translated = s.c;
453 SG(request_info).request_uri = s.c;
454 SG(request_info).request_method = httpd_method_str(TG(hc)->method);
455 if (TG(hc)->one_one) SG(request_info).proto_num = 1001;
456 else SG(request_info).proto_num = 1000;
459 SG(request_info).content_type = strdup(TG(hc)->contenttype);
460 SG(request_info).content_length = TG(hc)->contentlength == -1 ? 0
463 TG(unconsumed_length) = SG(request_info).content_length;
471 if (SG(request_info).query_string)
472 free(SG(request_info).query_string);
473 free(SG(request_info).request_uri);
474 free(SG(request_info).path_translated);
475 if (SG(request_info).content_type)
476 free(SG(request_info).content_type);