Lines Matching refs:SG

81 	ctx = SG(server_context);  in php_apache_sapi_ub_write()
97 ctx = SG(server_context); in php_apache_sapi_header_handler()
156 php_struct *ctx = SG(server_context); in php_apache_sapi_send_headers()
157 const char *sline = SG(sapi_headers).http_status_line; in php_apache_sapi_send_headers()
159 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers()
187 php_struct *ctx = SG(server_context); in php_apache_sapi_read_post()
218 php_struct *ctx = SG(server_context); in php_apache_sapi_get_stat()
243 php_struct *ctx = SG(server_context); in php_apache_sapi_read_cookies()
255 php_struct *ctx = SG(server_context); in php_apache_sapi_getenv()
270 php_struct *ctx = SG(server_context); in php_apache_sapi_register_variables()
308 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush()
309 SG(headers_sent) = 1; in php_apache_sapi_flush()
320 ctx = SG(server_context); in php_apache_sapi_log_message()
340 php_struct *ctx = SG(server_context); in php_apache_sapi_get_request_time()
476 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
477 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor()
478 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor()
479 SG(request_info).request_method = r->method; in php_apache_request_ctor()
480 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor()
481 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor()
482 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor()
486 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in php_apache_request_ctor()
496 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor()
497 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor()
500 ctx->r->user = apr_pstrdup(ctx->r->pool, SG(request_info).auth_user); in php_apache_request_ctor()
530 ((php_struct *)SG(server_context))->r = p; in php_apache_ini_dtor()
532 apr_pool_cleanup_run(r->pool, (void *)&SG(server_context), php_server_context_cleanup); in php_apache_ini_dtor()
551 ctx = SG(server_context); in php_handler()
554 ctx = SG(server_context) = apr_pcalloc(r->pool, sizeof(*ctx)); in php_handler()
559 …apr_pool_cleanup_register(r->pool, (void *)&SG(server_context), php_server_context_cleanup, apr_po… in php_handler()
615 ctx = SG(server_context); in php_handler()
692 apr_pool_cleanup_run(r->pool, (void *)&SG(server_context), php_server_context_cleanup); in php_handler()