Home
last modified time | relevance | path

Searched refs:server_context (Results 1 – 25 of 28) sorted by relevance

12

/PHP-5.5/sapi/apache/
H A Dmod_php5.c99 if (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()
223 request_rec *r = SG(server_context); in sapi_apache_send_headers()
312 if (SG(server_context)) { in php_apache_log_message()
335 SG(server_context) = NULL; in php_apache_request_shutdown()
382 if (SG(server_context) == NULL) { 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()
[all …]
H A Dphp_apache.c179 serv = ((request_rec *) SG(server_context))->server; in PHP_MINFO_FUNCTION()
248 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
267 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
298 ap_child_terminate( ((request_rec *)SG(server_context)) ); in PHP_FUNCTION()
326 table_set(((request_rec *)SG(server_context))->notes, note_name, note_val); in PHP_FUNCTION()
357 if (!(rr = sub_req_lookup_uri (filename, ((request_rec *) SG(server_context))))) { in PHP_FUNCTION()
401 env_arr = table_elts(((request_rec *) SG(server_context))->headers_in); in PHP_FUNCTION()
423 env_arr = table_elts(((request_rec *) SG(server_context))->headers_out); in PHP_FUNCTION()
441 request_rec *r = (request_rec *) SG(server_context); in PHP_FUNCTION()
469 if (!(rr = sub_req_lookup_uri(filename, ((request_rec *) SG(server_context))))) { in PHP_FUNCTION()
[all …]
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c81 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()
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()
296 ctx = server_context; in php_apache_sapi_flush()
300 if (!server_context) { in php_apache_sapi_flush()
320 ctx = SG(server_context); in php_apache_sapi_log_message()
551 ctx = SG(server_context); in php_handler()
[all …]
H A Dphp_functions.c61 php_struct *ctx = SG(server_context); in php_apache_lookup_uri()
185 ctx = SG(server_context); in PHP_FUNCTION()
209 ctx = SG(server_context); in PHP_FUNCTION()
232 ctx = SG(server_context); in PHP_FUNCTION()
266 ctx = SG(server_context); in PHP_FUNCTION()
302 ctx = SG(server_context); in PHP_FUNCTION()
373 server_rec *serv = ((php_struct *) SG(server_context))->r->server; in PHP_MINFO_FUNCTION()
437 …const apr_array_header_t *arr = apr_table_elts(((php_struct *) SG(server_context))->r->subprocess_… in PHP_MINFO_FUNCTION()
455 php_info_print_table_row(2, "HTTP Request", ((php_struct *) SG(server_context))->r->the_request); in PHP_MINFO_FUNCTION()
457 arr = apr_table_elts(((php_struct *) SG(server_context))->r->headers_in); in PHP_MINFO_FUNCTION()
[all …]
/PHP-5.5/sapi/apache2filter/
H A Dsapi_apache2.c75 ctx = SG(server_context); in php_apache_sapi_ub_write()
100 ctx = SG(server_context); in php_apache_sapi_header_handler()
148 php_struct *ctx = SG(server_context); in php_apache_sapi_send_headers()
160 php_struct *ctx = SG(server_context); in php_apache_sapi_read_post()
179 php_struct *ctx = SG(server_context); in php_apache_sapi_get_stat()
204 php_struct *ctx = SG(server_context); in php_apache_sapi_read_cookies()
257 ctx = server_context; in php_apache_sapi_flush()
261 if (!server_context) in php_apache_sapi_flush()
289 ctx = SG(server_context); in php_apache_sapi_log_message()
374 ctx = SG(server_context); in php_input_filter()
[all …]
H A Dphp_functions.c54 ctx = SG(server_context); in php_apache_lookup_uri()
161 ctx = SG(server_context); in PHP_FUNCTION()
181 ctx = SG(server_context); in PHP_FUNCTION()
204 ctx = SG(server_context); in PHP_FUNCTION()
235 ctx = SG(server_context); in PHP_FUNCTION()
264 ctx = SG(server_context); in PHP_FUNCTION()
/PHP-5.5/sapi/nsapi/
H A Dnsapi.c337 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()
470 static void sapi_nsapi_flush(void *server_context) in sapi_nsapi_flush() argument
472 nsapi_request_context *rc = (nsapi_request_context *)server_context; in sapi_nsapi_flush()
791 return REQ_TIME( ((nsapi_request_context *)SG(server_context))->rq ); in sapi_nsapi_get_request_time()
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()
[all …]
/PHP-5.5/sapi/continuity/
H A Dcapi.c135 rc = (capi_request_context *) SG(server_context); in sapi_capi_ub_write()
149 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_header_handler()
180 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_send_headers()
201 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_read_post()
227 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_read_cookies()
235 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_register_server_variables()
348 capi_request_context *rc = (capi_request_context *) SG(server_context); in capi_log_message()
484 SG(server_context) = request_context; in phpFservice()
/PHP-5.5/sapi/apache_hooks/
H A Dmod_php5.c244 if (SG(server_context)) { in sapi_apache_ub_write()
256 static void sapi_apache_flush(void *server_context) in sapi_apache_flush() argument
258 if (server_context) { in sapi_apache_flush()
260 rflush((request_rec *) server_context); in sapi_apache_flush()
273 request_rec *r = (request_rec *) SG(server_context); in sapi_apache_read_post()
314 request_rec *r = (request_rec *) SG(server_context); in sapi_apache_header_handler()
435 if (SG(server_context)) { in php_apache_log_message()
473 request_rec *r = (request_rec *) SG(server_context); in php_apache_sapi_activate()
500 return &((request_rec *) SG(server_context))->finfo; in php_apache_get_stat()
721 SG(server_context) = r; in send_php()
[all …]
H A Dphp_apache.c993 ap_basic_http_header((request_rec *)SG(server_context)); in PHP_FUNCTION()
1010 ap_send_http_trace((request_rec *)SG(server_context)); in PHP_FUNCTION()
1027 ap_send_http_options((request_rec *)SG(server_context)); in PHP_FUNCTION()
1102 ap_rwrite(buffer, buffer_len, (request_rec*)SG(server_context)); in PHP_FUNCTION()
1535 ap_child_terminate( ((request_rec *)SG(server_context)) ); in PHP_FUNCTION()
1563 table_set(((request_rec *)SG(server_context))->notes, arg_name, arg_val); in PHP_FUNCTION()
1592 serv = ((request_rec *) SG(server_context))->server; in PHP_MINFO_FUNCTION()
1659 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
1678 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
1814 request_rec *r = (request_rec *) SG(server_context); in PHP_FUNCTION()
[all …]
/PHP-5.5/sapi/pi3web/
H A Dpi3web_sapi.c53 LPCONTROL_BLOCK lpCB = (LPCONTROL_BLOCK) SG(server_context); in php_info_pi3web()
128 cb = (LPCONTROL_BLOCK) SG(server_context); in zend_pi3web_ub_write()
166 LPCONTROL_BLOCK lpCB = (LPCONTROL_BLOCK) SG(server_context); in sapi_pi3web_send_headers()
214 LPCONTROL_BLOCK lpCB = (LPCONTROL_BLOCK) SG(server_context); in sapi_pi3web_read_post()
247 LPCONTROL_BLOCK lpCB = (LPCONTROL_BLOCK) SG(server_context); in sapi_pi3web_read_cookies()
268 SG(server_context) = lpCB; in init_request_info()
285 LPCONTROL_BLOCK lpCB = (LPCONTROL_BLOCK) SG(server_context); in sapi_pi3web_register_variables()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c311 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_fcgi_ub_write()
327 static void sapi_cgi_flush(void *server_context) in sapi_cgi_flush() argument
334 static void sapi_fcgi_flush(void *server_context) in sapi_fcgi_flush() argument
336 fcgi_request *request = (fcgi_request*) server_context; in sapi_fcgi_flush()
731 request = (fcgi_request*) SG(server_context); in sapi_cgi_log_message()
931 sapi_cgi_flush(SG(server_context));
2172 SG(server_context) = NULL;
2222 SG(server_context) = NULL;
2334 SG(server_context) = NULL;
2375 SG(server_context) = NULL;
[all …]
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_main.c278 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgibin_single_write()
318 static void sapi_cgibin_flush(void *server_context) in sapi_cgibin_flush() argument
322 fcgi_request *request = (fcgi_request*) server_context; in sapi_cgibin_flush()
555 fcgi_request *request = (fcgi_request*) SG(server_context); in _sapi_cgibin_putenv()
599 request = (fcgi_request*) SG(server_context); in cgi_php_import_environment_variables()
664 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_log_fastcgi()
1736 SG(server_context) = NULL;
1759 SG(server_context) = NULL;
1883 SG(server_context) = (void *) &request;
1893 SG(server_context) = NULL;
[all …]
H A Dfpm_log.c236 char *env = fcgi_getenv((fcgi_request*) SG(server_context), format, strlen(format)); in fpm_log_write()
/PHP-5.5/sapi/embed/
H A Dphp_embed.c82 static void php_embed_flush(void *server_context) in php_embed_flush() argument
89 static void php_embed_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) in php_embed_send_header()
/PHP-5.5/main/
H A DSAPI.c414 if (SG(server_context)) { in sapi_activate_headers_only()
461 if (SG(server_context)) { in sapi_activate()
506 } else if (SG(server_context)) { in sapi_deactivate()
559 SG(server_context) = NULL; in sapi_initialize_empty_request()
902 sapi_module.send_header(&http_status_line, SG(server_context) TSRMLS_CC); in sapi_send_headers()
904 …ers).headers, (llist_apply_with_arg_func_t) sapi_module.send_header, SG(server_context) TSRMLS_CC); in sapi_send_headers()
909 sapi_module.send_header(&default_header, SG(server_context) TSRMLS_CC); in sapi_send_headers()
912 sapi_module.send_header(NULL, SG(server_context) TSRMLS_CC); in sapi_send_headers()
993 sapi_module.flush(SG(server_context)); in sapi_flush()
1074 if (sapi_module.get_request_time && SG(server_context)) { in sapi_get_request_time()
H A DSAPI.h119 void *server_context; member
228 void (*flush)(void *server_context);
236 void (*send_header)(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC);
/PHP-5.5/sapi/isapi/
H A Dphp5isapi.c161 lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in php_info_isapi()
210 ecb = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_ub_write()
246 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_send_headers()
329 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_read_post()
359 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_read_cookies()
604 lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in sapi_isapi_register_server_variables()
786 LPEXTENSION_CONTROL_BLOCK lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); in php_isapi_report_exception()
848 SG(server_context) = lpECB; in HttpExtensionProc()
/PHP-5.5/sapi/webjames/
H A Dwebjames.c64 static void sapi_webjames_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_… in sapi_webjames_send_header()
321 SG(server_context) = (void *) 1; in webjames_php_init()
/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c493 client = SG(server_context); in PHP_FUNCTION()
615 php_cli_server_client *client = SG(server_context); in sapi_cli_server_ub_write()
624 php_cli_server_client *client = server_context; in sapi_cli_server_flush()
649 php_cli_server_client *client = SG(server_context); in sapi_cli_server_send_headers()
686 php_cli_server_client *client = SG(server_context); in sapi_cli_server_read_cookies()
696 php_cli_server_client *client = SG(server_context); in sapi_cli_server_read_post()
2116 SG(server_context) = NULL; in php_cli_server_request_shutdown()
2165 SG(server_context) = client; in php_cli_server_dispatch()
2172 SG(server_context) = NULL; in php_cli_server_dispatch()
2208 SG(server_context) = NULL; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c323 static void sapi_cli_flush(void *server_context) /* {{{ */ in sapi_cli_flush() argument
410 static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) /… in sapi_cli_send_header()
/PHP-5.5/sapi/tux/
H A Dphp_tux.c439 SG(server_context) = (void *) 1; in TUXAPI_init()
444 if (SG(server_context) != NULL) { in doesnotmatter_fini()
/PHP-5.5/sapi/litespeed/
H A Dlsapi_main.c158 static void sapi_lsapi_flush( void * server_context TSRMLS_DC ) in sapi_lsapi_flush()
667 SG(server_context) = (void *) 1; in processReq()
801 SG(server_context) = (void *) 1; in cli_main()
/PHP-5.5/sapi/thttpd/
H A Dthttpd.c757 SG(server_context) = (void *) 1;
765 if (SG(server_context) != NULL) {
/PHP-5.5/sapi/aolserver/
H A Daolserver.c501 SG(server_context) = global_context; in php_ns_request_handler()

Completed in 101 milliseconds

12