Home
last modified time | relevance | path

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

12

/PHP-5.3/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()
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 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()
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 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()
321 ctx = SG(server_context); in php_apache_sapi_log_message()
553 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.3/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()
290 ctx = SG(server_context); in php_apache_sapi_log_message()
375 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.3/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()
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 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()
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 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()
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 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()
1815 request_rec *r = (request_rec *) SG(server_context); in PHP_FUNCTION()
[all …]
/PHP-5.3/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.3/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.3/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()
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 Dfpm_log.c234 char *env = fcgi_getenv((fcgi_request*) SG(server_context), format, strlen(format)); in fpm_log_write()
/PHP-5.3/sapi/cgi/
H A Dcgi_main.c280 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 DSAPI.h119 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 DSAPI.c323 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 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.3/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.3/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.3/sapi/litespeed/
H A Dlsapi_main.c159 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 Dthttpd.c757 SG(server_context) = (void *) 1;
765 if (SG(server_context) != NULL) {
/PHP-5.3/sapi/aolserver/
H A Daolserver.c501 SG(server_context) = global_context; in php_ns_request_handler()
/PHP-5.3/sapi/cli/
H A Dphp_cli.c304 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 Droxen.c636 SG(server_context) = (void *)1; /* avoid server_context == NULL */ in f_php_roxen_request_handler()

Completed in 78 milliseconds

12