php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_globals.h
Go to the documentation of this file.
1
/*
2
+----------------------------------------------------------------------+
3
| Copyright (c) The PHP Group |
4
+----------------------------------------------------------------------+
5
| This source file is subject to version 3.01 of the PHP license, |
6
| that is bundled with this package in the file LICENSE, and is |
7
| available through the world-wide-web at the following url: |
8
| https://www.php.net/license/3_01.txt |
9
| If you did not receive a copy of the PHP license and are unable to |
10
| obtain it through the world-wide-web, please send a note to |
11
| license@php.net so we can mail you a copy immediately. |
12
+----------------------------------------------------------------------+
13
| Author: Zeev Suraski <zeev@php.net> |
14
+----------------------------------------------------------------------+
15
*/
16
17
#ifndef PHP_GLOBALS_H
18
#define PHP_GLOBALS_H
19
20
#include "
zend_globals.h
"
21
22
#include <stdint.h>
23
24
typedef
struct
_php_core_globals
php_core_globals
;
25
26
#ifdef ZTS
27
# define PG(v) ZEND_TSRMG_FAST(core_globals_offset, php_core_globals *, v)
28
extern
PHPAPI
int
core_globals_id;
29
extern
PHPAPI
size_t
core_globals_offset;
30
#else
31
# define PG(v) (core_globals.v)
32
extern
ZEND_API
struct
_php_core_globals
core_globals
;
33
#endif
34
35
/* Error display modes */
36
#define PHP_DISPLAY_ERRORS_STDOUT 1
37
#define PHP_DISPLAY_ERRORS_STDERR 2
38
39
/* Track vars */
40
#define TRACK_VARS_POST 0
41
#define TRACK_VARS_GET 1
42
#define TRACK_VARS_COOKIE 2
43
#define TRACK_VARS_SERVER 3
44
#define TRACK_VARS_ENV 4
45
#define TRACK_VARS_FILES 5
46
#define TRACK_VARS_REQUEST 6
47
48
struct
_php_tick_function_entry;
49
50
typedef
struct
_arg_separators
{
51
char
*
output
;
52
char
*
input
;
53
}
arg_separators
;
54
55
struct
_php_core_globals
{
56
zend_long
output_buffering
;
57
58
bool
implicit_flush
;
59
60
bool
enable_dl
;
61
62
uint8_t
display_errors
;
63
bool
display_startup_errors
;
64
bool
log_errors
;
65
bool
ignore_repeated_errors
;
66
bool
ignore_repeated_source
;
67
bool
report_memleaks
;
68
69
char
*
output_handler
;
70
71
char
*
unserialize_callback_func
;
72
zend_long
serialize_precision
;
73
74
zend_long
memory_limit
;
75
zend_long
max_input_time
;
76
77
char
*
error_log
;
78
79
char
*
doc_root
;
80
char
*
user_dir
;
81
char
*
include_path
;
82
char
*
open_basedir
;
83
bool
open_basedir_modified
;
84
char
*
extension_dir
;
85
char
*
php_binary
;
86
char
*
sys_temp_dir
;
87
88
char
*
upload_tmp_dir
;
89
zend_long
upload_max_filesize
;
90
91
char
*
error_append_string
;
92
char
*
error_prepend_string
;
93
94
char
*
auto_prepend_file
;
95
char
*
auto_append_file
;
96
97
char
*
input_encoding
;
98
char
*
internal_encoding
;
99
char
*
output_encoding
;
100
101
arg_separators
arg_separator
;
102
103
char
*
variables_order
;
104
105
HashTable
rfc1867_protected_variables
;
106
107
short
connection_status
;
108
bool
ignore_user_abort
;
109
110
unsigned
char
header_is_being_sent
;
111
112
zend_llist
tick_functions
;
113
114
zval
http_globals
[6];
115
116
bool
expose_php
;
117
118
bool
register_argc_argv
;
119
bool
auto_globals_jit
;
120
121
bool
html_errors
;
122
bool
xmlrpc_errors
;
123
124
char
*
docref_root
;
125
char
*
docref_ext
;
126
127
zend_long
xmlrpc_error_number
;
128
129
bool
activated_auto_globals
[8];
130
131
bool
modules_activated
;
132
bool
file_uploads
;
133
bool
during_request_startup
;
134
bool
allow_url_fopen
;
135
bool
enable_post_data_reading
;
136
bool
report_zend_debug
;
137
138
int
last_error_type
;
139
int
last_error_lineno
;
140
zend_string
*
last_error_message
;
141
zend_string
*
last_error_file
;
142
143
char
*
php_sys_temp_dir
;
144
145
char
*
disable_classes
;
146
zend_long
max_input_nesting_level
;
147
zend_long
max_input_vars
;
148
149
char
*
user_ini_filename
;
150
zend_long
user_ini_cache_ttl
;
151
152
char
*
request_order
;
153
154
char
*
mail_log
;
155
bool
mail_x_header
;
156
bool
mail_mixed_lf_and_crlf
;
157
158
bool
in_error_log
;
159
160
bool
allow_url_include
;
161
#ifdef PHP_WIN32
162
bool
com_initialized;
163
#endif
164
bool
in_user_include
;
165
166
#ifdef PHP_WIN32
167
bool
windows_show_crt_warning;
168
#endif
169
170
bool
have_called_openlog
;
171
zend_long
syslog_facility
;
172
char
*
syslog_ident
;
173
zend_long
syslog_filter
;
174
zend_long
error_log_mode
;
175
};
176
177
178
#endif
/* PHP_GLOBALS_H */
core_globals
php_core_globals core_globals
Definition
main.c:92
PHPAPI
#define PHPAPI
Definition
php.h:71
php_core_globals
struct _php_core_globals php_core_globals
Definition
php_globals.h:24
arg_separators
struct _arg_separators arg_separators
_arg_separators
Definition
php_globals.h:50
_arg_separators::output
char * output
Definition
php_globals.h:51
_arg_separators::input
char * input
Definition
php_globals.h:52
_php_core_globals
Definition
php_globals.h:55
_php_core_globals::mail_log
char * mail_log
Definition
php_globals.h:154
_php_core_globals::upload_tmp_dir
char * upload_tmp_dir
Definition
php_globals.h:88
_php_core_globals::arg_separator
arg_separators arg_separator
Definition
php_globals.h:101
_php_core_globals::connection_status
short connection_status
Definition
php_globals.h:107
_php_core_globals::allow_url_fopen
bool allow_url_fopen
Definition
php_globals.h:134
_php_core_globals::output_handler
char * output_handler
Definition
php_globals.h:69
_php_core_globals::unserialize_callback_func
char * unserialize_callback_func
Definition
php_globals.h:71
_php_core_globals::max_input_nesting_level
zend_long max_input_nesting_level
Definition
php_globals.h:146
_php_core_globals::auto_prepend_file
char * auto_prepend_file
Definition
php_globals.h:94
_php_core_globals::error_log
char * error_log
Definition
php_globals.h:77
_php_core_globals::last_error_type
int last_error_type
Definition
php_globals.h:138
_php_core_globals::extension_dir
char * extension_dir
Definition
php_globals.h:84
_php_core_globals::last_error_file
zend_string * last_error_file
Definition
php_globals.h:141
_php_core_globals::output_encoding
char * output_encoding
Definition
php_globals.h:99
_php_core_globals::mail_x_header
bool mail_x_header
Definition
php_globals.h:155
_php_core_globals::open_basedir
char * open_basedir
Definition
php_globals.h:82
_php_core_globals::last_error_message
zend_string * last_error_message
Definition
php_globals.h:140
_php_core_globals::auto_globals_jit
bool auto_globals_jit
Definition
php_globals.h:119
_php_core_globals::html_errors
bool html_errors
Definition
php_globals.h:121
_php_core_globals::syslog_facility
zend_long syslog_facility
Definition
php_globals.h:171
_php_core_globals::internal_encoding
char * internal_encoding
Definition
php_globals.h:98
_php_core_globals::display_errors
uint8_t display_errors
Definition
php_globals.h:62
_php_core_globals::upload_max_filesize
zend_long upload_max_filesize
Definition
php_globals.h:89
_php_core_globals::tick_functions
zend_llist tick_functions
Definition
php_globals.h:112
_php_core_globals::ignore_repeated_source
bool ignore_repeated_source
Definition
php_globals.h:66
_php_core_globals::error_log_mode
zend_long error_log_mode
Definition
php_globals.h:174
_php_core_globals::modules_activated
bool modules_activated
Definition
php_globals.h:131
_php_core_globals::allow_url_include
bool allow_url_include
Definition
php_globals.h:160
_php_core_globals::syslog_ident
char * syslog_ident
Definition
php_globals.h:172
_php_core_globals::report_zend_debug
bool report_zend_debug
Definition
php_globals.h:136
_php_core_globals::in_error_log
bool in_error_log
Definition
php_globals.h:158
_php_core_globals::user_dir
char * user_dir
Definition
php_globals.h:80
_php_core_globals::http_globals
zval http_globals[6]
Definition
php_globals.h:114
_php_core_globals::request_order
char * request_order
Definition
php_globals.h:152
_php_core_globals::user_ini_cache_ttl
zend_long user_ini_cache_ttl
Definition
php_globals.h:150
_php_core_globals::ignore_repeated_errors
bool ignore_repeated_errors
Definition
php_globals.h:65
_php_core_globals::user_ini_filename
char * user_ini_filename
Definition
php_globals.h:149
_php_core_globals::disable_classes
char * disable_classes
Definition
php_globals.h:145
_php_core_globals::activated_auto_globals
bool activated_auto_globals[8]
Definition
php_globals.h:129
_php_core_globals::during_request_startup
bool during_request_startup
Definition
php_globals.h:133
_php_core_globals::ignore_user_abort
bool ignore_user_abort
Definition
php_globals.h:108
_php_core_globals::auto_append_file
char * auto_append_file
Definition
php_globals.h:95
_php_core_globals::implicit_flush
bool implicit_flush
Definition
php_globals.h:58
_php_core_globals::enable_post_data_reading
bool enable_post_data_reading
Definition
php_globals.h:135
_php_core_globals::log_errors
bool log_errors
Definition
php_globals.h:64
_php_core_globals::input_encoding
char * input_encoding
Definition
php_globals.h:97
_php_core_globals::xmlrpc_error_number
zend_long xmlrpc_error_number
Definition
php_globals.h:127
_php_core_globals::output_buffering
zend_long output_buffering
Definition
php_globals.h:56
_php_core_globals::register_argc_argv
bool register_argc_argv
Definition
php_globals.h:118
_php_core_globals::php_binary
char * php_binary
Definition
php_globals.h:85
_php_core_globals::open_basedir_modified
bool open_basedir_modified
Definition
php_globals.h:83
_php_core_globals::enable_dl
bool enable_dl
Definition
php_globals.h:60
_php_core_globals::max_input_vars
zend_long max_input_vars
Definition
php_globals.h:147
_php_core_globals::display_startup_errors
bool display_startup_errors
Definition
php_globals.h:63
_php_core_globals::rfc1867_protected_variables
HashTable rfc1867_protected_variables
Definition
php_globals.h:105
_php_core_globals::xmlrpc_errors
bool xmlrpc_errors
Definition
php_globals.h:122
_php_core_globals::variables_order
char * variables_order
Definition
php_globals.h:103
_php_core_globals::docref_ext
char * docref_ext
Definition
php_globals.h:125
_php_core_globals::file_uploads
bool file_uploads
Definition
php_globals.h:132
_php_core_globals::header_is_being_sent
unsigned char header_is_being_sent
Definition
php_globals.h:110
_php_core_globals::syslog_filter
zend_long syslog_filter
Definition
php_globals.h:173
_php_core_globals::error_prepend_string
char * error_prepend_string
Definition
php_globals.h:92
_php_core_globals::php_sys_temp_dir
char * php_sys_temp_dir
Definition
php_globals.h:143
_php_core_globals::report_memleaks
bool report_memleaks
Definition
php_globals.h:67
_php_core_globals::expose_php
bool expose_php
Definition
php_globals.h:116
_php_core_globals::sys_temp_dir
char * sys_temp_dir
Definition
php_globals.h:86
_php_core_globals::docref_root
char * docref_root
Definition
php_globals.h:124
_php_core_globals::last_error_lineno
int last_error_lineno
Definition
php_globals.h:139
_php_core_globals::in_user_include
bool in_user_include
Definition
php_globals.h:164
_php_core_globals::doc_root
char * doc_root
Definition
php_globals.h:79
_php_core_globals::memory_limit
zend_long memory_limit
Definition
php_globals.h:74
_php_core_globals::error_append_string
char * error_append_string
Definition
php_globals.h:91
_php_core_globals::include_path
char * include_path
Definition
php_globals.h:81
_php_core_globals::have_called_openlog
bool have_called_openlog
Definition
php_globals.h:170
_php_core_globals::mail_mixed_lf_and_crlf
bool mail_mixed_lf_and_crlf
Definition
php_globals.h:156
_php_core_globals::serialize_precision
zend_long serialize_precision
Definition
php_globals.h:72
_php_core_globals::max_input_time
zend_long max_input_time
Definition
php_globals.h:75
zval
struct _zval_struct zval
Definition
zend_builtin_functions.h:25
ZEND_API
#define ZEND_API
Definition
zend_config.w32.h:50
zend_globals.h
zend_llist
struct _zend_llist zend_llist
zend_long
int32_t zend_long
Definition
zend_long.h:42
zend_string
struct _zend_string zend_string
Definition
zend_map_ptr.h:24
HashTable
struct _zend_array HashTable
Definition
zend_types.h:386
main
php_globals.h
Generated on Sat Aug 23 2025 01:46:12 for php-internal-docs by
1.13.2