forked from php/php-src
- Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_globals.h
178 lines (130 loc) · 3.89 KB
/
php_globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Zeev Suraski <zeev@php.net> |
+----------------------------------------------------------------------+
*/
#ifndefPHP_GLOBALS_H
#definePHP_GLOBALS_H
#include"zend_globals.h"
#include<stdint.h>
typedefstruct_php_core_globalsphp_core_globals;
#ifdefZTS
# definePG(v) ZEND_TSRMG_FAST(core_globals_offset, php_core_globals *, v)
externPHPAPIintcore_globals_id;
externPHPAPIsize_tcore_globals_offset;
#else
# definePG(v) (core_globals.v)
externZEND_APIstruct_php_core_globalscore_globals;
#endif
/* Error display modes */
#definePHP_DISPLAY_ERRORS_STDOUT 1
#definePHP_DISPLAY_ERRORS_STDERR 2
/* Track vars */
#defineTRACK_VARS_POST 0
#defineTRACK_VARS_GET 1
#defineTRACK_VARS_COOKIE 2
#defineTRACK_VARS_SERVER 3
#defineTRACK_VARS_ENV 4
#defineTRACK_VARS_FILES 5
#defineTRACK_VARS_REQUEST 6
struct_php_tick_function_entry;
typedefstruct_arg_separators {
char*output;
char*input;
} arg_separators;
struct_php_core_globals {
zend_longoutput_buffering;
boolimplicit_flush;
boolenable_dl;
uint8_tdisplay_errors;
booldisplay_startup_errors;
boollog_errors;
boolignore_repeated_errors;
boolignore_repeated_source;
boolreport_memleaks;
char*output_handler;
char*unserialize_callback_func;
zend_longserialize_precision;
zend_longmemory_limit;
zend_longmax_input_time;
char*error_log;
char*doc_root;
char*user_dir;
char*include_path;
char*open_basedir;
boolopen_basedir_modified;
char*extension_dir;
char*php_binary;
char*sys_temp_dir;
char*upload_tmp_dir;
zend_longupload_max_filesize;
char*error_append_string;
char*error_prepend_string;
char*auto_prepend_file;
char*auto_append_file;
char*input_encoding;
char*internal_encoding;
char*output_encoding;
arg_separatorsarg_separator;
char*variables_order;
HashTablerfc1867_protected_variables;
shortconnection_status;
boolignore_user_abort;
unsigned charheader_is_being_sent;
zend_llisttick_functions;
zvalhttp_globals[6];
boolexpose_php;
boolregister_argc_argv;
boolauto_globals_jit;
boolhtml_errors;
boolxmlrpc_errors;
char*docref_root;
char*docref_ext;
zend_longxmlrpc_error_number;
boolactivated_auto_globals[8];
boolmodules_activated;
boolfile_uploads;
boolduring_request_startup;
boolallow_url_fopen;
boolenable_post_data_reading;
boolreport_zend_debug;
intlast_error_type;
intlast_error_lineno;
zend_string*last_error_message;
zend_string*last_error_file;
char*php_sys_temp_dir;
char*disable_classes;
zend_longmax_input_nesting_level;
zend_longmax_input_vars;
char*user_ini_filename;
zend_longuser_ini_cache_ttl;
char*request_order;
char*mail_log;
boolmail_x_header;
boolmail_mixed_lf_and_crlf;
boolin_error_log;
boolallow_url_include;
#ifdefPHP_WIN32
boolcom_initialized;
#endif
boolin_user_include;
#ifdefPHP_WIN32
boolwindows_show_crt_warning;
#endif
boolhave_called_openlog;
zend_longsyslog_facility;
char*syslog_ident;
zend_longsyslog_filter;
zend_longerror_log_mode;
};
#endif/* PHP_GLOBALS_H */