/PHP-5.6/main/ |
H A D | SAPI.c | 184 if (SG(request_info).post_entry && SG(request_info).content_type_dup) { in sapi_handle_post() 267 SG(post_read) = 1; in sapi_read_post_block() 275 if ((SG(post_max_size) > 0) && (SG(request_info).content_length > SG(post_max_size))) { in SAPI_POST_READER_FUNC() 277 SG(request_info).content_length, SG(post_max_size)); in SAPI_POST_READER_FUNC() 301 if ((SG(post_max_size) > 0) && (SG(read_post_bytes) > SG(post_max_size))) { in SAPI_POST_READER_FUNC() 470 SG(post_read) = 0; in sapi_activate() 570 SG(request_info).auth_digest = SG(request_info).auth_user = SG(request_info).auth_password = NULL; in sapi_initialize_empty_request() 684 if (SG(headers_sent) && !SG(request_info).no_headers) { in sapi_header_op() 863 if (SG(headers_sent) || SG(request_info).no_headers || SG(callback_run)) { in sapi_send_headers() 883 if (SG(callback_func) && !SG(callback_run)) { in sapi_send_headers() [all …]
|
H A D | php_content_types.c | 38 if (!SG(request_info).request_body) { in populate_raw_post_data() 43 return (zend_bool) !SG(request_info).post_entry; in populate_raw_post_data() 53 if (!strcmp(SG(request_info).request_method, "POST")) { in SAPI_POST_READER_FUNC() 54 if (NULL == SG(request_info).post_entry) { in SAPI_POST_READER_FUNC() 63 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_READER_FUNC() 64 length = php_stream_copy_to_mem(SG(request_info).request_body, &data, PHP_STREAM_COPY_ALL, 0); in SAPI_POST_READER_FUNC() 65 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_READER_FUNC()
|
/PHP-5.6/sapi/phttpd/ |
H A D | phttpd.c | 99 if (SG(sapi_headers).send_default_content_type) { in php_phttpd_sapi_send_headers() 188 SG(request_info).query_string = PHG(cip)->hip->request; in php_phttpd_request_ctor() 190 SG(request_info).path_translated = malloc(MAXPATHLEN); in php_phttpd_request_ctor() 191 SG(sapi_headers).http_response_code = 200; in php_phttpd_request_ctor() 212 SG(request_info).request_uri = SG(request_info).path_translated + strlen(root); in php_phttpd_request_ctor() 215 SG(request_info).content_type = index == -1 ? NULL : in php_phttpd_request_ctor() 222 SG(request_info).auth_user = tmp; in php_phttpd_request_ctor() 228 SG(request_info).auth_password = tmp; in php_phttpd_request_ctor() 230 NSG(data_avail) = SG(request_info).content_length; in php_phttpd_request_ctor() 237 free(SG(request_info).path_translated); in php_phttpd_request_dtor() [all …]
|
/PHP-5.6/sapi/pi3web/ |
H A D | pi3web_sapi.c | 128 cb = (LPCONTROL_BLOCK) SG(server_context); in zend_pi3web_ub_write() 172 if (SG(sapi_headers).send_default_content_type) { in sapi_pi3web_send_headers() 181 if (SG(sapi_headers).send_default_content_type) { in sapi_pi3web_send_headers() 194 if (SG(sapi_headers).http_status_line) { in sapi_pi3web_send_headers() 195 efree(SG(sapi_headers).http_status_line); in sapi_pi3web_send_headers() 196 SG(sapi_headers).http_status_line = 0; in sapi_pi3web_send_headers() 268 SG(server_context) = lpCB; in init_request_info() 272 SG(request_info).request_uri = lpCB->lpszUri; in init_request_info() 277 SG(sapi_headers).http_response_code = 200; in init_request_info() 403 if (SG(request_info).cookie_data) { in PHP5_wrapper() [all …]
|
/PHP-5.6/sapi/isapi/ |
H A D | php5isapi.c | 544 if (!SG(request_info).auth_user || !SG(request_info).auth_password || in sapi_isapi_register_iis_variables() 545 !SG(request_info).auth_user[0] || !SG(request_info).auth_password[0]) { in sapi_isapi_register_iis_variables() 553 if (SG(request_info).auth_user) { in sapi_isapi_register_iis_variables() 556 if (SG(request_info).auth_password) { in sapi_isapi_register_iis_variables() 609 if (SG(request_info).cookie_data) { in sapi_isapi_register_server_variables() 713 SG(request_info).auth_user = NULL; in HttpFilterProc() 750 SG(request_info).auth_user = SG(request_info).auth_password = SG(request_info).auth_digest = NULL; in init_request_info() 784 if (!SG(headers_sent)) { in php_isapi_report_exception() 795 SG(headers_sent)=1; in php_isapi_report_exception() 848 SG(server_context) = lpECB; in HttpExtensionProc() [all …]
|
/PHP-5.6/sapi/cgi/ |
H A D | cgi_main.c | 516 count_bytes = MIN(count_bytes, SG(request_info).content_length - SG(read_post_bytes)); in sapi_cgi_read_post() 532 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_fcgi_read_post() 726 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 929 if (SG(sapi_started)) { 2127 SG(headers_sent) = 1; 2186 SG(headers_sent) = 1; 2204 SG(headers_sent) = 1; 2236 SG(headers_sent) = 1; 2281 SG(headers_sent) = 1; 2348 SG(headers_sent) = 1; [all …]
|
/PHP-5.6/sapi/fpm/fpm/ |
H A D | fpm_main.c | 503 size_t remaining = SG(request_info).content_length - SG(read_post_bytes); in sapi_cgi_read_post() 653 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 851 if (SG(sapi_started)) { 1724 SG(headers_sent) = 1; 1761 SG(headers_sent) = 1; 1776 SG(headers_sent) = 1; 1795 SG(server_context) = NULL; 1799 SG(headers_sent) = 1; 1812 SG(headers_sent) = 1; 1929 SG(server_context) = NULL; [all …]
|
H A D | fpm_status.c | 59 if (!SG(request_info).request_uri) { in fpm_status_handle_request() 64 …if (fpm_status_ping_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_inf… in fpm_status_handle_request() 69 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request() 72 if (SG(request_info).headers_only) { in fpm_status_handle_request() 81 if (fpm_status_uri && !strcmp(fpm_status_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 87 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 97 SG(sapi_headers).http_response_code = 503; in fpm_status_handle_request() 110 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 121 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request() 124 if (SG(request_info).headers_only) { in fpm_status_handle_request()
|
H A D | fpm_php.c | 162 return SG(request_info).path_translated; in fpm_php_script_filename() 168 return (char *) SG(request_info).request_uri; in fpm_php_request_uri() 174 return (char *) SG(request_info).request_method; in fpm_php_request_method() 180 return SG(request_info).query_string; in fpm_php_query_string() 186 return SG(request_info).auth_user; in fpm_php_auth_user() 192 return SG(request_info).content_length; in fpm_php_content_length()
|
/PHP-5.6/sapi/continuity/ |
H A D | capi.c | 135 rc = (capi_request_context *) SG(server_context); in sapi_capi_ub_write() 187 if (SG(sapi_headers).send_default_content_type) { in sapi_capi_send_headers() 422 SG(request_info).request_uri = capi_strdup(uri); in capi_request_ctor() 427 SG(sapi_headers).http_response_code = 200; in capi_request_ctor() 432 capi_free(SG(request_info).query_string); in capi_request_dtor() 433 capi_free(SG(request_info).request_uri); in capi_request_dtor() 434 capi_free(SG(request_info).request_method); in capi_request_dtor() 435 capi_free(SG(request_info).path_translated); in capi_request_dtor() 436 capi_free(SG(request_info).content_type); in capi_request_dtor() 447 file_handle.filename = SG(request_info).path_translated; in capi_module_main() [all …]
|
/PHP-5.6/sapi/webjames/ |
H A D | webjames.c | 177 SG(request_info).query_string = WG(conn)->args; in webjames_module_main() 178 SG(request_info).request_uri = WG(conn)->requesturi; in webjames_module_main() 181 SG(request_info).headers_only = 1; in webjames_module_main() 183 SG(request_info).headers_only = 0; in webjames_module_main() 185 SG(sapi_headers).http_response_code = 200; in webjames_module_main() 186 SG(request_info).content_type = WG(conn)->type; in webjames_module_main() 187 SG(request_info).content_length = WG(conn)->bodysize; in webjames_module_main() 189 SG(request_info).auth_user = NULL; in webjames_module_main() 190 SG(request_info).auth_password = NULL; in webjames_module_main() 195 if (SG(request_info).auth_user) { in webjames_module_main() [all …]
|
/PHP-5.6/sapi/tux/ |
H A D | php_tux.c | 332 SG(request_info).path_translated = s.c; in tux_request_ctor() 338 SG(request_info).request_uri = s.c; in tux_request_ctor() 341 else SG(request_info).proto_num = 1000; in tux_request_ctor() 342 SG(sapi_headers).http_response_code = 200; in tux_request_ctor() 343 SG(request_info).content_type = TG(req)->content_type; in tux_request_ctor() 358 if (SG(request_info).query_string) in tux_request_dtor() 359 free(SG(request_info).query_string); in tux_request_dtor() 360 free(SG(request_info).request_uri); in tux_request_dtor() 361 free(SG(request_info).path_translated); in tux_request_dtor() 439 SG(server_context) = (void *) 1; in TUXAPI_init() [all …]
|
/PHP-5.6/sapi/apache/ |
H A D | mod_php5.c | 99 if (SG(server_context)) { in sapi_apache_ub_write() 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() 540 SG(request_info).auth_user = NULL; in init_request_info() 542 SG(request_info).auth_digest = NULL; in init_request_info() 580 if (SG(default_mimetype) || SG(default_charset)) { in php_apache_get_default_mimetype() [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.6/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() 255 php_struct *ctx = SG(server_context); in php_apache_sapi_getenv() 309 SG(headers_sent) = 1; 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 …]
|
/PHP-5.6/sapi/aolserver/ |
H A D | aolserver.c | 150 if(SG(sapi_headers).send_default_content_type) { in php_ns_sapi_send_headers() 451 SG(request_info).request_uri = strdup(SG(request_info).path_translated + strlen(root)); in php_ns_request_ctor() 454 else SG(request_info).proto_num = 1000; in php_ns_request_ctor() 459 SG(sapi_headers).http_response_code = 200; in php_ns_request_ctor() 464 SG(request_info).auth_user = tmp; in php_ns_request_ctor() 469 SG(request_info).auth_password = tmp; in php_ns_request_ctor() 482 free(SG(request_info).path_translated); in php_ns_request_dtor() 483 if (SG(request_info).query_string) in php_ns_request_dtor() 484 free(SG(request_info).query_string); in php_ns_request_dtor() 485 free(SG(request_info).request_uri); in php_ns_request_dtor() [all …]
|
/PHP-5.6/sapi/nsapi/ |
H A D | nsapi.c | 458 if (!SG(headers_sent)) { in sapi_nsapi_ub_write() 480 if (!SG(headers_sent)) { in sapi_nsapi_flush() 748 if (SG(request_info).request_uri) { in sapi_nsapi_register_server_variables() 749 pos = strlen(SG(request_info).request_uri); in sapi_nsapi_register_server_variables() 751 if (SG(request_info).query_string) { in sapi_nsapi_register_server_variables() 752 spprintf(&value, 0, "%s?%s", SG(request_info).request_uri, SG(request_info).query_string); in sapi_nsapi_register_server_variables() 805 SG(request_info).path_translated, in sapi_nsapi_get_stat() 998 if (SG(server_context)) { in php5_execute() 1022 SG(server_context) = request_context; in php5_execute() 1024 SG(request_info).request_uri = uri; in php5_execute() [all …]
|
/PHP-5.6/sapi/apache2filter/ |
H A D | sapi_apache2.c | 75 ctx = SG(server_context); in php_apache_sapi_ub_write() 99 ctx = SG(server_context); in php_apache_sapi_header_handler() 146 php_struct *ctx = SG(server_context); in php_apache_sapi_send_headers() 157 php_struct *ctx = SG(server_context); in php_apache_sapi_read_post() 182 php_struct *ctx = SG(server_context); in php_apache_sapi_get_stat() 207 php_struct *ctx = SG(server_context); in php_apache_sapi_read_cookies() 270 SG(headers_sent) = 1; in php_apache_sapi_flush() 292 ctx = SG(server_context); in php_apache_sapi_log_message() 373 ctx = SG(server_context); in php_input_filter() 447 if (SG(request_info).request_uri) { in php_apache_request_dtor() [all …]
|
/PHP-5.6/sapi/thttpd/ |
H A D | thttpd.c | 185 SG(sapi_headers).http_response_code); in sapi_thttpd_send_headers() 447 SG(request_info).path_translated = s.c; 453 SG(request_info).request_uri = s.c; 456 else SG(request_info).proto_num = 1000; 471 if (SG(request_info).query_string) 472 free(SG(request_info).query_string); 473 free(SG(request_info).request_uri); 475 if (SG(request_info).content_type) 476 free(SG(request_info).content_type); 757 SG(server_context) = (void *) 1; [all …]
|
/PHP-5.6/sapi/apache_hooks/ |
H A D | mod_php5.c | 244 if (SG(server_context)) { in sapi_apache_ub_write() 370 ((request_rec *) SG(server_context))->status = SG(sapi_headers).http_response_code; in sapi_apache_send_headers() 435 if (SG(server_context)) { in php_apache_log_message() 456 if(SG(sapi_started)) { in php_apache_request_shutdown() 458 SG(sapi_started) = 0; in php_apache_request_shutdown() 581 SG(request_info).request_uri = r->uri; in init_request_info() 592 SG(request_info).auth_user = NULL; in init_request_info() 593 SG(request_info).auth_password = NULL; in init_request_info() 630 if (SG(default_mimetype) || SG(default_charset)) { in php_apache_get_default_mimetype() 721 SG(server_context) = r; in send_php() [all …]
|
/PHP-5.6/ext/standard/ |
H A D | head.c | 68 if (sapi_send_headers(TSRMLS_C)==FAILURE || SG(request_info).headers_only) { in php_header() 234 if (SG(headers_sent)) { in PHP_FUNCTION() 253 if (SG(headers_sent)) { in PHP_FUNCTION() 281 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION() 299 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION() 300 SG(sapi_headers).http_response_code = response_code; in PHP_FUNCTION() 309 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION() 313 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
|
/PHP-5.6/sapi/caudium/ |
H A D | caudium.c | 374 push_int(SG(sapi_headers).http_response_code); in php_caudium_low_send_headers() 490 php_register_variable("PHP_SELF", SG(request_info).request_uri, in low_sapi_caudium_register_variables() 495 (char *) SG(request_info).request_method, in low_sapi_caudium_register_variables() 497 php_register_variable("REQUEST_URI", SG(request_info).request_uri, in low_sapi_caudium_register_variables() 609 SG(server_context) = (void *)1; /* avoid server_context == NULL */ in php_caudium_module_main() 614 SG(request_info).path_translated = in php_caudium_module_main() 617 if(!SG(request_info).request_uri) in php_caudium_module_main() 622 SG(sapi_headers).http_response_code = 200; in php_caudium_module_main() 623 if (!strcmp(SG(request_info).request_method, "HEAD")) { in php_caudium_module_main() 624 SG(request_info).headers_only = 1; in php_caudium_module_main() [all …]
|
/PHP-5.6/sapi/litespeed/ |
H A D | lsapi_main.c | 199 if ( SG(request_info).path_translated ) in sapi_lsapi_deactivate() 201 efree( SG(request_info).path_translated ); in sapi_lsapi_deactivate() 380 if ( (SG(request_info).request_uri ) ) in sapi_lsapi_register_variables() 590 SG(sapi_headers).http_response_code = 200; in init_request_info() 604 SG(options) |= SAPI_OPTION_NO_CHDIR; in lsapi_chdir_primary_script() 1104 SG(server_context) = (void *) 1; in processReq() 1238 SG(server_context) = (void *) 1; in cli_main() 1242 SG(options) |= SAPI_OPTION_NO_CHDIR; in cli_main() 1325 SG(request_info).argv = p; in cli_main() 1501 SG(request_info).path_translated = NULL; in main() [all …]
|
/PHP-5.6/sapi/embed/ |
H A D | php_embed.c | 204 SG(options) |= SAPI_OPTION_NO_CHDIR; in php_embed_init() 205 SG(request_info).argc=argc; in php_embed_init() 206 SG(request_info).argv=argv; in php_embed_init() 213 SG(headers_sent) = 1; in php_embed_init() 214 SG(request_info).no_headers = 1; in php_embed_init()
|
/PHP-5.6/sapi/roxen/ |
H A D | roxen.c | 366 push_int(SG(sapi_headers).http_response_code); in php_roxen_low_send_headers() 635 SG(request_info).query_string = lookup_string_header("QUERY_STRING", 0); in f_php_roxen_request_handler() 636 SG(server_context) = (void *)1; /* avoid server_context == NULL */ in f_php_roxen_request_handler() 641 SG(request_info).path_translated = in f_php_roxen_request_handler() 643 SG(request_info).request_uri = lookup_string_header("DOCUMENT_URI", NULL); in f_php_roxen_request_handler() 644 if(!SG(request_info).request_uri) in f_php_roxen_request_handler() 645 SG(request_info).request_uri = lookup_string_header("SCRIPT_NAME", NULL); in f_php_roxen_request_handler() 646 SG(request_info).request_method = lookup_string_header("REQUEST_METHOD", "GET"); in f_php_roxen_request_handler() 649 SG(sapi_headers).http_response_code = 200; in f_php_roxen_request_handler() 652 SG(request_info).auth_user = NULL; in f_php_roxen_request_handler() [all …]
|