Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 153 lines (106 sloc) 3.495 kb
c5724cb @zsuraski License update
zsuraski authored
1 /*
2 +----------------------------------------------------------------------+
3893351 Update headers.
Sebastian Bergmann authored
3 | PHP Version 4 |
c5724cb @zsuraski License update
zsuraski authored
4 +----------------------------------------------------------------------+
3893351 Update headers.
Sebastian Bergmann authored
5 | Copyright (c) 1997-2002 The PHP Group |
c5724cb @zsuraski License update
zsuraski authored
6 +----------------------------------------------------------------------+
e043439 @zsuraski Update the license with the new clause 6
zsuraski authored
7 | This source file is subject to version 2.02 of the PHP license, |
c5724cb @zsuraski License update
zsuraski authored
8 | that is bundled with this package in the file LICENSE, and is |
9 | available at through the world-wide-web at |
e043439 @zsuraski Update the license with the new clause 6
zsuraski authored
10 | http://www.php.net/license/2_02.txt. |
c5724cb @zsuraski 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 @zsuraski License update
zsuraski authored
16 +----------------------------------------------------------------------+
17 */
18
19
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
20 #ifndef PHP_GLOBALS_H
21 #define PHP_GLOBALS_H
011813c @zsuraski *** empty log message ***
zsuraski authored
22
c5af324 @zsuraski More thread safety work
zsuraski authored
23 #include "zend_globals.h"
24
011813c @zsuraski *** empty log message ***
zsuraski authored
25 typedef struct _php_core_globals php_core_globals;
26
27 #ifdef ZTS
d87cc97 @zsuraski Redesigned thread safety mechanism - nua nua
zsuraski authored
28 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
3cad348 @zsuraski * Add a new workspace for dynamic PHP extensions.
zsuraski authored
29 extern PHPAPI int core_globals_id;
011813c @zsuraski *** empty log message ***
zsuraski authored
30 #else
31 # define PG(v) (core_globals.v)
5a2189f work around gcc bug, otherwise compiler would die with
Sascha Schumann authored
32 extern ZEND_API struct _php_core_globals core_globals;
011813c @zsuraski *** empty log message ***
zsuraski authored
33 #endif
34
eb32144 @zsuraski - Remove track_vars - it is now always on
zsuraski authored
35
bfa301d @zsuraski Fix ordering
zsuraski authored
36 #define TRACK_VARS_POST 0
37 #define TRACK_VARS_GET 1
38 #define TRACK_VARS_COOKIE 2
39 #define TRACK_VARS_SERVER 3
40 #define TRACK_VARS_ENV 4
41 #define TRACK_VARS_FILES 5
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored
42
d23e5d8 @- Implemented default_charset and default_mimetype config directives…
Stig Bakken authored
43 struct _php_tick_function_entry;
011813c @zsuraski *** empty log message ***
zsuraski authored
44
c34d2b9 Added new configuration directives:
foobar authored
45 typedef struct _arg_separators {
46 char *output;
47 char *input;
48 } arg_separators;
49
011813c @zsuraski *** empty log message ***
zsuraski authored
50 struct _php_core_globals {
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
51 zend_bool magic_quotes_gpc;
52 zend_bool magic_quotes_runtime;
53 zend_bool magic_quotes_sybase;
7685b44 @zsuraski Move asp_tags and short_open_tag to the new php_ini mechanism
zsuraski authored
54
e077c6b @zsuraski Make it possible to enable chunked output buffering without providing
zsuraski authored
55 zend_bool safe_mode;
56
d800068 @zsuraski - Implement ability to turn off support for call-time pass by reference
zsuraski authored
57 zend_bool allow_call_time_pass_reference;
24156db @zsuraski @- Added implicit_flush INI directive (Zeev)
zsuraski authored
58 zend_bool implicit_flush;
79f9f0c @zsuraski Move safe_mode to the new php_ini mechanism
zsuraski authored
59
e077c6b @zsuraski Make it possible to enable chunked output buffering without providing
zsuraski authored
60 int output_buffering;
61
771e3e4 o Fixed Bug #12121: chdir and safe_mode
James E. Flemer authored
62 char *safe_mode_include_dir;
934e10c @rlerdorf Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
rlerdorf authored
63 zend_bool safe_mode_gid;
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
64 zend_bool sql_safe_mode;
65 zend_bool enable_dl;
0f7f5c2 @zsuraski - Import Jade Nicoletti's transparent gzip encoding support as an output
zsuraski authored
66
67 char *output_handler;
68
06cdf29 - Adding a callback mechanism to the unserializer. (patch by Bernd
Derick Rethans authored
69 char *unserialize_callback_func;
70
8fb954a @zsuraski Fix startup sequence. It should do it this time.
zsuraski authored
71 char *safe_mode_exec_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
72
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
73 long memory_limit;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored
74
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
75 zend_bool track_errors;
76 zend_bool display_errors;
b7ecaac @zsuraski More security-related (control) patches:
zsuraski authored
77 zend_bool display_startup_errors;
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
78 zend_bool log_errors;
bd9cf79 new ini setting log_errors_max_len
Marcus Boerger authored
79 int log_errors_max_len;
ddc6437 new feature ignoring repeated error messages (defaults to old behaviour)
Marcus Boerger authored
80 zend_bool ignore_repeated_errors;
81 zend_bool ignore_repeated_source;
d812929 - Implement Andrei's request for disabling memory leak reporting in d…
Derick Rethans authored
82 zend_bool report_memleaks;
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
83 char *error_log;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
84
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
85 char *doc_root;
86 char *user_dir;
87 char *include_path;
88 char *open_basedir;
89 char *extension_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
90
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
91 char *upload_tmp_dir;
92 long upload_max_filesize;
35b30a8 Add reentrant versions of ctime, localtime, gmtime, asctime.
Sascha Schumann authored
93
6727342 @rlerdorf Make error_prepend_string and error_append_string work
rlerdorf authored
94 char *error_append_string;
95 char *error_prepend_string;
96
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
97 char *auto_prepend_file;
98 char *auto_append_file;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
99
c34d2b9 Added new configuration directives:
foobar authored
100 arg_separators arg_separator;
101
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
102 char *gpc_order;
9ab35ae @zsuraski Tried to centralize global variable registration as much as possible:
zsuraski authored
103 char *variables_order;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
104
ed453cc @zsuraski Fix the file upload security problem with no side effects (untested)
zsuraski authored
105 HashTable rfc1867_protected_variables;
106
0bede91 @rlerdorf First part of the connection_status work. No user-callable functions
rlerdorf authored
107 short connection_status;
108 short ignore_user_abort;
109
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
110 unsigned char header_is_being_sent;
d23e5d8 @- Implemented default_charset and default_mimetype config directives…
Stig Bakken authored
111
112 zend_llist tick_functions;
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored
113
eb32144 @zsuraski - Remove track_vars - it is now always on
zsuraski authored
114 zval *http_globals[6];
8fb954a @zsuraski Fix startup sequence. It should do it this time.
zsuraski authored
115
116 zend_bool expose_php;
117
118 zend_bool register_globals;
119 zend_bool register_argc_argv;
120
121 zend_bool y2k_compliance;
122
88c385e rename php_error_func<n> to php_error_docref and support Wez idea
Marcus Boerger authored
123 char *docref_root;
124 char *docref_ext;
125
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting o…
Stig Bakken authored
126 zend_bool html_errors;
a2ce3c7 Allow errors to be returned as XMLRPC fault packets.
Sascha Schumann authored
127 zend_bool xmlrpc_errors;
128
3dd33fd Fix xmlrpc_error:number handling
Sascha Schumann authored
129 long xmlrpc_error_number;
a2ce3c7 Allow errors to be returned as XMLRPC fault packets.
Sascha Schumann authored
130
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting o…
Stig Bakken authored
131
b7ecaac @zsuraski More security-related (control) patches:
zsuraski authored
132 zend_bool modules_activated;
133
134 zend_bool file_uploads;
135
136 zend_bool during_request_startup;
cae2717 fopen wrappers cleanup
Hartmut Holzgraefe authored
137
138 zend_bool allow_url_fopen;
9bc97ac @rlerdorf Add always_populate_raw_post_data ini directive and default it to 0 to
rlerdorf authored
139
140 zend_bool always_populate_raw_post_data;
c9d5e13 @wez TSRMLS related work on streams, as discussed with Zeev.
wez authored
141
011813c @zsuraski *** empty log message ***
zsuraski authored
142 };
143
144
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
145 #endif /* PHP_GLOBALS_H */
336392e * now using php4.ini instead of php3.ini
Stig Bakken authored
146
147 /*
148 * Local variables:
149 * tab-width: 4
150 * c-basic-offset: 4
151 * End:
152 */
Something went wrong with that request. Please try again.