Home
last modified time | relevance | path

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

12

/PHP-8.0/main/
H A DSAPI.c161 if (SG(request_info).post_entry && SG(request_info).content_type_dup) { in sapi_handle_post()
162 SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg); in sapi_handle_post()
386 SG(request_info).headers_read = 1; in sapi_activate_headers_only()
398 SG(request_info).no_headers = 0; in sapi_activate_headers_only()
406 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate_headers_only()
442 SG(request_info).no_headers = 0; in sapi_activate()
448 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate()
458 && SG(request_info).content_type in sapi_activate()
504 if (SG(request_info).auth_user) { in sapi_deactivate_module()
536 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 Dfopen_wrappers.c356 path_info = SG(request_info).request_uri;
413 filename = SG(request_info).path_translated;
431 if (SG(request_info).path_translated) {
432 efree(SG(request_info).path_translated);
433 SG(request_info).path_translated = NULL;
448 if (SG(request_info).path_translated) {
449 efree(SG(request_info).path_translated);
450 SG(request_info).path_translated = NULL;
457 if (SG(request_info).path_translated) {
458 efree(SG(request_info).path_translated);
[all …]
H A Dphp_variables.c374 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC()
454 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC()
462 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC()
646 if (SG(request_info).argc) { in php_build_argv()
647 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv()
652 if (SG(request_info).argc) { in php_build_argv()
683 if (SG(request_info).auth_user) { in php_register_server_variables()
687 if (SG(request_info).auth_password) { in php_register_server_variables()
691 if (SG(request_info).auth_digest) { in php_register_server_variables()
768 SG(request_info).request_method && in php_auto_globals_create_post()
[all …]
H A Dmain.c1404 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()
1700 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup()
1902 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown()
2643 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data()
2645 SG(request_info).auth_digest = NULL; in php_handle_auth_data()
[all …]
H A DSAPI.h114 sapi_request_info request_info; member
H A Drfc1867.c707 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…
778 event_start.content_length = SG(request_info).content_length;
/PHP-8.0/sapi/cgi/
H A Dcgi_main.c374 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;
2399 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2408 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2417 SG(request_info).no_headers = 1;
[all …]
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_main.c315 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()
1245 if (!SG(request_info).request_uri) { in init_request_info()
1692 SG(request_info).no_headers = 1; in main()
[all …]
H A Dfpm_php.c160 return SG(request_info).path_translated; in fpm_php_script_filename()
165 return (char *) SG(request_info).request_uri; in fpm_php_request_uri()
170 return (char *) SG(request_info).request_method; in fpm_php_request_method()
175 return SG(request_info).query_string; in fpm_php_query_string()
180 return SG(request_info).auth_user; in fpm_php_auth_user()
185 return SG(request_info).content_length; in fpm_php_content_length()
H A Dfpm_status.c148 if (!SG(request_info).request_uri) { in fpm_status_handle_request()
153 …ng_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_info).request_uri)) { in fpm_status_handle_request()
161 if (SG(request_info).headers_only) { in fpm_status_handle_request()
170 if (fpm_status_uri && !strcmp(fpm_status_uri, SG(request_info).request_uri)) { in fpm_status_handle_request()
211 if (SG(request_info).headers_only) { in fpm_status_handle_request()
H A Dfpm_php_trace.c54 if (0 > fpm_trace_get_long((long) &SG(request_info).path_translated, &l)) { in fpm_php_trace_dump()
/PHP-8.0/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()
654 len = strlen( SG(request_info).path_translated ); in lsapi_execute_script()
927 ctx->path = SG(request_info).path_translated; in lsapi_activate_user_ini_basic_checks()
1320 SG(request_info).argv = p; in cli_main()
[all …]
/PHP-8.0/sapi/embed/
H A Dphp_embed.c199 SG(request_info).argc=argc; in php_embed_init()
200 SG(request_info).argv=argv; in php_embed_init()
208 SG(request_info).no_headers = 1; in php_embed_init()
/PHP-8.0/sapi/apache2handler/
H A Dsapi_apache2.c512 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor()
513 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor()
514 SG(request_info).request_method = r->method; in php_apache_request_ctor()
515 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor()
516 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor()
517 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor()
522 ZEND_ATOL(SG(request_info).content_length, content_length); in php_apache_request_ctor()
524 SG(request_info).content_length = 0; in php_apache_request_ctor()
535 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor()
536 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor()
[all …]
/PHP-8.0/ext/mbstring/
H A Dmb_gpc.c85 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.0/sapi/phpdbg/
H A Dphpdbg_wait.c168 if (SG(request_info).request_body) { in phpdbg_webdata_decompress()
169 php_stream_close(SG(request_info).request_body); in phpdbg_webdata_decompress()
171 …SG(request_info).request_body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZ… in phpdbg_webdata_decompress()
172 php_stream_truncate_set_size(SG(request_info).request_body, 0); in phpdbg_webdata_decompress()
173 php_stream_write(SG(request_info).request_body, Z_STRVAL_P(zvp), Z_STRLEN_P(zvp)); in phpdbg_webdata_decompress()
H A Dphpdbg.c263 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()
1738 SG(request_info).argc = argc - php_optind + 1; in main()
1739 SG(request_info).argv = emalloc(SG(request_info).argc * sizeof(char *)); in main()
1740 for (i = SG(request_info).argc; --i;) { in main()
1741 SG(request_info).argv[i] = estrdup(argv[php_optind - 1 + i]); in main()
1743 SG(request_info).argv[0] = PHPDBG_G(exec) ? estrdup(PHPDBG_G(exec)) : estrdup(""); in main()
2019 for (i = SG(request_info).argc; i--;) { in main()
2020 efree(SG(request_info).argv[i]); in main()
[all …]
H A Dphpdbg_prompt.c437 *SG(request_info).argv = estrndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); in PHPDBG_COMMAND()
858 argv[0] = SG(request_info).argv[0]; in PHPDBG_COMMAND()
859 for (i = SG(request_info).argc; --i;) { in PHPDBG_COMMAND()
860 efree(SG(request_info).argv[i]); in PHPDBG_COMMAND()
862 efree(SG(request_info).argv); in PHPDBG_COMMAND()
863 SG(request_info).argv = erealloc(argv, ++argc * sizeof(char *)); in PHPDBG_COMMAND()
864 SG(request_info).argc = argc; in PHPDBG_COMMAND()
/PHP-8.0/sapi/fuzzer/
H A Dfuzzer-sapi.c238 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.0/sapi/cli/
H A Dphp_cli_server.c544 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers()
682 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables()
1869 request_info->proto_num = client->request.protocol_version; in php_cli_server_client_populate_request_info()
1870 request_info->request_uri = client->request.request_uri; in php_cli_server_client_populate_request_info()
1872 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info()
1874 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info()
1876 request_info->content_type = val; in php_cli_server_client_populate_request_info()
2132 destroy_request_info(&SG(request_info)); in php_cli_server_request_startup()
2144 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown()
2202 destroy_request_info(&SG(request_info)); in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c371 if(SG(request_info).argv0) { in sapi_cli_deactivate()
372 free(SG(request_info).argv0); in sapi_cli_deactivate()
373 SG(request_info).argv0 = NULL; in sapi_cli_deactivate()
907 SG(request_info).argc=argc-php_optind+1; in do_cli()
910 SG(request_info).path_translated = translated_path? translated_path: (char*)file_handle.filename; in do_cli()
912 SG(request_info).argv=argv+php_optind-1; in do_cli()
/PHP-8.0/ext/standard/
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()
H A Dhead.c72 if (sapi_send_headers()==FAILURE || SG(request_info).headers_only) { in php_header()
/PHP-8.0/ext/opcache/
H A Dzend_accelerator_module.c54 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()

Completed in 114 milliseconds

12