/PHP-5.3/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() 317 if (SG(server_context)) { in php_apache_log_message() 340 SG(server_context) = NULL; in php_apache_request_shutdown() 387 if (SG(server_context) == NULL) { in php_apache_getenv() 400 request_rec *r = SG(server_context); in sapi_apache_get_fd() 418 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() 425 env_arr = table_elts(((request_rec *) SG(server_context))->headers_out); in PHP_FUNCTION() 443 request_rec *r = (request_rec *) SG(server_context); in PHP_FUNCTION() 471 if (!(rr = sub_req_lookup_uri(filename, ((request_rec *) SG(server_context))))) { in PHP_FUNCTION() [all …]
|
/PHP-5.3/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() 321 ctx = SG(server_context); in php_apache_sapi_log_message() 553 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.3/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() 290 ctx = SG(server_context); in php_apache_sapi_log_message() 375 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.3/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() 432 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in PHP_FUNCTION() 458 nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); in sapi_nsapi_ub_write() 472 static void sapi_nsapi_flush(void *server_context) in sapi_nsapi_flush() argument 474 nsapi_request_context *rc = (nsapi_request_context *)server_context; in sapi_nsapi_flush() 796 return REQ_TIME( ((nsapi_request_context *)SG(server_context))->rq ); in sapi_nsapi_get_request_time() 811 ((nsapi_request_context *)SG(server_context))->rq in sapi_nsapi_get_stat() 1003 if (SG(server_context)) { in php5_execute() 1027 SG(server_context) = request_context; in php5_execute() [all …]
|
/PHP-5.3/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() 349 capi_request_context *rc = (capi_request_context *) SG(server_context); in capi_log_message() 485 SG(server_context) = request_context; in phpFservice()
|
/PHP-5.3/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() 440 if (SG(server_context)) { in php_apache_log_message() 478 request_rec *r = (request_rec *) SG(server_context); in php_apache_sapi_activate() 505 return &((request_rec *) SG(server_context))->finfo; in php_apache_get_stat() 726 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() 1815 request_rec *r = (request_rec *) SG(server_context); in PHP_FUNCTION() [all …]
|
/PHP-5.3/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.3/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.3/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() 551 fcgi_request *request = (fcgi_request*) SG(server_context); in _sapi_cgibin_putenv() 596 request = (fcgi_request*) SG(server_context); in cgi_php_import_environment_variables() 669 fcgi_request *request = (fcgi_request*) SG(server_context); in sapi_cgi_log_fastcgi() 1716 SG(server_context) = NULL; 1739 SG(server_context) = NULL; 1858 SG(server_context) = (void *) &request; 1869 SG(server_context) = NULL; [all …]
|
H A D | fpm_log.c | 234 char *env = fcgi_getenv((fcgi_request*) SG(server_context), format, strlen(format)); in fpm_log_write()
|
/PHP-5.3/sapi/cgi/ |
H A D | cgi_main.c | 280 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 321 fcgi_request *request = (fcgi_request*) server_context; in sapi_cgibin_flush() 695 request = (fcgi_request*) SG(server_context); in sapi_cgi_log_message() 881 sapi_cgibin_flush(SG(server_context)); 1864 SG(server_context) = (void *) &request; 1898 SG(server_context) = NULL; 1950 SG(server_context) = NULL; 2062 SG(server_context) = NULL; 2103 SG(server_context) = NULL; [all …]
|
/PHP-5.3/main/ |
H A D | SAPI.h | 119 void *server_context; member 225 void (*flush)(void *server_context); 233 void (*send_header)(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC);
|
H A D | SAPI.c | 323 if (SG(server_context)) { in sapi_activate_headers_only() 370 if (SG(server_context)) { in sapi_activate() 417 } else if (SG(server_context)) { in sapi_deactivate() 466 SG(server_context) = NULL; in sapi_initialize_empty_request() 861 sapi_module.send_header(&http_status_line, SG(server_context) TSRMLS_CC); in sapi_send_headers() 863 …ers).headers, (llist_apply_with_arg_func_t) sapi_module.send_header, SG(server_context) TSRMLS_CC); in sapi_send_headers() 868 sapi_module.send_header(&default_header, SG(server_context) TSRMLS_CC); in sapi_send_headers() 871 sapi_module.send_header(NULL, SG(server_context) TSRMLS_CC); in sapi_send_headers() 955 sapi_module.flush(SG(server_context)); in sapi_flush() 1032 if (sapi_module.get_request_time && SG(server_context)) { in sapi_get_request_time()
|
/PHP-5.3/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.3/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.3/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.3/sapi/litespeed/ |
H A D | lsapi_main.c | 159 static void sapi_lsapi_flush( void * server_context ) in sapi_lsapi_flush() argument 566 SG(server_context) = (void *) 1; in processReq() 689 SG(server_context) = (void *) 1; in cli_main()
|
/PHP-5.3/sapi/thttpd/ |
H A D | thttpd.c | 757 SG(server_context) = (void *) 1; 765 if (SG(server_context) != NULL) {
|
/PHP-5.3/sapi/aolserver/ |
H A D | aolserver.c | 501 SG(server_context) = global_context; in php_ns_request_handler()
|
/PHP-5.3/sapi/cli/ |
H A D | php_cli.c | 304 static void sapi_cli_flush(void *server_context) /* {{{ */ in sapi_cli_flush() argument 391 static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC) /… in sapi_cli_send_header()
|
/PHP-5.3/sapi/roxen/ |
H A D | roxen.c | 636 SG(server_context) = (void *)1; /* avoid server_context == NULL */ in f_php_roxen_request_handler()
|