Home
last modified time | relevance | path

Searched refs:SG (Results 26 – 50 of 55) sorted by relevance

123

/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_php.c162 return SG(request_info).path_translated; in fpm_php_script_filename()
168 return (char *) SG(request_info).request_uri; in fpm_php_request_uri()
174 return (char *) SG(request_info).request_method; in fpm_php_request_method()
180 return SG(request_info).query_string; in fpm_php_query_string()
186 return SG(request_info).auth_user; in fpm_php_auth_user()
192 return SG(request_info).content_length; in fpm_php_content_length()
H A Dfpm_log.c236 char *env = fcgi_getenv((fcgi_request*) SG(server_context), format, strlen(format)); in fpm_log_write()
300 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write()
379 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
H A Dfpm_php_trace.c59 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) { in fpm_php_trace_dump()
/PHP-5.5/sapi/apache2handler/
H A Dphp_functions.c61 php_struct *ctx = SG(server_context); in php_apache_lookup_uri()
185 ctx = SG(server_context); in PHP_FUNCTION()
209 ctx = SG(server_context); in PHP_FUNCTION()
232 ctx = SG(server_context); in PHP_FUNCTION()
266 ctx = SG(server_context); in PHP_FUNCTION()
302 ctx = SG(server_context); in PHP_FUNCTION()
373 server_rec *serv = ((php_struct *) SG(server_context))->r->server; in PHP_MINFO_FUNCTION()
437 …const apr_array_header_t *arr = apr_table_elts(((php_struct *) SG(server_context))->r->subprocess_… in PHP_MINFO_FUNCTION()
455 php_info_print_table_row(2, "HTTP Request", ((php_struct *) SG(server_context))->r->the_request); in PHP_MINFO_FUNCTION()
457 arr = apr_table_elts(((php_struct *) SG(server_context))->r->headers_in); in PHP_MINFO_FUNCTION()
[all …]
/PHP-5.5/sapi/apache/
H A Dsapi_apache.c43 …if (highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC) != SUCCESS… in apache_php_module_main()
49 file_handle.filename = SG(request_info).path_translated; in apache_php_module_main()
/PHP-5.5/sapi/milter/
H A Dphp_milter.c120 SG(headers_sent) = 1; in ZEND_DECLARE_MODULE_GLOBALS()
121 SG(request_info).no_headers = 1; in ZEND_DECLARE_MODULE_GLOBALS()
128 SG(headers_sent) = 1; in ZEND_DECLARE_MODULE_GLOBALS()
129 SG(request_info).no_headers = 1; in ZEND_DECLARE_MODULE_GLOBALS()
186 SG(headers_sent) = 1; in mlfi_connect()
194 SG(headers_sent) = 1; in mlfi_connect()
195 SG(request_info).no_headers = 1; in mlfi_connect()
1048 SG(headers_sent) = 1; in main()
1095 SG(headers_sent) = 1; in main()
1114 SG(headers_sent) = 1; in main()
[all …]
/PHP-5.5/main/
H A Dfopen_wrappers.c367 path_info = SG(request_info).request_uri;
403 filename = SG(request_info).path_translated;
426 filename = SG(request_info).path_translated;
435 if (SG(request_info).path_translated != filename) {
442 STR_FREE(SG(request_info).path_translated);
443 SG(request_info).path_translated = NULL;
452 if (SG(request_info).path_translated != filename) {
456 SG(request_info).path_translated = NULL;
461 if (SG(request_info).path_translated != filename) {
463 SG(request_info).path_translated = filename;
[all …]
H A Dmain.c1155 !SG(headers_sent) && in php_error_cb()
1209 if (SG(request_info).current_user) { in php_get_current_user()
1260 SG(request_info).current_user = estrndup(pwd->pw_name, SG(request_info).current_user_length); in php_get_current_user()
1506 if(!SG(sapi_started)) { in php_start_sapi()
1523 SG(sapi_started) = 1; in php_start_sapi()
1606 SG(sapi_started) = 1; in php_request_startup()
2090 SG(request_info).headers_only = 0; in php_module_startup()
2091 SG(request_info).argv0 = NULL; in php_module_startup()
2092 SG(request_info).argc=0; in php_module_startup()
2093 SG(request_info).argv=(char **)NULL; in php_module_startup()
[all …]
H A Drfc1867.c200 zend_hash_destroy(SG(rfc1867_uploaded_files)); in destroy_uploaded_files_hash()
201 FREE_HASHTABLE(SG(rfc1867_uploaded_files)); in destroy_uploaded_files_hash()
260 SG(read_post_bytes) += actual_read; in fill_buffer()
709 if (SG(post_max_size) > 0 && SG(request_info).content_length > SG(post_max_size)) {
710 …ntent-Length of %ld bytes exceeds the limit of %ld bytes", SG(request_info).content_length, SG(pos…
763 SG(rfc1867_uploaded_files) = uploaded_files;
775 event_start.content_length = SG(request_info).content_length;
873 event_formdata.post_bytes_processed = SG(read_post_bytes);
894 event_formdata.post_bytes_processed = SG(read_post_bytes);
1082 event_file_end.post_bytes_processed = SG(read_post_bytes);
[all …]
H A DSAPI.h141 # define SG(v) TSRMG(sapi_globals_id, sapi_globals_struct *, v) macro
144 # define SG(v) (sapi_globals.v)
/PHP-5.5/sapi/apache2filter/
H A Dphp_functions.c54 ctx = SG(server_context); in php_apache_lookup_uri()
161 ctx = SG(server_context); in PHP_FUNCTION()
181 ctx = SG(server_context); in PHP_FUNCTION()
204 ctx = SG(server_context); in PHP_FUNCTION()
235 ctx = SG(server_context); in PHP_FUNCTION()
264 ctx = SG(server_context); in PHP_FUNCTION()
/PHP-5.5/sapi/cli/
H A Dphp_cli_server.c493 client = SG(server_context); in PHP_FUNCTION()
541 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
636 if (!SG(headers_sent)) { in sapi_cli_server_flush()
638 SG(headers_sent) = 1; in sapi_cli_server_flush()
2116 SG(server_context) = NULL; in php_cli_server_request_shutdown()
2117 SG(rfc1867_uploaded_files) = NULL; in php_cli_server_request_shutdown()
2165 SG(server_context) = client; in php_cli_server_dispatch()
2172 SG(server_context) = NULL; in php_cli_server_dispatch()
2203 SG(rfc1867_uploaded_files) = NULL; in php_cli_server_dispatch()
2208 SG(server_context) = NULL; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c382 if(SG(request_info).argv0) { in sapi_cli_deactivate()
383 free(SG(request_info).argv0); in sapi_cli_deactivate()
384 SG(request_info).argv0 = NULL; in sapi_cli_deactivate()
732 SG(options) |= SAPI_OPTION_NO_CHDIR; in do_cli()
958 SG(request_info).argc=argc-php_optind+1; in do_cli()
961 SG(request_info).path_translated = translated_path? translated_path: (char*)file_handle.filename; in do_cli()
963 SG(request_info).argv=argv+php_optind-1; in do_cli()
/PHP-5.5/sapi/apache_hooks/
H A Dsapi_apache.c42 if (highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC)){ in apache_php_module_main()
50 file_handle.filename = SG(request_info).path_translated; in apache_php_module_main()
H A Dphp_apache.c977 SG(headers_sent) = 1; in PHP_FUNCTION()
993 ap_basic_http_header((request_rec *)SG(server_context)); in PHP_FUNCTION()
994 SG(headers_sent) = 1; in PHP_FUNCTION()
1010 ap_send_http_trace((request_rec *)SG(server_context)); in PHP_FUNCTION()
1011 SG(headers_sent) = 1; in PHP_FUNCTION()
1028 SG(headers_sent) = 1; in PHP_FUNCTION()
1283 SG(headers_sent) = 1; in PHP_FUNCTION()
1592 serv = ((request_rec *) SG(server_context))->server; in PHP_MINFO_FUNCTION()
1659 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
1678 r = ((request_rec *) SG(server_context)); in PHP_MINFO_FUNCTION()
[all …]
/PHP-5.5/ext/standard/
H A Dphp_fopen_wrapper.c78 if (SG(request_info).raw_post_data) { /* data has already been read by a post handler */ in php_stream_input_read()
79 read_bytes = SG(request_info).raw_post_data_length - *position; in php_stream_input_read()
86 memcpy(buf, SG(request_info).raw_post_data + *position, read_bytes); in php_stream_input_read()
95 SG(read_post_bytes) += read_bytes; in php_stream_input_read()
/PHP-5.5/ext/mbstring/
H A Dmb_gpc.c103 c_var = SG(request_info).query_string; in ZEND_EXTERN_MODULE_GLOBALS()
111 c_var = SG(request_info).cookie_data; in ZEND_EXTERN_MODULE_GLOBALS()
379 detected = _php_mb_encoding_handler_ex(&info, arg, SG(request_info).post_data TSRMLS_CC); in SAPI_POST_HANDLER_FUNC()
H A Dmbstring.c2120 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2123 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2124 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2125 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2126 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2128 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2131 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
2132 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in PHP_FUNCTION()
2136 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
2141 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-5.5/ext/iconv/
H A Diconv.c344 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
345 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
346 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
348 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
349 mimetype_len = s - SG(sapi_headers).mimetype; in php_iconv_output_handler()
351 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler()
352 mimetype = SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE; in php_iconv_output_handler()
365 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
/PHP-5.5/ext/soap/
H A Dsoap.c1519 if (SG(request_info).request_method &&
1520 strcmp(SG(request_info).request_method, "GET") == 0 &&
1521 SG(request_info).query_string &&
1574 if (SG(request_info).raw_post_data) {
1575 char *post_data = SG(request_info).raw_post_data;
2197 SG(sapi_headers).http_status_line = NULL;
2204 if (SG(sapi_headers).http_status_line) {
2205 efree(SG(sapi_headers).http_status_line);
2281 SG(sapi_headers).http_status_line = NULL;
2288 if (SG(sapi_headers).http_status_line) {
[all …]
/PHP-5.5/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()
H A DZendAccelerator.c731 file_handle->filename == SG(request_info).path_translated) { in zend_get_file_handle_timestamp()
1484 file_handle->filename == SG(request_info).path_translated &&
1906 filename == SG(request_info).path_translated) ||
1971 filename == SG(request_info).path_translated) ||
/PHP-5.5/ext/filter/
H A Dsanitizing_filters.c261 …buf = php_escape_html_entities_ex(Z_STRVAL_P(value), Z_STRLEN_P(value), &len, 1, quotes, SG(defaul… in php_filter_full_special_chars()
/PHP-5.5/ext/session/
H A Dsession.c1181 path = SG(request_info).path_translated;
1259 if (SG(headers_sent)) {
1301 zend_llist *l = &SG(sapi_headers).headers;
1343 if (SG(headers_sent)) {
1958 if (SG(headers_sent) && PS(use_cookies)) {
/PHP-5.5/ext/zlib/
H A Dzlib.c220 if (SG(headers_sent) || !ZLIBG(output_compression)) { in php_zlib_output_handler()

Completed in 157 milliseconds

123