/PHP-8.1/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 | 387 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC() 467 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC() 475 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC() 659 if (SG(request_info).argc) { in php_build_argv() 660 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv() 665 if (SG(request_info).argc) { in php_build_argv() 696 if (SG(request_info).auth_user) { in php_register_server_variables() 700 if (SG(request_info).auth_password) { in php_register_server_variables() 704 if (SG(request_info).auth_digest) { in php_register_server_variables() 781 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; 393 } else if (SG(request_info).path_translated) { 395 strlen(SG(request_info).path_translated), 0); 416 } else if (SG(request_info).path_translated) { 418 strlen(SG(request_info).path_translated), 0); 434 if (SG(request_info).path_translated) { 435 efree(SG(request_info).path_translated); 436 SG(request_info).path_translated = NULL; 451 if (SG(request_info).path_translated) { 452 efree(SG(request_info).path_translated); [all …]
|
H A D | main.c | 1404 if (SG(request_info).current_user) { in php_get_current_user() 1405 return SG(request_info).current_user; in php_get_current_user() 1426 SG(request_info).current_user_length = len; in php_get_current_user() 1429 return SG(request_info).current_user; in php_get_current_user() 1457 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user() 1461 return SG(request_info).current_user; in php_get_current_user() 1715 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup() 1906 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown() 2656 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data() 2658 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 | 706 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) { 707 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length… 784 event_start.content_length = SG(request_info).content_length;
|
/PHP-8.1/sapi/cgi/ |
H A D | cgi_main.c | 374 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 745 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 1177 SG(request_info).proto_num = 1000; 1178 SG(request_info).query_string = NULL; 1179 SG(request_info).request_uri = NULL; 1180 SG(request_info).content_type = NULL; 1181 SG(request_info).content_length = 0; 2409 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2418 if (SG(request_info).path_translated) efree(SG(request_info).path_translated); 2427 SG(request_info).no_headers = 1; [all …]
|
/PHP-8.1/sapi/fpm/fpm/ |
H A D | fpm_main.c | 315 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers() 578 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables() 693 if (!SG(request_info).path_translated) { in sapi_cgi_activate() 969 SG(request_info).proto_num = 1000; in init_request_info() 970 SG(request_info).query_string = NULL; in init_request_info() 971 SG(request_info).request_uri = NULL; in init_request_info() 972 SG(request_info).content_type = NULL; in init_request_info() 973 SG(request_info).content_length = 0; in init_request_info() 1265 if (!SG(request_info).request_uri) { in init_request_info() 1711 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()
|
/PHP-8.1/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() 928 ctx->path = SG(request_info).path_translated; in lsapi_activate_user_ini_basic_checks() 1322 SG(request_info).argv = p; in cli_main() [all …]
|
/PHP-8.1/sapi/embed/ |
H A D | php_embed.c | 240 SG(request_info).argc=argc; in php_embed_init() 241 SG(request_info).argv=argv; in php_embed_init() 250 SG(request_info).no_headers = 1; in php_embed_init()
|
/PHP-8.1/sapi/apache2handler/ |
H A D | sapi_apache2.c | 517 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor() 518 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor() 519 SG(request_info).request_method = r->method; in php_apache_request_ctor() 520 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor() 521 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor() 522 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor() 527 SG(request_info).content_length = ZEND_ATOL(content_length); in php_apache_request_ctor() 529 SG(request_info).content_length = 0; in php_apache_request_ctor() 540 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor() 541 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor() [all …]
|
/PHP-8.1/ext/mbstring/ |
H A D | mb_gpc.c | 85 c_var = SG(request_info).query_string; in ZEND_EXTERN_MODULE_GLOBALS() 92 c_var = SG(request_info).cookie_data; in ZEND_EXTERN_MODULE_GLOBALS() 361 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC() 362 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.1/sapi/fuzzer/ |
H A D | fuzzer-sapi.c | 238 SG(request_info).argc=0; in fuzzer_do_request_from_buffer() 239 SG(request_info).argv=NULL; in fuzzer_do_request_from_buffer()
|
/PHP-8.1/sapi/phpdbg/ |
H A D | phpdbg.c | 214 if (SG(request_info).argv0) { in PHP_MSHUTDOWN_FUNCTION() 215 free(SG(request_info).argv0); in PHP_MSHUTDOWN_FUNCTION() 216 SG(request_info).argv0 = NULL; in PHP_MSHUTDOWN_FUNCTION() 1490 SG(request_info).argc = argc - php_optind + 1; in main() 1491 SG(request_info).argv = emalloc(SG(request_info).argc * sizeof(char *)); in main() 1492 for (i = SG(request_info).argc; --i;) { in main() 1493 SG(request_info).argv[i] = estrdup(argv[php_optind - 1 + i]); in main() 1495 SG(request_info).argv[0] = PHPDBG_G(exec) ? estrdup(PHPDBG_G(exec)) : estrdup(""); in main() 1687 for (i = SG(request_info).argc; i--;) { in main() 1688 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.1/sapi/cli/ |
H A D | php_cli_server.c | 559 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers() 697 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables() 1882 request_info->proto_num = client->request.protocol_version; in php_cli_server_client_populate_request_info() 1883 request_info->request_uri = client->request.request_uri; in php_cli_server_client_populate_request_info() 1884 request_info->path_translated = client->request.path_translated; in php_cli_server_client_populate_request_info() 1885 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info() 1886 request_info->content_length = client->request.content_len; in php_cli_server_client_populate_request_info() 1887 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info() 1889 request_info->content_type = val; in php_cli_server_client_populate_request_info() 2157 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown() [all …]
|
H A D | php_cli.c | 374 if(SG(request_info).argv0) { in sapi_cli_deactivate() 375 free(SG(request_info).argv0); in sapi_cli_deactivate() 376 SG(request_info).argv0 = NULL; in sapi_cli_deactivate() 924 SG(request_info).argc=argc-php_optind+1; in do_cli() 927 SG(request_info).path_translated = translated_path ? translated_path : php_self; in do_cli() 929 SG(request_info).argv=argv+php_optind-1; in do_cli()
|
/PHP-8.1/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.1/ext/opcache/ |
H A D | zend_accelerator_module.c | 54 if (!SG(request_info).path_translated || in validate_api_restriction() 55 strlen(SG(request_info).path_translated) < len || in validate_api_restriction() 56 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) { in validate_api_restriction()
|
/PHP-8.1/ext/phar/ |
H A D | phar_object.c | 571 if (!(SG(request_info).request_method in PHP_METHOD() 572 && SG(request_info).request_uri in PHP_METHOD() 573 && (!strcmp(SG(request_info).request_method, "GET") in PHP_METHOD() 574 || !strcmp(SG(request_info).request_method, "POST") in PHP_METHOD() 575 || !strcmp(SG(request_info).request_method, "DELETE") in PHP_METHOD() 576 || !strcmp(SG(request_info).request_method, "HEAD") in PHP_METHOD() 577 || !strcmp(SG(request_info).request_method, "OPTIONS") in PHP_METHOD() 578 || !strcmp(SG(request_info).request_method, "PATCH") in PHP_METHOD() 579 || !strcmp(SG(request_info).request_method, "PUT") in PHP_METHOD() 657 path_info = SG(request_info).request_uri; in PHP_METHOD()
|