Lines Matching refs:SG

244 	if (SG(server_context)) {  in sapi_apache_ub_write()
245 ret = rwrite(str, str_length, (request_rec *) SG(server_context)); in sapi_apache_ub_write()
273 request_rec *r = (request_rec *) SG(server_context); in sapi_apache_read_post()
282 if (!SG(read_post_bytes) && !ap_should_client_block(r)) { in sapi_apache_read_post()
305 return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, "HTTP_COOKIE"); in sapi_apache_read_cookies()
314 request_rec *r = (request_rec *) SG(server_context); in sapi_apache_header_handler()
366 if(SG(server_context) == NULL) { /* server_context is not here anymore */ in sapi_apache_send_headers()
370 ((request_rec *) SG(server_context))->status = SG(sapi_headers).http_response_code; in sapi_apache_send_headers()
375 send_http_header((request_rec *) SG(server_context)); in sapi_apache_send_headers()
387 array_header *arr = table_elts(((request_rec *) SG(server_context))->subprocess_env); in sapi_apache_register_server_variables()
415 …php_register_variable("PHP_SELF", ((request_rec *) SG(server_context))->uri, track_vars_array TSRM… in sapi_apache_register_server_variables()
435 if (SG(server_context)) { in php_apache_log_message()
437 …aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, ((request_rec *) SG(server_context))->server, "%s"… in php_apache_log_message()
439 log_error(message, ((request_rec *) SG(server_context))->server); in php_apache_log_message()
455SG(server_context) = NULL; /* The server context (request) is invalid by the time run_cleanups() i… in php_apache_request_shutdown()
456 if(SG(sapi_started)) { in php_apache_request_shutdown()
458 SG(sapi_started) = 0; in php_apache_request_shutdown()
473 request_rec *r = (request_rec *) SG(server_context); in php_apache_sapi_activate()
491 SG(request_info).headers_only = r->header_only; in php_apache_sapi_activate()
500 return &((request_rec *) SG(server_context))->finfo; in php_apache_get_stat()
508 return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name); in php_apache_getenv()
574 request_rec *r = ((request_rec *) SG(server_context)); in init_request_info()
579 SG(request_info).query_string = r->args; in init_request_info()
580 SG(request_info).path_translated = r->filename; in init_request_info()
581 SG(request_info).request_uri = r->uri; in init_request_info()
582 SG(request_info).request_method = (char *)r->method; in init_request_info()
583 SG(request_info).proto_num = r->proto_num; in init_request_info()
584 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE"); in init_request_info()
585 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in init_request_info()
586 SG(sapi_headers).http_response_code = r->status; in init_request_info()
592 SG(request_info).auth_user = NULL; in init_request_info()
593 SG(request_info).auth_password = NULL; in init_request_info()
602 SG(request_info).auth_user = estrdup(tmp_user); in init_request_info()
605 SG(request_info).auth_password = estrdup(tmp); in init_request_info()
609 SG(request_info).auth_digest = estrdup(authorization); in init_request_info()
630 if (SG(default_mimetype) || SG(default_charset)) { in php_apache_get_default_mimetype()
721 SG(server_context) = r; in send_php()
1283 SG(server_context) = r; in php_run_hook()