/PHP-8.2/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() 390 SG(request_info).headers_read = 1; in sapi_activate_headers_only() 402 SG(request_info).no_headers = 0; in sapi_activate_headers_only() 410 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate_headers_only() 446 SG(request_info).no_headers = 0; in sapi_activate() 452 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate() 462 && SG(request_info).content_type in sapi_activate() 508 if (SG(request_info).auth_user) { in sapi_deactivate_module() 540 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 | 358 path_info = SG(request_info).request_uri; 405 } else if (SG(request_info).path_translated) { 407 strlen(SG(request_info).path_translated), 0); 428 } else if (SG(request_info).path_translated) { 430 strlen(SG(request_info).path_translated), 0); 446 if (SG(request_info).path_translated) { 447 efree(SG(request_info).path_translated); 448 SG(request_info).path_translated = NULL; 463 if (SG(request_info).path_translated) { 464 efree(SG(request_info).path_translated); [all …]
|
H A D | main.c | 1430 if (SG(request_info).current_user) { in php_get_current_user() 1431 return SG(request_info).current_user; in php_get_current_user() 1452 SG(request_info).current_user_length = len; in php_get_current_user() 1455 return SG(request_info).current_user; in php_get_current_user() 1496 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user() 1500 return SG(request_info).current_user; in php_get_current_user() 1757 …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() 2683 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data() 2685 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 | 707 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) { 708 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length… 785 event_start.content_length = SG(request_info).content_length;
|
/PHP-8.2/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; 2385 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2394 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2403 SG(request_info).no_headers = 1; [all …]
|
/PHP-8.2/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 | 150 if (!SG(request_info).request_uri) { in fpm_status_handle_request() 155 …ng_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 163 if (SG(request_info).headers_only) { in fpm_status_handle_request() 172 if (fpm_status_uri && !strcmp(fpm_status_uri, SG(request_info).request_uri)) { in fpm_status_handle_request() 215 if (SG(request_info).headers_only) { in fpm_status_handle_request()
|
H A D | fpm_php_trace.c | 54 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.2/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.2/sapi/embed/ |
H A D | php_embed.c | 237 SG(request_info).argc=argc; in php_embed_init() 238 SG(request_info).argv=argv; in php_embed_init() 247 SG(request_info).no_headers = 1; in php_embed_init()
|
/PHP-8.2/sapi/apache2handler/ |
H A D | sapi_apache2.c | 519 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor() 520 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor() 521 SG(request_info).request_method = r->method; in php_apache_request_ctor() 522 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor() 523 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor() 524 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor() 529 SG(request_info).content_length = ZEND_ATOL(content_length); in php_apache_request_ctor() 531 SG(request_info).content_length = 0; in php_apache_request_ctor() 542 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor() 543 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor() [all …]
|
/PHP-8.2/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() 324 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC() 325 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.2/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 248 SG(request_info).argc=0; in fuzzer_do_request_from_buffer() 249 SG(request_info).argv=NULL; in fuzzer_do_request_from_buffer()
|
/PHP-8.2/sapi/cli/ |
H A D | php_cli_server.c | 549 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers() 726 SG(request_info).request_method, strlen(SG(request_info).request_method)); in sapi_cli_server_register_variables() 729 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables() 732 SG(request_info).path_translated, strlen(SG(request_info).path_translated)); in sapi_cli_server_register_variables() 1920 request_info->proto_num = client->request.protocol_version; in php_cli_server_client_populate_request_info() 1923 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info() 1924 request_info->content_length = client->request.content_len; in php_cli_server_client_populate_request_info() 1925 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info() 1927 request_info->content_type = Z_STRVAL_P(val); in php_cli_server_client_populate_request_info() 2219 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() 923 SG(request_info).argc=argc-php_optind+1; in do_cli() 926 SG(request_info).path_translated = translated_path ? translated_path : php_self; in do_cli() 928 SG(request_info).argv=argv+php_optind-1; in do_cli()
|
/PHP-8.2/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 | 433 *SG(request_info).argv = estrndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); in PHPDBG_COMMAND() 856 argv[0] = SG(request_info).argv[0]; in PHPDBG_COMMAND() 857 for (i = SG(request_info).argc; --i;) { in PHPDBG_COMMAND() 858 efree(SG(request_info).argv[i]); in PHPDBG_COMMAND() 860 efree(SG(request_info).argv); in PHPDBG_COMMAND() 861 SG(request_info).argv = erealloc(argv, ++argc * sizeof(char *)); in PHPDBG_COMMAND() 862 SG(request_info).argc = argc; in PHPDBG_COMMAND()
|
/PHP-8.2/ext/standard/ |
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()
|
H A D | head.c | 72 if (sapi_send_headers()==FAILURE || SG(request_info).headers_only) { in php_header()
|
/PHP-8.2/ext/opcache/ |
H A D | zend_accelerator_module.c | 55 if (!SG(request_info).path_translated || in validate_api_restriction() 56 strlen(SG(request_info).path_translated) < len || in validate_api_restriction() 57 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) { in validate_api_restriction()
|