Lines Matching refs:SG
182 if (!SG(sapi_headers).http_status_line) { in sapi_thttpd_send_headers()
185 SG(sapi_headers).http_response_code); in sapi_thttpd_send_headers()
189 ADD_VEC(SG(sapi_headers).http_status_line, in sapi_thttpd_send_headers()
190 strlen(SG(sapi_headers).http_status_line)); in sapi_thttpd_send_headers()
193 TG(hc)->status = SG(sapi_headers).http_response_code; in sapi_thttpd_send_headers()
195 if (SG(sapi_headers).send_default_content_type) { in sapi_thttpd_send_headers()
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;
457 SG(sapi_headers).http_response_code = 200;
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);
757 SG(server_context) = (void *) 1;
765 if (SG(server_context) != NULL) {