Lines Matching refs:SG

99 	if (SG(server_context)) {  in sapi_apache_ub_write()
100 ret = rwrite(str, str_length, (request_rec *) SG(server_context)); in sapi_apache_ub_write()
128 request_rec *r = (request_rec *) SG(server_context); in sapi_apache_read_post()
137 if (!SG(read_post_bytes) && !ap_should_client_block(r)) { in sapi_apache_read_post()
160 return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, "HTTP_COOKIE"); in sapi_apache_read_cookies()
169 request_rec *r = (request_rec *) SG(server_context); in sapi_apache_header_handler()
223 request_rec *r = SG(server_context); in sapi_apache_send_headers()
224 const char *sline = SG(sapi_headers).http_status_line; in sapi_apache_send_headers()
231 r->status = SG(sapi_headers).http_response_code; in sapi_apache_send_headers()
257 array_header *arr = table_elts(((request_rec *) SG(server_context))->subprocess_env); in sapi_apache_register_server_variables()
290 …ilter(PARSE_SERVER, "PHP_SELF", &((request_rec *) SG(server_context))->uri, strlen(((request_rec *… in sapi_apache_register_server_variables()
291 …php_register_variable("PHP_SELF", ((request_rec *) SG(server_context))->uri, track_vars_array TSRM… in sapi_apache_register_server_variables()
312 if (SG(server_context)) { in php_apache_log_message()
314 …aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, ((request_rec *) SG(server_context))->server, "%s"… in php_apache_log_message()
316 log_error(message, ((request_rec *) SG(server_context))->server); in php_apache_log_message()
335 SG(server_context) = NULL; in php_apache_request_shutdown()
347 request_rec *r = (request_rec *) SG(server_context); in php_apache_sapi_activate()
365 SG(request_info).headers_only = r->header_only; in php_apache_sapi_activate()
374 return &((request_rec *) SG(server_context))->finfo; in php_apache_get_stat()
382 if (SG(server_context) == NULL) { in php_apache_getenv()
386 return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name); in php_apache_getenv()
395 request_rec *r = SG(server_context); in sapi_apache_get_fd()
413 request_rec *r = SG(server_context); in sapi_apache_force_http_10()
443 return (double) ((request_rec *)SG(server_context))->request_time; in php_apache_get_request_time()
452 ap_child_terminate((request_rec *)SG(server_context)); in sapi_apache_child_terminate()
522 request_rec *r = ((request_rec *) SG(server_context)); in init_request_info()
527 SG(request_info).query_string = r->args; in init_request_info()
528 SG(request_info).path_translated = r->filename; in init_request_info()
529 SG(request_info).request_uri = r->uri; in init_request_info()
530 SG(request_info).request_method = (char *)r->method; in init_request_info()
531 SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE"); in init_request_info()
532 SG(request_info).content_length = (content_length ? atol(content_length) : 0); in init_request_info()
533 SG(sapi_headers).http_response_code = r->status; in init_request_info()
534 SG(request_info).proto_num = r->proto_num; in init_request_info()
540 SG(request_info).auth_user = NULL; in init_request_info()
541 SG(request_info).auth_password = NULL; in init_request_info()
542 SG(request_info).auth_digest = NULL; in init_request_info()
552 SG(request_info).auth_user = estrdup(tmp_user); in init_request_info()
555 SG(request_info).auth_password = estrdup(tmp); in init_request_info()
559 SG(request_info).auth_digest = estrdup(authorization); in init_request_info()
580 if (SG(default_mimetype) || SG(default_charset)) { in php_apache_get_default_mimetype()
614 SG(server_context) = r; in send_php()