Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 190 lines (140 sloc) 4.357 kb
c5724cb Zeev Suraski License update
zsuraski authored
1 /*
2 +----------------------------------------------------------------------+
ccfc46b - Happy new year and PHP 5 for rest of the files too..
foobar authored
3 | PHP Version 5 |
c5724cb Zeev Suraski License update
zsuraski authored
4 +----------------------------------------------------------------------+
a2045ff Xinchen Hui Happy New Year~
laruence authored
5 | Copyright (c) 1997-2013 The PHP Group |
c5724cb Zeev Suraski License update
zsuraski authored
6 +----------------------------------------------------------------------+
5bd9322 bump year and license version
foobar authored
7 | This source file is subject to version 3.01 of the PHP license, |
c5724cb Zeev Suraski License update
zsuraski authored
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored
9 | available through the world-wide-web at the following url: |
5bd9322 bump year and license version
foobar authored
10 | http://www.php.net/license/3_01.txt |
c5724cb Zeev Suraski License update
zsuraski authored
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
90613d2 Maintain headers.
Sebastian Bergmann authored
15 | Author: Zeev Suraski <zeev@zend.com> |
c5724cb Zeev Suraski License update
zsuraski authored
16 +----------------------------------------------------------------------+
17 */
18
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored
19 /* $Id$ */
c5724cb Zeev Suraski License update
zsuraski authored
20
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
21 #ifndef PHP_GLOBALS_H
22 #define PHP_GLOBALS_H
011813c Zeev Suraski *** empty log message ***
zsuraski authored
23
c5af324 Zeev Suraski More thread safety work
zsuraski authored
24 #include "zend_globals.h"
25
011813c Zeev Suraski *** empty log message ***
zsuraski authored
26 typedef struct _php_core_globals php_core_globals;
27
28 #ifdef ZTS
d87cc97 Zeev Suraski Redesigned thread safety mechanism - nua nua
zsuraski authored
29 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
3cad348 Zeev Suraski * Add a new workspace for dynamic PHP extensions.
zsuraski authored
30 extern PHPAPI int core_globals_id;
011813c Zeev Suraski *** empty log message ***
zsuraski authored
31 #else
32 # define PG(v) (core_globals.v)
5a2189f work around gcc bug, otherwise compiler would die with
Sascha Schumann authored
33 extern ZEND_API struct _php_core_globals core_globals;
011813c Zeev Suraski *** empty log message ***
zsuraski authored
34 #endif
35
335cac3 MFH:- Changed "display_errors" php.ini option to accept "stderr" as valu...
Jani Taskinen authored
36 /* Error display modes */
37 #define PHP_DISPLAY_ERRORS_STDOUT 1
38 #define PHP_DISPLAY_ERRORS_STDERR 2
eb32144 Zeev Suraski - Remove track_vars - it is now always on
zsuraski authored
39
335cac3 MFH:- Changed "display_errors" php.ini option to accept "stderr" as valu...
Jani Taskinen authored
40 /* Track vars */
bfa301d Zeev Suraski Fix ordering
zsuraski authored
41 #define TRACK_VARS_POST 0
42 #define TRACK_VARS_GET 1
43 #define TRACK_VARS_COOKIE 2
44 #define TRACK_VARS_SERVER 3
45 #define TRACK_VARS_ENV 4
46 #define TRACK_VARS_FILES 5
4e55747 Zeev Suraski Add JIT initialization for _SERVER and _ENV
zsuraski authored
47 #define TRACK_VARS_REQUEST 6
0e90b9d Zeev Suraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipulat...
zsuraski authored
48
d23e5d8 @- Implemented default_charset and default_mimetype config directives (S...
Stig Bakken authored
49 struct _php_tick_function_entry;
011813c Zeev Suraski *** empty log message ***
zsuraski authored
50
c34d2b9 Added new configuration directives:
foobar authored
51 typedef struct _arg_separators {
52 char *output;
53 char *input;
54 } arg_separators;
55
011813c Zeev Suraski *** empty log message ***
zsuraski authored
56 struct _php_core_globals {
54ec3a8 Rasmus Lerdorf Cleanups
rlerdorf authored
57 zend_bool magic_quotes_gpc;
58 zend_bool magic_quotes_runtime;
59 zend_bool magic_quotes_sybase;
7685b44 Zeev Suraski Move asp_tags and short_open_tag to the new php_ini mechanism
zsuraski authored
60
e077c6b Zeev Suraski Make it possible to enable chunked output buffering without providing
zsuraski authored
61 zend_bool safe_mode;
62
d800068 Zeev Suraski - Implement ability to turn off support for call-time pass by reference
zsuraski authored
63 zend_bool allow_call_time_pass_reference;
24156db Zeev Suraski @- Added implicit_flush INI directive (Zeev)
zsuraski authored
64 zend_bool implicit_flush;
79f9f0c Zeev Suraski Move safe_mode to the new php_ini mechanism
zsuraski authored
65
1edf7f5 64 bit corrections to parameters to OnUpdateInt Bug #20994 (Dave)
David Hill authored
66 long output_buffering;
e077c6b Zeev Suraski Make it possible to enable chunked output buffering without providing
zsuraski authored
67
771e3e4 o Fixed Bug #12121: chdir and safe_mode
James E. Flemer authored
68 char *safe_mode_include_dir;
934e10c Rasmus Lerdorf Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
rlerdorf authored
69 zend_bool safe_mode_gid;
54ec3a8 Rasmus Lerdorf Cleanups
rlerdorf authored
70 zend_bool sql_safe_mode;
71 zend_bool enable_dl;
0f7f5c2 Zeev Suraski - Import Jade Nicoletti's transparent gzip encoding support as an output
zsuraski authored
72
73 char *output_handler;
74
06cdf29 - Adding a callback mechanism to the unserializer. (patch by Bernd
Derick Rethans authored
75 char *unserialize_callback_func;
b20df54 Make serialize precision a configurable option.
Ilia Alshanetsky authored
76 long serialize_precision;
06cdf29 - Adding a callback mechanism to the unserializer. (patch by Bernd
Derick Rethans authored
77
8fb954a Zeev Suraski Fix startup sequence. It should do it this time.
zsuraski authored
78 char *safe_mode_exec_dir;
bb6dff9 Zeev Suraski Buh-bye php3_ini
zsuraski authored
79
f86fb81 Zeev Suraski Change four spaces back to tabs (Why the hell did you change the tabs to...
zsuraski authored
80 long memory_limit;
b9efd22 Fixed bug #16880. Added an ini option max_input_time that allows the use...
Ilia Alshanetsky authored
81 long max_input_time;
e3d2234 Zeev Suraski A lot of php3_ini -> php_ini work
zsuraski authored
82
54ec3a8 Rasmus Lerdorf Cleanups
rlerdorf authored
83 zend_bool track_errors;
84 zend_bool display_errors;
b7ecaac Zeev Suraski More security-related (control) patches:
zsuraski authored
85 zend_bool display_startup_errors;
54ec3a8 Rasmus Lerdorf Cleanups
rlerdorf authored
86 zend_bool log_errors;
0d7957b Bug #20433
Marcus Boerger authored
87 long log_errors_max_len;
ddc6437 new feature ignoring repeated error messages (defaults to old behaviour)
Marcus Boerger authored
88 zend_bool ignore_repeated_errors;
89 zend_bool ignore_repeated_source;
d812929 - Implement Andrei's request for disabling memory leak reporting in debu...
Derick Rethans authored
90 zend_bool report_memleaks;
f86fb81 Zeev Suraski Change four spaces back to tabs (Why the hell did you change the tabs to...
zsuraski authored
91 char *error_log;
bb6dff9 Zeev Suraski Buh-bye php3_ini
zsuraski authored
92
f86fb81 Zeev Suraski Change four spaces back to tabs (Why the hell did you change the tabs to...
zsuraski authored
93 char *doc_root;
94 char *user_dir;
95 char *include_path;
96 char *open_basedir;
97 char *extension_dir;
bb6dff9 Zeev Suraski Buh-bye php3_ini
zsuraski authored
98
f86fb81 Zeev Suraski Change four spaces back to tabs (Why the hell did you change the tabs to...
zsuraski authored
99 char *upload_tmp_dir;
100 long upload_max_filesize;
35b30a8 Add reentrant versions of ctime, localtime, gmtime, asctime.
Sascha Schumann authored
101
6727342 Rasmus Lerdorf Make error_prepend_string and error_append_string work
rlerdorf authored
102 char *error_append_string;
103 char *error_prepend_string;
104
f86fb81 Zeev Suraski Change four spaces back to tabs (Why the hell did you change the tabs to...
zsuraski authored
105 char *auto_prepend_file;
106 char *auto_append_file;
bb6dff9 Zeev Suraski Buh-bye php3_ini
zsuraski authored
107
c34d2b9 Added new configuration directives:
foobar authored
108 arg_separators arg_separator;
109
9ab35ae Zeev Suraski Tried to centralize global variable registration as much as possible:
zsuraski authored
110 char *variables_order;
bb6dff9 Zeev Suraski Buh-bye php3_ini
zsuraski authored
111
ed453cc Zeev Suraski Fix the file upload security problem with no side effects (untested)
zsuraski authored
112 HashTable rfc1867_protected_variables;
113
0bede91 Rasmus Lerdorf First part of the connection_status work. No user-callable functions
rlerdorf authored
114 short connection_status;
115 short ignore_user_abort;
116
f86fb81 Zeev Suraski Change four spaces back to tabs (Why the hell did you change the tabs to...
zsuraski authored
117 unsigned char header_is_being_sent;
d23e5d8 @- Implemented default_charset and default_mimetype config directives (S...
Stig Bakken authored
118
119 zend_llist tick_functions;
0e90b9d Zeev Suraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipulat...
zsuraski authored
120
eb32144 Zeev Suraski - Remove track_vars - it is now always on
zsuraski authored
121 zval *http_globals[6];
8fb954a Zeev Suraski Fix startup sequence. It should do it this time.
zsuraski authored
122
123 zend_bool expose_php;
124
125 zend_bool register_globals;
4e55747 Zeev Suraski Add JIT initialization for _SERVER and _ENV
zsuraski authored
126 zend_bool register_long_arrays;
8fb954a Zeev Suraski Fix startup sequence. It should do it this time.
zsuraski authored
127 zend_bool register_argc_argv;
02344b1 Zeev Suraski Improve the way auto-globals JIT works, and add the ability to turn it o...
zsuraski authored
128 zend_bool auto_globals_jit;
8fb954a Zeev Suraski Fix startup sequence. It should do it this time.
zsuraski authored
129
130 zend_bool y2k_compliance;
131
88c385e rename php_error_func<n> to php_error_docref and support Wez idea
Marcus Boerger authored
132 char *docref_root;
133 char *docref_ext;
134
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting of e...
Stig Bakken authored
135 zend_bool html_errors;
a2ce3c7 Allow errors to be returned as XMLRPC fault packets.
Sascha Schumann authored
136 zend_bool xmlrpc_errors;
137
3dd33fd Fix xmlrpc_error:number handling
Sascha Schumann authored
138 long xmlrpc_error_number;
a2ce3c7 Allow errors to be returned as XMLRPC fault packets.
Sascha Schumann authored
139
4e55747 Zeev Suraski Add JIT initialization for _SERVER and _ENV
zsuraski authored
140 zend_bool activated_auto_globals[8];
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting of e...
Stig Bakken authored
141
b7ecaac Zeev Suraski More security-related (control) patches:
zsuraski authored
142 zend_bool modules_activated;
143 zend_bool file_uploads;
144 zend_bool during_request_startup;
cae2717 fopen wrappers cleanup
Hartmut Holzgraefe authored
145 zend_bool allow_url_fopen;
9bc97ac Rasmus Lerdorf Add always_populate_raw_post_data ini directive and default it to 0 to
rlerdorf authored
146 zend_bool always_populate_raw_post_data;
b7cd48e Make it possible to test language features like newly introduced 'abstra...
Marcus Boerger authored
147 zend_bool report_zend_debug;
3fc4a32 Infrastructure to catch warnings and throw tehm as errors autmatically
Marcus Boerger authored
148
46f21b8 Michael Wallner MFH: added error_get_last() function
m6w6 authored
149 int last_error_type;
3fc4a32 Infrastructure to catch warnings and throw tehm as errors autmatically
Marcus Boerger authored
150 char *last_error_message;
151 char *last_error_file;
152 int last_error_lineno;
be5670a Fixed bug #26707 (Incorrect error for disabled functions/classes).
Ilia Alshanetsky authored
153
154 char *disable_functions;
155 char *disable_classes;
6bfeea9 Rasmus Lerdorf MFH: Backported allow_url_include from HEAD. This directive allows
rlerdorf authored
156 zend_bool allow_url_include;
6c15837 Rasmus Lerdorf exit_on_timeout patch
rlerdorf authored
157 zend_bool exit_on_timeout;
c06f9e1 COM initialization/deinitialization are done only if necessary
Dmitry Stogov authored
158 #ifdef PHP_WIN32
159 zend_bool com_initialized;
160 #endif
32fb34e Stanislav Malyshev limit nesting level of input variables
smalyshev authored
161 long max_input_nesting_level;
539f67e Added ability to create local or remote (URL) user streams
Dmitry Stogov authored
162 zend_bool in_user_include;
09b6f37 MFH:
Jani Taskinen authored
163
164 char *user_ini_filename;
165 long user_ini_cache_ttl;
a9fe101 Stanislav Malyshev [DOC] add request_order INI variable to control $_REQUEST content
smalyshev authored
166
167 char *request_order;
905a5c0 [DOC]
Ilia Alshanetsky authored
168
169 zend_bool mail_x_header;
170 char *mail_log;
ffb0773 Fixed bug #49627 (error_log to specified file does not log time accordin...
Dmitry Stogov authored
171
172 zend_bool in_error_log;
fb53dd8 pierrejoye - merge crt warning change (r216594) and rename the ini to windows.show_...
pierrejoye authored
173
174 #ifdef PHP_WIN32
175 zend_bool windows_show_crt_warning;
176 #endif
0d1998e Added max_input_vars directive to prevent attacks based on hash collisio...
Dmitry Stogov authored
177
178 long max_input_vars;
011813c Zeev Suraski *** empty log message ***
zsuraski authored
179 };
180
181
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
182 #endif /* PHP_GLOBALS_H */
336392e * now using php4.ini instead of php3.ini
Stig Bakken authored
183
184 /*
185 * Local variables:
186 * tab-width: 4
187 * c-basic-offset: 4
188 * End:
189 */
Something went wrong with that request. Please try again.