Lines Matching refs:SG
150 if(SG(sapi_headers).send_default_content_type) { in php_ns_sapi_send_headers()
154 Ns_ConnFlushHeaders(NSG(conn), SG(sapi_headers).http_response_code); in php_ns_sapi_send_headers()
353 ADD_STRINGX("PATH_TRANSLATED", SG(request_info).path_translated); in php_ns_sapi_register_variables()
354 ADD_STRINGX("REQUEST_URI", SG(request_info).request_uri); in php_ns_sapi_register_variables()
355 ADD_STRINGX("PHP_SELF", SG(request_info).request_uri); in php_ns_sapi_register_variables()
410 file_handle.filename = SG(request_info).path_translated; in php_ns_module_main()
442 SG(request_info).query_string = safe_strdup(NSG(conn->request->query)); in php_ns_request_ctor()
448 SG(request_info).path_translated = safe_strdup(Ns_DStringValue(&ds)); in php_ns_request_ctor()
451 SG(request_info).request_uri = strdup(SG(request_info).path_translated + strlen(root)); in php_ns_request_ctor()
452 SG(request_info).request_method = NSG(conn)->request->method; in php_ns_request_ctor()
453 if(NSG(conn)->request->version > 1.0) SG(request_info).proto_num = 1001; in php_ns_request_ctor()
454 else SG(request_info).proto_num = 1000; in php_ns_request_ctor()
455 SG(request_info).content_length = Ns_ConnContentLength(NSG(conn)); in php_ns_request_ctor()
457 SG(request_info).content_type = index == -1 ? NULL : in php_ns_request_ctor()
459 SG(sapi_headers).http_response_code = 200; in php_ns_request_ctor()
464 SG(request_info).auth_user = tmp; in php_ns_request_ctor()
469 SG(request_info).auth_password = tmp; in php_ns_request_ctor()
471 NSG(data_avail) = SG(request_info).content_length; in php_ns_request_ctor()
482 free(SG(request_info).path_translated); in php_ns_request_dtor()
483 if (SG(request_info).query_string) in php_ns_request_dtor()
484 free(SG(request_info).query_string); in php_ns_request_dtor()
485 free(SG(request_info).request_uri); in php_ns_request_dtor()
501 SG(server_context) = global_context; in php_ns_request_handler()