Lines Matching refs:server_context

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()
111 static void sapi_apache_flush(void *server_context) in sapi_apache_flush() argument
113 if (server_context) { in sapi_apache_flush()
115 rflush((request_rec *) server_context); in sapi_apache_flush()
117 bflush((request_rec *) server_context->connection->client); in sapi_apache_flush()
128 request_rec *r = (request_rec *) SG(server_context); 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()
257 array_header *arr = table_elts(((request_rec *) SG(server_context))->subprocess_env); in sapi_apache_register_server_variables()
290 …SE_SERVER, "PHP_SELF", &((request_rec *) SG(server_context))->uri, strlen(((request_rec *) SG(serv… 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()
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()
614 SG(server_context) = r; in send_php()