Home
last modified time | relevance | path

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

12

/PHP-7.0/main/
H A DSAPI.c173 if (SG(request_info).post_entry && SG(request_info).content_type_dup) { in sapi_handle_post()
174 SG(request_info).post_entry->post_handler(SG(request_info).content_type_dup, arg); in sapi_handle_post()
398 SG(request_info).headers_read = 1; in sapi_activate_headers_only()
410 SG(request_info).no_headers = 0; in sapi_activate_headers_only()
418 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate_headers_only()
454 SG(request_info).no_headers = 0; in sapi_activate()
460 if (SG(request_info).request_method && !strcmp(SG(request_info).request_method, "HEAD")) { in sapi_activate()
470 && SG(request_info).content_type in sapi_activate()
517 if (SG(request_info).auth_user) { in sapi_deactivate()
545 SG(request_info).headers_read = 0; in sapi_deactivate()
[all …]
H A Dphp_variables.c328 php_stream *s = SG(request_info).request_body; in SAPI_POST_HANDLER_FUNC()
408 c_var = SG(request_info).query_string; in SAPI_TREAT_DATA_FUNC()
416 c_var = SG(request_info).cookie_data; in SAPI_TREAT_DATA_FUNC()
577 if (SG(request_info).argc) { in php_build_argv()
578 ZVAL_LONG(&argc, SG(request_info).argc); in php_build_argv()
583 if (SG(request_info).argc) { in php_build_argv()
612 if (SG(request_info).auth_user) { in php_register_server_variables()
615 if (SG(request_info).auth_password) { in php_register_server_variables()
618 if (SG(request_info).auth_digest) { in php_register_server_variables()
698 SG(request_info).request_method && in php_auto_globals_create_post()
[all …]
H A Dphp_content_types.c40 if (!strcmp(SG(request_info).request_method, "POST")) { in SAPI_POST_READER_FUNC()
41 if (NULL == SG(request_info).post_entry) { in SAPI_POST_READER_FUNC()
H A Dfopen_wrappers.c363 path_info = SG(request_info).request_uri;
422 filename = SG(request_info).path_translated;
440 if (SG(request_info).path_translated) {
441 efree(SG(request_info).path_translated);
442 SG(request_info).path_translated = NULL;
457 if (SG(request_info).path_translated) {
458 efree(SG(request_info).path_translated);
459 SG(request_info).path_translated = NULL;
466 if (SG(request_info).path_translated) {
467 efree(SG(request_info).path_translated);
[all …]
H A Dmain.c1242 if (SG(request_info).current_user) { in php_get_current_user()
1243 return SG(request_info).current_user; in php_get_current_user()
1263 SG(request_info).current_user_length = len; in php_get_current_user()
1265 return SG(request_info).current_user; in php_get_current_user()
1293 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user()
1297 return SG(request_info).current_user; in php_get_current_user()
1586 …P(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_startup()
1893 …N(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (c… in php_request_shutdown()
2616 SG(request_info).auth_user = SG(request_info).auth_password = NULL; in php_handle_auth_data()
2618 SG(request_info).auth_digest = NULL; in php_handle_auth_data()
[all …]
H A DSAPI.h123 sapi_request_info request_info; member
H A Drfc1867.c720 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) {
721 …ND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length…
786 event_start.content_length = SG(request_info).content_length;
/PHP-7.0/sapi/cgi/
H A Dcgi_main.c376 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers()
698 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
1134 SG(request_info).proto_num = 1000;
1135 SG(request_info).query_string = NULL;
1136 SG(request_info).request_uri = NULL;
1137 SG(request_info).content_type = NULL;
1138 SG(request_info).content_length = 0;
2243 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2252 if (SG(request_info).path_translated) efree(SG(request_info).path_translated);
2261 SG(request_info).no_headers = 1;
[all …]
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_main.c361 if (SG(request_info).no_headers == 1) { in sapi_cgi_send_headers()
623 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
1038 SG(request_info).request_method = NULL;
1039 SG(request_info).proto_num = 1000;
1040 SG(request_info).query_string = NULL;
1041 SG(request_info).request_uri = NULL;
1042 SG(request_info).content_type = NULL;
1043 SG(request_info).content_length = 0;
1323 if (!SG(request_info).request_uri) {
1756 SG(request_info).no_headers = 1;
[all …]
H A Dfpm_php.c161 return SG(request_info).path_translated; in fpm_php_script_filename()
167 return (char *) SG(request_info).request_uri; in fpm_php_request_uri()
173 return (char *) SG(request_info).request_method; in fpm_php_request_method()
179 return SG(request_info).query_string; in fpm_php_query_string()
185 return SG(request_info).auth_user; in fpm_php_auth_user()
191 return SG(request_info).content_length; in fpm_php_content_length()
H A Dfpm_status.c60 if (!SG(request_info).request_uri) { in fpm_status_handle_request()
65 …ng_uri && fpm_status_ping_response && !strcmp(fpm_status_ping_uri, SG(request_info).request_uri)) { in fpm_status_handle_request()
73 if (SG(request_info).headers_only) { in fpm_status_handle_request()
82 if (fpm_status_uri && !strcmp(fpm_status_uri, SG(request_info).request_uri)) { in fpm_status_handle_request()
125 if (SG(request_info).headers_only) { in fpm_status_handle_request()
H A Dfpm_php_trace.c60 if (0 > fpm_trace_get_long((long) &SG(request_info).path_translated, &l)) { in fpm_php_trace_dump()
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c196 if ( SG(request_info).path_translated ) in sapi_lsapi_deactivate()
198 efree( SG(request_info).path_translated ); in sapi_lsapi_deactivate()
199 SG(request_info).path_translated = NULL; in sapi_lsapi_deactivate()
284 if ( (SG(request_info).request_uri ) ) in sapi_lsapi_register_variables()
285 php_self = (SG(request_info).request_uri ); in sapi_lsapi_register_variables()
468 SG(request_info).query_string = LSAPI_GetQueryString(); in init_request_info()
469 SG(request_info).request_uri = LSAPI_GetScriptName(); in init_request_info()
492 len = strlen( SG(request_info).path_translated ); in lsapi_execute_script()
669 ctx->path = SG(request_info).path_translated; in lsapi_activate_user_ini_basic_checks()
1089 SG(request_info).argv = p; in cli_main()
[all …]
/PHP-7.0/sapi/apache2handler/
H A Dsapi_apache2.c484 SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type"); in php_apache_request_ctor()
485 SG(request_info).query_string = apr_pstrdup(r->pool, r->args); in php_apache_request_ctor()
486 SG(request_info).request_method = r->method; in php_apache_request_ctor()
487 SG(request_info).proto_num = r->proto_num; in php_apache_request_ctor()
488 SG(request_info).request_uri = apr_pstrdup(r->pool, r->uri); in php_apache_request_ctor()
489 SG(request_info).path_translated = apr_pstrdup(r->pool, r->filename); in php_apache_request_ctor()
494 ZEND_ATOL(SG(request_info).content_length, content_length); in php_apache_request_ctor()
496 SG(request_info).content_length = 0; in php_apache_request_ctor()
507 if (SG(request_info).auth_user == NULL && r->user) { in php_apache_request_ctor()
508 SG(request_info).auth_user = estrdup(r->user); in php_apache_request_ctor()
[all …]
/PHP-7.0/sapi/embed/
H A Dphp_embed.c210 SG(request_info).argc=argc; in php_embed_init()
211 SG(request_info).argv=argv; in php_embed_init()
219 SG(request_info).no_headers = 1; in php_embed_init()
/PHP-7.0/ext/mbstring/
H A Dmb_gpc.c101 c_var = SG(request_info).query_string; in ZEND_EXTERN_MODULE_GLOBALS()
109 c_var = SG(request_info).cookie_data; in ZEND_EXTERN_MODULE_GLOBALS()
378 php_stream_rewind(SG(request_info).request_body); in SAPI_POST_HANDLER_FUNC()
379 post_data_str = php_stream_copy_to_mem(SG(request_info).request_body, PHP_STREAM_COPY_ALL, 0); in SAPI_POST_HANDLER_FUNC()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_wait.c174 if (SG(request_info).request_body) { in phpdbg_webdata_decompress()
175 php_stream_close(SG(request_info).request_body); in phpdbg_webdata_decompress()
177 …SG(request_info).request_body = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZ… in phpdbg_webdata_decompress()
178 php_stream_truncate_set_size(SG(request_info).request_body, 0); in phpdbg_webdata_decompress()
179 php_stream_write(SG(request_info).request_body, Z_STRVAL_P(zvp), Z_STRLEN_P(zvp)); in phpdbg_webdata_decompress()
H A Dphpdbg.c875 if (SG(request_info).argv0) { in php_sapi_phpdbg_deactivate()
876 free(SG(request_info).argv0); in php_sapi_phpdbg_deactivate()
877 SG(request_info).argv0 = NULL; in php_sapi_phpdbg_deactivate()
1785 SG(request_info).argc = argc - php_optind + 1; in main()
1786 SG(request_info).argv = emalloc(SG(request_info).argc * sizeof(char *)); in main()
1787 for (i = SG(request_info).argc; --i;) { in main()
1788 SG(request_info).argv[i] = estrdup(argv[php_optind - 1 + i]); in main()
1790 SG(request_info).argv[0] = PHPDBG_G(exec) ? estrdup(PHPDBG_G(exec)) : estrdup(""); in main()
2054 for (i = SG(request_info).argc; i--;) { in main()
2055 efree(SG(request_info).argv[i]); in main()
[all …]
H A Dphpdbg_prompt.c443 *SG(request_info).argv = PHPDBG_G(exec); in PHPDBG_COMMAND()
911 argv[0] = SG(request_info).argv[0]; in PHPDBG_COMMAND()
912 for (i = SG(request_info).argc; --i;) { in PHPDBG_COMMAND()
913 efree(SG(request_info).argv[i]); in PHPDBG_COMMAND()
915 efree(SG(request_info).argv); in PHPDBG_COMMAND()
916 SG(request_info).argv = erealloc(argv, ++argc * sizeof(char *)); in PHPDBG_COMMAND()
917 SG(request_info).argc = argc; in PHPDBG_COMMAND()
/PHP-7.0/sapi/cli/
H A Dphp_cli_server.c531 if (client == NULL || SG(request_info).no_headers) { in sapi_cli_server_send_headers()
665 if (SG(request_info).path_translated) { in sapi_cli_server_register_variables()
1822 request_info->request_uri = client->request.request_uri; in php_cli_server_client_populate_request_info()
1824 request_info->query_string = client->request.query_string; in php_cli_server_client_populate_request_info()
1826 request_info->auth_user = request_info->auth_password = request_info->auth_digest = NULL; in php_cli_server_client_populate_request_info()
1828 request_info->content_type = val; in php_cli_server_client_populate_request_info()
1995 zfd.filename = SG(request_info).path_translated; in php_cli_server_dispatch_script()
2088 destroy_request_info(&SG(request_info)); in php_cli_server_request_startup()
2100 destroy_request_info(&SG(request_info)); in php_cli_server_request_shutdown()
2149 destroy_request_info(&SG(request_info)); in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c391 if(SG(request_info).argv0) { in sapi_cli_deactivate()
392 free(SG(request_info).argv0); in sapi_cli_deactivate()
393 SG(request_info).argv0 = NULL; in sapi_cli_deactivate()
941 SG(request_info).argc=argc-php_optind+1; in do_cli()
944 SG(request_info).path_translated = translated_path? translated_path: (char*)file_handle.filename; in do_cli()
946 SG(request_info).argv=argv+php_optind-1; in do_cli()
/PHP-7.0/ext/standard/
H A Dphp_fopen_wrapper.c238 if ((input->body = SG(request_info).request_body)) { in php_stream_url_wrap_php()
242 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-7.0/ext/opcache/
H A Dzend_accelerator_module.c91 if (!SG(request_info).path_translated || in validate_api_restriction()
92 strlen(SG(request_info).path_translated) < len || in validate_api_restriction()
93 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) { in validate_api_restriction()
/PHP-7.0/ext/phar/
H A Dphar_object.c583 if (!(SG(request_info).request_method in PHP_METHOD()
584 && SG(request_info).request_uri in PHP_METHOD()
585 && (!strcmp(SG(request_info).request_method, "GET") in PHP_METHOD()
586 || !strcmp(SG(request_info).request_method, "POST") in PHP_METHOD()
587 || !strcmp(SG(request_info).request_method, "DELETE") in PHP_METHOD()
588 || !strcmp(SG(request_info).request_method, "HEAD") in PHP_METHOD()
589 || !strcmp(SG(request_info).request_method, "OPTIONS") in PHP_METHOD()
590 || !strcmp(SG(request_info).request_method, "PATCH") in PHP_METHOD()
591 || !strcmp(SG(request_info).request_method, "PUT") in PHP_METHOD()
667 path_info = SG(request_info).request_uri; in PHP_METHOD()

Completed in 99 milliseconds

12