/PHP-5.5/sapi/apache/ |
H A D | mod_php5.c | 99 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 D | php_apache.c | 179 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 D | sapi_apache2.c | 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() 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 D | php_functions.c | 61 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 D | sapi_apache2.c | 75 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 D | php_functions.c | 54 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 D | nsapi.c | 337 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 D | capi.c | 135 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 D | mod_php5.c | 244 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 D | php_apache.c | 993 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 D | pi3web_sapi.c | 53 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 D | cgi_main.c | 311 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 D | fpm_main.c | 278 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 D | fpm_log.c | 236 char *env = fcgi_getenv((fcgi_request*) SG(server_context), format, strlen(format)); in fpm_log_write()
|
/PHP-5.5/sapi/embed/ |
H A D | php_embed.c | 82 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 D | SAPI.c | 414 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 D | SAPI.h | 119 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 D | php5isapi.c | 161 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 D | webjames.c | 64 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 D | php_cli_server.c | 493 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 D | php_cli.c | 323 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 D | php_tux.c | 439 SG(server_context) = (void *) 1; in TUXAPI_init() 444 if (SG(server_context) != NULL) { in doesnotmatter_fini()
|
/PHP-5.5/sapi/litespeed/ |
H A D | lsapi_main.c | 158 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 D | thttpd.c | 757 SG(server_context) = (void *) 1; 765 if (SG(server_context) != NULL) {
|
/PHP-5.5/sapi/aolserver/ |
H A D | aolserver.c | 501 SG(server_context) = global_context; in php_ns_request_handler()
|