/PHP-7.4/main/ |
H A D | SAPI.c | 167 if (SG(request_info).post_entry && SG(request_info).content_type_dup) { in sapi_handle_post() 168 SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg); in sapi_handle_post() 392 SG(request_info).headers_read = 1; in sapi_activate_headers_only() 404 SG(request_info).no_headers = 0; in sapi_activate_headers_only() 412 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate_headers_only() 448 SG(request_info).no_headers = 0; in sapi_activate() 454 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate() 464 && SG(request_info).content_type in sapi_activate() 510 if (SG(request_info).auth_user) { in sapi_deactivate() 538 SG(request_info).headers_read = 0; in sapi_deactivate() [all …]
|
H A D | php_content_types.c | 38 if (!strcmp(SG(request_info).request_method, "POST")) { in SAPI_POST_READER_FUNC() 39 if (NULL == SG(request_info).post_entry) { in SAPI_POST_READER_FUNC()
|
H A D | fopen_wrappers.c | 368 path_info = SG(request_info).request_uri; 425 filename = SG(request_info).path_translated; 443 if (SG(request_info).path_translated) { 444 efree(SG(request_info).path_translated); 445 SG(request_info).path_translated = NULL; 460 if (SG(request_info).path_translated) { 461 efree(SG(request_info).path_translated); 462 SG(request_info).path_translated = NULL; 469 if (SG(request_info).path_translated) { 470 efree(SG(request_info).path_translated); [all …]
|
H A D | php_variables.c | 379 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC() 459 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC() 467 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC() 667 if (SG(request_info).argc) { in php_build_argv() 668 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv() 673 if (SG(request_info).argc) { in php_build_argv() 705 if (SG(request_info).auth_user) { in php_register_server_variables() 709 if (SG(request_info).auth_password) { in php_register_server_variables() 713 if (SG(request_info).auth_digest) { in php_register_server_variables() 792 SG(request_info).request_method && in php_auto_globals_create_post() [all …]
|
H A D | main.c | 1507 if (SG(request_info).current_user) { in php_get_current_user() 1508 return SG(request_info).current_user; in php_get_current_user() 1529 SG(request_info).current_user_length = len; in php_get_current_user() 1532 return SG(request_info).current_user; in php_get_current_user() 1560 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user() 1564 return SG(request_info).current_user; in php_get_current_user() 1817 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup() 2013 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown() 2775 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data() 2777 SG(request_info).auth_digest = NULL; in php_handle_auth_data() [all …]
|
H A D | SAPI.h | 119 sapi_request_info request_info; member
|
H A D | rfc1867.c | 713 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) { 714 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length… 779 event_start.content_length = SG(request_info).content_length;
|
/PHP-7.4/sapi/cgi/ |
H A D | cgi_main.c | 378 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 749 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 1190 SG(request_info).proto_num = 1000; 1191 SG(request_info).query_string = NULL; 1192 SG(request_info).request_uri = NULL; 1193 SG(request_info).content_type = NULL; 1194 SG(request_info).content_length = 0; 2428 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2437 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2446 SG(request_info).no_headers = 1; [all …]
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_main.c | 320 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 583 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 700 if (!SG(request_info).path_translated) { in sapi_cgi_activate() 978 SG(request_info).proto_num = 1000; in init_request_info() 979 SG(request_info).query_string = NULL; in init_request_info() 980 SG(request_info).request_uri = NULL; in init_request_info() 981 SG(request_info).content_type = NULL; in init_request_info() 982 SG(request_info).content_length = 0; in init_request_info() 1254 if (!SG(request_info).request_uri) { in init_request_info() 1718 SG(request_info).no_headers = 1; in main() [all …]
|
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()
|
H A D | fpm_status.c | 155 if (!SG(request_info).request_uri) { in fpm_status_handle_request() 160 …ng_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 168 if (SG(request_info).headers_only) { in fpm_status_handle_request() 177 if (fpm_status_uri && !strcmp(fpm_status_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 220 if (SG(request_info).headers_only) { in fpm_status_handle_request()
|
H A D | fpm_php_trace.c | 58 if (0 > fpm_trace_get_long((long) &SG(request_info).path_translated, &l)) { in fpm_php_trace_dump()
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapi_main.c | 181 if ( SG(request_info).path_translated ) { in sapi_lsapi_deactivate() 182 efree( SG(request_info).path_translated ); in sapi_lsapi_deactivate() 183 SG(request_info).path_translated = NULL; in sapi_lsapi_deactivate() 270 if ( (SG(request_info).request_uri ) ) in sapi_lsapi_register_variables() 271 php_self = (SG(request_info).request_uri ); in sapi_lsapi_register_variables() 381 if (SG(request_info).no_headers == 1) { in sapi_lsapi_send_headers_like_cgi() 558 if (!SG(request_info).path_translated) { in sapi_lsapi_activate() 665 len = strlen( SG(request_info).path_translated ); in lsapi_execute_script() 938 ctx->path = SG(request_info).path_translated; in lsapi_activate_user_ini_basic_checks() 1332 SG(request_info).argv = p; in cli_main() [all …]
|
/PHP-7.4/sapi/embed/ |
H A D | php_embed.c | 206 SG(request_info).argc=argc; in php_embed_init() 207 SG(request_info).argv=argv; in php_embed_init() 215 SG(request_info).no_headers = 1; in php_embed_init()
|
/PHP-7.4/sapi/apache2handler/ |
H A D | sapi_apache2.c | 508 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor() 509 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor() 510 SG(request_info).request_method = r->method; in php_apache_request_ctor() 511 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor() 512 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor() 513 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor() 518 ZEND_ATOL(SG(request_info).content_length, content_length); in php_apache_request_ctor() 520 SG(request_info).content_length = 0; in php_apache_request_ctor() 531 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor() 532 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor() [all …]
|
/PHP-7.4/ext/mbstring/ |
H A D | mb_gpc.c | 93 c_var = SG(request_info).query_string; in ZEND_EXTERN_MODULE_GLOBALS() 100 c_var = SG(request_info).cookie_data; in ZEND_EXTERN_MODULE_GLOBALS() 369 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC() 370 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.4/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 | 263 if (SG(request_info).argv0) { in PHP_MSHUTDOWN_FUNCTION() 264 free(SG(request_info).argv0); in PHP_MSHUTDOWN_FUNCTION() 265 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() 2079 for (i = SG(request_info).argc; i--;) { in main() 2080 efree(SG(request_info).argv[i]); in main() [all …]
|
H A D | phpdbg_prompt.c | 440 *SG(request_info).argv = estrndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); in PHPDBG_COMMAND() 867 argv[0] = SG(request_info).argv[0]; in PHPDBG_COMMAND() 868 for (i = SG(request_info).argc; --i;) { in PHPDBG_COMMAND() 869 efree(SG(request_info).argv[i]); in PHPDBG_COMMAND() 871 efree(SG(request_info).argv); in PHPDBG_COMMAND() 872 SG(request_info).argv = erealloc(argv, ++argc * sizeof(char *)); in PHPDBG_COMMAND() 873 SG(request_info).argc = argc; in PHPDBG_COMMAND()
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli_server.c | 599 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers() 737 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables() 1929 request_info->proto_num = client->request.protocol_version; in php_cli_server_client_populate_request_info() 1930 request_info->request_uri = client->request.request_uri; in php_cli_server_client_populate_request_info() 1932 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info() 1934 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info() 1936 request_info->content_type = val; in php_cli_server_client_populate_request_info() 2192 destroy_request_info(&SG(request_info)); in php_cli_server_request_startup() 2204 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown() 2264 destroy_request_info(&SG(request_info)); in php_cli_server_dispatch() [all …]
|
H A D | php_cli.c | 375 if(SG(request_info).argv0) { in sapi_cli_deactivate() 376 free(SG(request_info).argv0); in sapi_cli_deactivate() 377 SG(request_info).argv0 = NULL; in sapi_cli_deactivate() 922 SG(request_info).argc=argc-php_optind+1; in do_cli() 925 SG(request_info).path_translated = translated_path? translated_path: (char*)file_handle.filename; in do_cli() 927 SG(request_info).argv=argv+php_optind-1; in do_cli()
|
/PHP-7.4/ext/standard/ |
H A D | php_fopen_wrapper.c | 230 if ((input->body = SG(request_info).request_body)) { in php_stream_url_wrap_php() 234 SG(request_info).request_body = input->body; in php_stream_url_wrap_php()
|
H A D | head.c | 72 if (sapi_send_headers()==FAILURE || SG(request_info).headers_only) { in php_header()
|
/PHP-7.4/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.4/ext/phar/ |
H A D | phar_object.c | 572 if (!(SG(request_info).request_method in PHP_METHOD() 573 && SG(request_info).request_uri in PHP_METHOD() 574 && (!strcmp(SG(request_info).request_method, "GET") in PHP_METHOD() 575 || !strcmp(SG(request_info).request_method, "POST") in PHP_METHOD() 576 || !strcmp(SG(request_info).request_method, "DELETE") in PHP_METHOD() 577 || !strcmp(SG(request_info).request_method, "HEAD") in PHP_METHOD() 578 || !strcmp(SG(request_info).request_method, "OPTIONS") in PHP_METHOD() 579 || !strcmp(SG(request_info).request_method, "PATCH") in PHP_METHOD() 580 || !strcmp(SG(request_info).request_method, "PUT") in PHP_METHOD() 658 path_info = SG(request_info).request_uri; in PHP_METHOD()
|