/PHP-7.2/main/ |
H A D | SAPI.c | 173 if (SG(request_info).post_entry && SG(request_info).content_type_dup) { in sapi_handle_post() 174 SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg); in sapi_handle_post() 398 SG(request_info).headers_read = 1; in sapi_activate_headers_only() 410 SG(request_info).no_headers = 0; in sapi_activate_headers_only() 418 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate_headers_only() 454 SG(request_info).no_headers = 0; in sapi_activate() 460 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate() 470 && SG(request_info).content_type in sapi_activate() 516 if (SG(request_info).auth_user) { in sapi_deactivate() 544 SG(request_info).headers_read = 0; in sapi_deactivate() [all …]
|
H A D | php_content_types.c | 40 if (!strcmp(SG(request_info).request_method, "POST")) { in SAPI_POST_READER_FUNC() 41 if (NULL == SG(request_info).post_entry) { in SAPI_POST_READER_FUNC()
|
H A D | fopen_wrappers.c | 361 path_info = SG(request_info).request_uri; 418 filename = SG(request_info).path_translated; 436 if (SG(request_info).path_translated) { 437 efree(SG(request_info).path_translated); 438 SG(request_info).path_translated = NULL; 453 if (SG(request_info).path_translated) { 454 efree(SG(request_info).path_translated); 455 SG(request_info).path_translated = NULL; 462 if (SG(request_info).path_translated) { 463 efree(SG(request_info).path_translated); [all …]
|
H A D | php_variables.c | 356 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC() 436 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC() 444 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC() 605 if (SG(request_info).argc) { in php_build_argv() 606 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv() 611 if (SG(request_info).argc) { in php_build_argv() 640 if (SG(request_info).auth_user) { in php_register_server_variables() 643 if (SG(request_info).auth_password) { in php_register_server_variables() 646 if (SG(request_info).auth_digest) { in php_register_server_variables() 726 SG(request_info).request_method && in php_auto_globals_create_post() [all …]
|
H A D | main.c | 1284 if (SG(request_info).current_user) { in php_get_current_user() 1285 return SG(request_info).current_user; in php_get_current_user() 1306 SG(request_info).current_user_length = len; in php_get_current_user() 1309 return SG(request_info).current_user; in php_get_current_user() 1337 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user() 1341 return SG(request_info).current_user; in php_get_current_user() 1630 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup() 1948 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown() 2699 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data() 2701 SG(request_info).auth_digest = NULL; in php_handle_auth_data() [all …]
|
H A D | SAPI.h | 121 sapi_request_info request_info; member
|
H A D | rfc1867.c | 723 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) { 724 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length… 789 event_start.content_length = SG(request_info).content_length;
|
/PHP-7.2/sapi/cgi/ |
H A D | cgi_main.c | 389 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 761 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 1195 SG(request_info).proto_num = 1000; 1196 SG(request_info).query_string = NULL; 1197 SG(request_info).request_uri = NULL; 1198 SG(request_info).content_type = NULL; 1199 SG(request_info).content_length = 0; 2469 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2478 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2487 SG(request_info).no_headers = 1; [all …]
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_main.c | 362 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 624 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 1039 SG(request_info).request_method = NULL; 1040 SG(request_info).proto_num = 1000; 1041 SG(request_info).query_string = NULL; 1042 SG(request_info).request_uri = NULL; 1043 SG(request_info).content_type = NULL; 1044 SG(request_info).content_length = 0; 1324 if (!SG(request_info).request_uri) { 1755 SG(request_info).no_headers = 1; [all …]
|
H A D | fpm_php.c | 163 return SG(request_info).path_translated; in fpm_php_script_filename() 169 return (char *) SG(request_info).request_uri; in fpm_php_request_uri() 175 return (char *) SG(request_info).request_method; in fpm_php_request_method() 181 return SG(request_info).query_string; in fpm_php_query_string() 187 return SG(request_info).auth_user; in fpm_php_auth_user() 193 return SG(request_info).content_length; in fpm_php_content_length()
|
H A D | fpm_status.c | 59 if (!SG(request_info).request_uri) { in fpm_status_handle_request() 64 …ng_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_info).request_uri)) { 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() 124 if (SG(request_info).headers_only) { in fpm_status_handle_request()
|
H A D | fpm_php_trace.c | 59 if (0 > fpm_trace_get_long((long) &SG(request_info).path_translated, &l)) { in fpm_php_trace_dump()
|
/PHP-7.2/sapi/litespeed/ |
H A D | lsapi_main.c | 201 if ( SG(request_info).path_translated ) { in sapi_lsapi_deactivate() 202 efree( SG(request_info).path_translated ); in sapi_lsapi_deactivate() 203 SG(request_info).path_translated = NULL; in sapi_lsapi_deactivate() 288 if ( (SG(request_info).request_uri ) ) in sapi_lsapi_register_variables() 289 php_self = (SG(request_info).request_uri ); in sapi_lsapi_register_variables() 399 if (SG(request_info).no_headers == 1) { in sapi_lsapi_send_headers_like_cgi() 576 if (!SG(request_info).path_translated) { in sapi_lsapi_activate() 687 len = strlen( SG(request_info).path_translated ); in lsapi_execute_script() 960 ctx->path = SG(request_info).path_translated; in lsapi_activate_user_ini_basic_checks() 1360 SG(request_info).argv = p; in cli_main() [all …]
|
/PHP-7.2/sapi/apache2handler/ |
H A D | sapi_apache2.c | 507 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor() 508 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor() 509 SG(request_info).request_method = r->method; in php_apache_request_ctor() 510 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor() 511 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor() 512 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor() 517 ZEND_ATOL(SG(request_info).content_length, content_length); in php_apache_request_ctor() 519 SG(request_info).content_length = 0; in php_apache_request_ctor() 530 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor() 531 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor() [all …]
|
/PHP-7.2/sapi/embed/ |
H A D | php_embed.c | 208 SG(request_info).argc=argc; in php_embed_init() 209 SG(request_info).argv=argv; in php_embed_init() 217 SG(request_info).no_headers = 1; in php_embed_init()
|
/PHP-7.2/ext/mbstring/ |
H A D | mb_gpc.c | 101 c_var = SG(request_info).query_string; in ZEND_EXTERN_MODULE_GLOBALS() 109 c_var = SG(request_info).cookie_data; in ZEND_EXTERN_MODULE_GLOBALS() 378 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC() 379 post_data_str = php_stream_copy_to_mem(SG(request_info).request_body, PHP_STREAM_COPY_ALL, 0); in SAPI_POST_HANDLER_FUNC()
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_wait.c | 174 if (SG(request_info).request_body) { in phpdbg_webdata_decompress() 175 php_stream_close(SG(request_info).request_body); in phpdbg_webdata_decompress() 177 …SG(request_info).request_body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZ… in phpdbg_webdata_decompress() 178 php_stream_truncate_set_size(SG(request_info).request_body, 0); in phpdbg_webdata_decompress() 179 php_stream_write(SG(request_info).request_body, Z_STRVAL_P(zvp), Z_STRLEN_P(zvp)); in phpdbg_webdata_decompress()
|
H A D | phpdbg.c | 286 if (SG(request_info).argv0) { in PHP_MSHUTDOWN_FUNCTION() 287 free(SG(request_info).argv0); in PHP_MSHUTDOWN_FUNCTION() 288 SG(request_info).argv0 = NULL; in PHP_MSHUTDOWN_FUNCTION() 1798 SG(request_info).argc = argc - php_optind + 1; in main() 1799 SG(request_info).argv = emalloc(SG(request_info).argc * sizeof(char *)); in main() 1800 for (i = SG(request_info).argc; --i;) { in main() 1801 SG(request_info).argv[i] = estrdup(argv[php_optind - 1 + i]); in main() 1803 SG(request_info).argv[0] = PHPDBG_G(exec) ? estrdup(PHPDBG_G(exec)) : estrdup(""); in main() 2072 for (i = SG(request_info).argc; i--;) { in main() 2073 efree(SG(request_info).argv[i]); in main() [all …]
|
H A D | phpdbg_prompt.c | 439 *SG(request_info).argv = PHPDBG_G(exec); in PHPDBG_COMMAND() 913 argv[0] = SG(request_info).argv[0]; in PHPDBG_COMMAND() 914 for (i = SG(request_info).argc; --i;) { in PHPDBG_COMMAND() 915 efree(SG(request_info).argv[i]); in PHPDBG_COMMAND() 917 efree(SG(request_info).argv); in PHPDBG_COMMAND() 918 SG(request_info).argv = erealloc(argv, ++argc * sizeof(char *)); in PHPDBG_COMMAND() 919 SG(request_info).argc = argc; in PHPDBG_COMMAND()
|
/PHP-7.2/sapi/cli/ |
H A D | php_cli_server.c | 540 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers() 674 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables() 1808 request_info->request_uri = client->request.request_uri; in php_cli_server_client_populate_request_info() 1810 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info() 1812 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info() 1814 request_info->content_type = val; in php_cli_server_client_populate_request_info() 1981 zfd.filename = SG(request_info).path_translated; in php_cli_server_dispatch_script() 2076 destroy_request_info(&SG(request_info)); in php_cli_server_request_startup() 2088 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown() 2149 destroy_request_info(&SG(request_info)); in php_cli_server_dispatch() [all …]
|
H A D | php_cli.c | 396 if(SG(request_info).argv0) { in sapi_cli_deactivate() 397 free(SG(request_info).argv0); in sapi_cli_deactivate() 398 SG(request_info).argv0 = NULL; in sapi_cli_deactivate() 975 SG(request_info).argc=argc-php_optind+1; in do_cli() 978 SG(request_info).path_translated = translated_path? translated_path: (char*)file_handle.filename; in do_cli() 980 SG(request_info).argv=argv+php_optind-1; in do_cli()
|
/PHP-7.2/ext/standard/ |
H A D | php_fopen_wrapper.c | 238 if ((input->body = SG(request_info).request_body)) { in php_stream_url_wrap_php() 242 SG(request_info).request_body = input->body; in php_stream_url_wrap_php()
|
H A D | head.c | 76 if (sapi_send_headers()==FAILURE || SG(request_info).headers_only) { in php_header()
|
/PHP-7.2/ext/opcache/ |
H A D | zend_accelerator_module.c | 91 if (!SG(request_info).path_translated || in validate_api_restriction() 92 strlen(SG(request_info).path_translated) < len || in validate_api_restriction() 93 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) { in validate_api_restriction()
|
/PHP-7.2/ext/phar/ |
H A D | phar_object.c | 574 if (!(SG(request_info).request_method in PHP_METHOD() 575 && SG(request_info).request_uri in PHP_METHOD() 576 && (!strcmp(SG(request_info).request_method, "GET") in PHP_METHOD() 577 || !strcmp(SG(request_info).request_method, "POST") in PHP_METHOD() 578 || !strcmp(SG(request_info).request_method, "DELETE") in PHP_METHOD() 579 || !strcmp(SG(request_info).request_method, "HEAD") in PHP_METHOD() 580 || !strcmp(SG(request_info).request_method, "OPTIONS") in PHP_METHOD() 581 || !strcmp(SG(request_info).request_method, "PATCH") in PHP_METHOD() 582 || !strcmp(SG(request_info).request_method, "PUT") in PHP_METHOD() 658 path_info = SG(request_info).request_uri; in PHP_METHOD()
|