Lines Matching refs:SG
119 len = slprintf(status_line, 30, "HTTP/1.1 %d NA\r\n", SG(sapi_headers).http_response_code); in sapi_tux_send_headers()
124 TG(req)->http_status = SG(sapi_headers).http_response_code; in sapi_tux_send_headers()
201 php_register_variable("PHP_SELF", SG(request_info).request_uri, track_vars_array TSRMLS_CC); in sapi_tux_register_variables()
204 …php_register_variable("REQUEST_METHOD", (char *) SG(request_info).request_method, track_vars_array… in sapi_tux_register_variables()
207 php_register_variable("REQUEST_URI", SG(request_info).request_uri, track_vars_array TSRMLS_CC); in sapi_tux_register_variables()
208 …php_register_variable("PATH_TRANSLATED", SG(request_info).path_translated, track_vars_array TSRMLS… in sapi_tux_register_variables()
301 file_handle.filename = SG(request_info).path_translated; in tux_module_main()
324 SG(request_info).query_string = strdup(TG(req)->query); in tux_request_ctor()
332 SG(request_info).path_translated = s.c; in tux_request_ctor()
338 SG(request_info).request_uri = s.c; in tux_request_ctor()
339 SG(request_info).request_method = CGI_REQUEST_METHOD(TG(req)); in tux_request_ctor()
340 if(TG(req)->http_version == HTTP_1_1) SG(request_info).proto_num = 1001; in tux_request_ctor()
341 else SG(request_info).proto_num = 1000; in tux_request_ctor()
342 SG(sapi_headers).http_response_code = 200; in tux_request_ctor()
343 SG(request_info).content_type = TG(req)->content_type; in tux_request_ctor()
344 SG(request_info).content_length = 0; /* TG(req)->contentlength; */ in tux_request_ctor()
358 if (SG(request_info).query_string) in tux_request_dtor()
359 free(SG(request_info).query_string); in tux_request_dtor()
360 free(SG(request_info).request_uri); in tux_request_dtor()
361 free(SG(request_info).path_translated); in tux_request_dtor()
439 SG(server_context) = (void *) 1; in TUXAPI_init()
444 if (SG(server_context) != NULL) { in doesnotmatter_fini()