Home
last modified time | relevance | path

Searched refs:request_info (Results 1 – 25 of 30) sorted by relevance

12

/PHP-8.2/main/
H A DSAPI.c165 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()
466 && SG(request_info).content_type in sapi_activate()
512 if (SG(request_info).auth_user) { in sapi_deactivate_module()
544 SG(request_info).headers_read = 0; in sapi_deactivate_destroy()
[all …]
H A Dphp_content_types.c34 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 Dphp_variables.c410 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC()
490 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC()
498 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC()
688 if (SG(request_info).argc) { in php_build_argv()
689 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv()
694 if (SG(request_info).argc) { in php_build_argv()
725 if (SG(request_info).auth_user) { in php_register_server_variables()
729 if (SG(request_info).auth_password) { in php_register_server_variables()
733 if (SG(request_info).auth_digest) { in php_register_server_variables()
809 SG(request_info).request_method && in php_auto_globals_create_post()
[all …]
H A Dfopen_wrappers.c370 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 Dmain.c1430 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()
1483 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user()
1487 return SG(request_info).current_user; in php_get_current_user()
1744 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup()
1935 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown()
2624 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data()
2626 SG(request_info).auth_digest = NULL; in php_handle_auth_data()
[all …]
H A DSAPI.h134 sapi_request_info request_info; member
H A Drfc1867.c696 if (post_max_size > 0 && SG(request_info).content_length > post_max_size) {
697 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length…
764 event_start.content_length = SG(request_info).content_length;
/PHP-8.2/sapi/cgi/
H A Dcgi_main.c375 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;
2378 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2387 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2396 SG(request_info).no_headers = 1;
[all …]
/PHP-8.2/sapi/fpm/fpm/
H A Dfpm_main.c320 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers()
596 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
716 if (!SG(request_info).path_translated) { in sapi_cgi_activate()
989 SG(request_info).proto_num = 1000; in init_request_info()
990 SG(request_info).query_string = NULL; in init_request_info()
991 SG(request_info).request_uri = NULL; in init_request_info()
992 SG(request_info).content_type = NULL; in init_request_info()
993 SG(request_info).content_length = 0; in init_request_info()
1285 if (!SG(request_info).request_uri) { in init_request_info()
1709 SG(request_info).no_headers = 1; in main()
[all …]
H A Dfpm_php.c179 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 Dfpm_status.c149 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 Dfpm_php_trace.c53 if (0 > fpm_trace_get_long((long) &SG(request_info).path_translated, &l)) { in fpm_php_trace_dump()
/PHP-8.2/sapi/litespeed/
H A Dlsapi_main.c177 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 Dphp_embed.c236 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.2/sapi/apache2handler/
H A Dsapi_apache2.c528 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.2/ext/mbstring/
H A Dmb_gpc.c84 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()
308 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC()
309 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 Dfuzzer-sapi.c247 SG(request_info).argc=0; in fuzzer_do_request_from_buffer()
248 SG(request_info).argv=NULL; in fuzzer_do_request_from_buffer()
/PHP-8.2/sapi/cli/
H A Dphp_cli_server.c558 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()
1922 request_info->proto_num = client->request.protocol_version; in php_cli_server_client_populate_request_info()
1925 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info()
1926 request_info->content_length = client->request.content_len; in php_cli_server_client_populate_request_info()
1927 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info()
1929 request_info->content_type = Z_STRVAL_P(val); in php_cli_server_client_populate_request_info()
2222 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown()
[all …]
H A Dphp_cli.c375 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.2/sapi/phpdbg/
H A Dphpdbg.c216 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 Dphpdbg_prompt.c432 *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.2/ext/standard/
H A Dhttp.c332 if (!SG(request_info).content_type) { in PHP_FUNCTION()
338 if (!SG(request_info).post_entry) { in PHP_FUNCTION()
339 …e_InvalidArgumentException, "Content-Type \"%s\" is not supported", SG(request_info).content_type); in PHP_FUNCTION()
H A Dhead.c72 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 Dphp_fopen_wrapper.c228 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.2/ext/opcache/
H A Dzend_accelerator_module.c56 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()

Completed in 154 milliseconds

12