/PHP-8.3/main/ |
H A D | SAPI.c | 165 if (SG(request_info).post_entry && SG(request_info).content_type_dup) { in sapi_handle_post() 166 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_module() 542 SG(request_info).headers_read = 0; in sapi_deactivate_destroy() [all …]
|
H A D | php_content_types.c | 34 if (!strcmp(SG(request_info).request_method, "POST")) { in SAPI_POST_READER_FUNC() 35 if (NULL == SG(request_info).post_entry) { in SAPI_POST_READER_FUNC()
|
H A D | php_variables.c | 422 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC() 502 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC() 510 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC() 699 if (SG(request_info).argc) { in php_build_argv() 700 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv() 705 if (SG(request_info).argc) { in php_build_argv() 736 if (SG(request_info).auth_user) { in php_register_server_variables() 740 if (SG(request_info).auth_password) { in php_register_server_variables() 744 if (SG(request_info).auth_digest) { in php_register_server_variables() 820 SG(request_info).request_method && in php_auto_globals_create_post() [all …]
|
H A D | fopen_wrappers.c | 370 path_info = SG(request_info).request_uri; 417 } else if (SG(request_info).path_translated) { 419 strlen(SG(request_info).path_translated), 0); 440 } else if (SG(request_info).path_translated) { 442 strlen(SG(request_info).path_translated), 0); 458 if (SG(request_info).path_translated) { 459 efree(SG(request_info).path_translated); 460 SG(request_info).path_translated = NULL; 475 if (SG(request_info).path_translated) { 476 efree(SG(request_info).path_translated); [all …]
|
H A D | main.c | 1441 if (SG(request_info).current_user) { in php_get_current_user() 1442 return SG(request_info).current_user; in php_get_current_user() 1463 SG(request_info).current_user_length = len; in php_get_current_user() 1466 return SG(request_info).current_user; in php_get_current_user() 1507 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user() 1511 return SG(request_info).current_user; in php_get_current_user() 1768 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup() 1959 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown() 2633 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data() 2635 SG(request_info).auth_digest = NULL; in php_handle_auth_data() [all …]
|
H A D | SAPI.h | 114 sapi_request_info request_info; member
|
H A D | rfc1867.c | 684 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) { 685 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length… 762 event_start.content_length = SG(request_info).content_length;
|
/PHP-8.3/sapi/cgi/ |
H A D | cgi_main.c | 375 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 746 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 1175 SG(request_info).proto_num = 1000; 1176 SG(request_info).query_string = NULL; 1177 SG(request_info).request_uri = NULL; 1178 SG(request_info).content_type = NULL; 1179 SG(request_info).content_length = 0; 2388 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2397 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2406 SG(request_info).no_headers = 1; [all …]
|
/PHP-8.3/sapi/fpm/fpm/ |
H A D | fpm_main.c | 317 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 593 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 713 if (!SG(request_info).path_translated) { in sapi_cgi_activate() 986 SG(request_info).proto_num = 1000; in init_request_info() 987 SG(request_info).query_string = NULL; in init_request_info() 988 SG(request_info).request_uri = NULL; in init_request_info() 989 SG(request_info).content_type = NULL; in init_request_info() 990 SG(request_info).content_length = 0; in init_request_info() 1282 if (!SG(request_info).request_uri) { in init_request_info() 1706 SG(request_info).no_headers = 1; in main() [all …]
|
H A D | fpm_php.c | 179 return SG(request_info).path_translated; in fpm_php_script_filename() 184 return (char *) SG(request_info).request_uri; in fpm_php_request_uri() 189 return (char *) SG(request_info).request_method; in fpm_php_request_method() 194 return SG(request_info).query_string; in fpm_php_query_string() 199 return SG(request_info).auth_user; in fpm_php_auth_user() 204 return SG(request_info).content_length; in fpm_php_content_length()
|
H A D | fpm_status.c | 149 if (!SG(request_info).request_uri) { in fpm_status_handle_request() 154 …ng_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 162 if (SG(request_info).headers_only) { in fpm_status_handle_request() 171 if (fpm_status_uri && !strcmp(fpm_status_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 216 if (SG(request_info).headers_only) { in fpm_status_handle_request()
|
H A D | fpm_php_trace.c | 53 if (0 > fpm_trace_get_long((long) &SG(request_info).path_translated, &l)) { in fpm_php_trace_dump()
|
H A D | fpm_log.c | 517 if (SG(request_info).content_length > 0) { in fpm_access_log_suppress()
|
/PHP-8.3/sapi/litespeed/ |
H A D | lsapi_main.c | 177 if ( SG(request_info).path_translated ) { in sapi_lsapi_deactivate() 178 efree( SG(request_info).path_translated ); in sapi_lsapi_deactivate() 179 SG(request_info).path_translated = NULL; in sapi_lsapi_deactivate() 264 if ( (SG(request_info).request_uri ) ) in sapi_lsapi_register_variables() 265 php_self = (SG(request_info).request_uri ); in sapi_lsapi_register_variables() 373 if (SG(request_info).no_headers == 1) { in sapi_lsapi_send_headers_like_cgi() 548 if (!SG(request_info).path_translated) { in sapi_lsapi_activate() 656 len = strlen( SG(request_info).path_translated ); in lsapi_execute_script() 924 ctx->path = SG(request_info).path_translated; in lsapi_activate_user_ini_basic_checks() 1318 SG(request_info).argv = p; in cli_main() [all …]
|
/PHP-8.3/sapi/embed/ |
H A D | php_embed.c | 236 SG(request_info).argc=argc; in php_embed_init() 237 SG(request_info).argv=argv; in php_embed_init() 246 SG(request_info).no_headers = 1; in php_embed_init()
|
/PHP-8.3/sapi/apache2handler/ |
H A D | sapi_apache2.c | 528 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor() 529 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor() 530 SG(request_info).request_method = r->method; in php_apache_request_ctor() 531 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor() 532 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor() 533 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor() 538 SG(request_info).content_length = ZEND_ATOL(content_length); in php_apache_request_ctor() 540 SG(request_info).content_length = 0; in php_apache_request_ctor() 551 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor() 552 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor() [all …]
|
/PHP-8.3/ext/mbstring/ |
H A D | mb_gpc.c | 84 c_var = SG(request_info).query_string; in ZEND_EXTERN_MODULE_GLOBALS() 91 c_var = SG(request_info).cookie_data; in ZEND_EXTERN_MODULE_GLOBALS() 307 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC() 308 post_data_str = php_stream_copy_to_mem(SG(request_info).request_body, PHP_STREAM_COPY_ALL, 0); in SAPI_POST_HANDLER_FUNC()
|
/PHP-8.3/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 249 SG(request_info).argc=0; in fuzzer_do_request_from_buffer() 250 SG(request_info).argv=NULL; in fuzzer_do_request_from_buffer()
|
/PHP-8.3/sapi/cli/ |
H A D | php_cli_server.c | 558 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers() 735 SG(request_info).request_method, strlen(SG(request_info).request_method)); in sapi_cli_server_register_variables() 738 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables() 741 SG(request_info).path_translated, strlen(SG(request_info).path_translated)); in sapi_cli_server_register_variables() 1930 request_info->proto_num = client->request.protocol_version; in php_cli_server_client_populate_request_info() 1933 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info() 1934 request_info->content_length = client->request.content_len; in php_cli_server_client_populate_request_info() 1935 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info() 1937 request_info->content_type = Z_STRVAL_P(val); in php_cli_server_client_populate_request_info() 2229 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown() [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() 927 SG(request_info).argc=argc-php_optind+1; in do_cli() 930 SG(request_info).path_translated = translated_path ? translated_path : php_self; in do_cli() 932 SG(request_info).argv=argv+php_optind-1; in do_cli()
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg.c | 216 if (SG(request_info).argv0) { in PHP_MSHUTDOWN_FUNCTION() 217 free(SG(request_info).argv0); in PHP_MSHUTDOWN_FUNCTION() 218 SG(request_info).argv0 = NULL; in PHP_MSHUTDOWN_FUNCTION() 1452 SG(request_info).argc = argc - php_optind + 1; in main() 1453 SG(request_info).argv = emalloc(SG(request_info).argc * sizeof(char *)); in main() 1454 for (i = SG(request_info).argc; --i;) { in main() 1455 SG(request_info).argv[i] = estrdup(argv[php_optind - 1 + i]); in main() 1457 SG(request_info).argv[0] = PHPDBG_G(exec) ? estrdup(PHPDBG_G(exec)) : estrdup(""); in main() 1654 for (i = SG(request_info).argc; i--;) { in main() 1655 efree(SG(request_info).argv[i]); in main() [all …]
|
H A D | phpdbg_prompt.c | 432 *SG(request_info).argv = estrndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); in PHPDBG_COMMAND() 855 argv[0] = SG(request_info).argv[0]; in PHPDBG_COMMAND() 856 for (i = SG(request_info).argc; --i;) { in PHPDBG_COMMAND() 857 efree(SG(request_info).argv[i]); in PHPDBG_COMMAND() 859 efree(SG(request_info).argv); in PHPDBG_COMMAND() 860 SG(request_info).argv = erealloc(argv, ++argc * sizeof(char *)); in PHPDBG_COMMAND() 861 SG(request_info).argc = argc; in PHPDBG_COMMAND()
|
/PHP-8.3/ext/standard/ |
H A D | head.c | 72 if (sapi_send_headers()==FAILURE || SG(request_info).headers_only) { in php_header() 366 if (SG(headers_sent) && !SG(request_info).no_headers) { in PHP_FUNCTION()
|
H A D | php_fopen_wrapper.c | 228 if ((input->body = SG(request_info).request_body)) { in php_stream_url_wrap_php() 232 SG(request_info).request_body = input->body; in php_stream_url_wrap_php()
|
/PHP-8.3/ext/opcache/ |
H A D | zend_accelerator_module.c | 56 if (!SG(request_info).path_translated || in validate_api_restriction() 57 strlen(SG(request_info).path_translated) < len || in validate_api_restriction() 58 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) { in validate_api_restriction()
|