Lines Matching refs:SG
337 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in PHP_FUNCTION()
406 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in PHP_FUNCTION()
430 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in PHP_FUNCTION()
456 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_ub_write()
458 if (!SG(headers_sent)) { in sapi_nsapi_ub_write()
480 if (!SG(headers_sent)) { in sapi_nsapi_flush()
496 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in php_nsapi_remove_header()
521 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_header_handler()
571 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_send_headers()
573 if (SG(sapi_headers).send_default_content_type) { in sapi_nsapi_send_headers()
581 protocol_status(rc->sn, rc->rq, SG(sapi_headers).http_response_code, NULL); in sapi_nsapi_send_headers()
593 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_read_post()
602 count_bytes = MIN(count_bytes, SG(request_info).content_length-rc->read_post_bytes); in sapi_nsapi_read_post()
603 content_length = SG(request_info).content_length; in sapi_nsapi_read_post()
652 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_read_cookies()
660 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_register_server_variables()
748 if (SG(request_info).request_uri) { in sapi_nsapi_register_server_variables()
749 pos = strlen(SG(request_info).request_uri); in sapi_nsapi_register_server_variables()
751 if (SG(request_info).query_string) { in sapi_nsapi_register_server_variables()
752 spprintf(&value, 0, "%s?%s", SG(request_info).request_uri, SG(request_info).query_string); in sapi_nsapi_register_server_variables()
758 …php_register_variable_safe("REQUEST_URI", SG(request_info).request_uri, pos, track_vars_array TSRM… in sapi_nsapi_register_server_variables()
767 …php_register_variable_safe("SCRIPT_NAME", SG(request_info).request_uri, pos, track_vars_array TSRM… in sapi_nsapi_register_server_variables()
769 …php_register_variable("SCRIPT_FILENAME", SG(request_info).path_translated, track_vars_array TSRMLS… in sapi_nsapi_register_server_variables()
780 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in nsapi_log_message()
791 return REQ_TIME( ((nsapi_request_context *)SG(server_context))->rq ); in sapi_nsapi_get_request_time()
805 SG(request_info).path_translated, in sapi_nsapi_get_stat()
806 ((nsapi_request_context *)SG(server_context))->rq in sapi_nsapi_get_stat()
998 if (SG(server_context)) { in php5_execute()
1022 SG(server_context) = request_context; in php5_execute()
1023 SG(request_info).query_string = query_string; in php5_execute()
1024 SG(request_info).request_uri = uri; in php5_execute()
1025 SG(request_info).request_method = request_method; in php5_execute()
1026 SG(request_info).path_translated = path_translated; in php5_execute()
1027 SG(request_info).content_type = content_type; in php5_execute()
1028 SG(request_info).content_length = (content_length == NULL) ? 0 : strtoul(content_length, 0, 0); in php5_execute()
1029 SG(sapi_headers).http_response_code = (error_directive) ? rq->status_num : 200; in php5_execute()
1036 file_handle.filename = SG(request_info).path_translated; in php5_execute()
1040 fst = request_stat_path(SG(request_info).path_translated, rq); in php5_execute()
1058 …ndval("fn", pb), sn, rq, "Cannot execute PHP script: %s (File not found)", SG(request_info).path_t… in php5_execute()
1068 SG(server_context) = NULL; in php5_execute()