Skip to content
Newer
Older
100644 152 lines (110 sloc) 3.51 KB
c5724cb @zsuraski License update
zsuraski authored Jul 16, 1999
1 /*
2 +----------------------------------------------------------------------+
3 | PHP version 4.0 |
4 +----------------------------------------------------------------------+
eb6ba01 @andigutmans - Fix copyright notices with 2001
andigutmans authored Feb 26, 2001
5 | Copyright (c) 1997-2001 The PHP Group |
c5724cb @zsuraski License update
zsuraski authored Jul 16, 1999
6 +----------------------------------------------------------------------+
e043439 @zsuraski Update the license with the new clause 6
zsuraski authored May 18, 2000
7 | This source file is subject to version 2.02 of the PHP license, |
c5724cb @zsuraski License update
zsuraski authored Jul 16, 1999
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 May 18, 2000
10 | http://www.php.net/license/2_02.txt. |
c5724cb @zsuraski License update
zsuraski authored Jul 16, 1999
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 +----------------------------------------------------------------------+
15 | Authors: Zeev Suraski <zeev@zend.com> |
16 +----------------------------------------------------------------------+
17 */
18
19
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored Jul 2, 2000
20 #ifndef PHP_GLOBALS_H
21 #define PHP_GLOBALS_H
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
22
c5af324 @zsuraski More thread safety work
zsuraski authored Apr 21, 1999
23 #include "zend_globals.h"
24
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
25 typedef struct _php_core_globals php_core_globals;
26
27 #ifdef ZTS
28 # define PLS_D php_core_globals *core_globals
29 # define PLS_DC , PLS_D
30 # define PLS_C core_globals
31 # define PLS_CC , PLS_C
32 # define PG(v) (core_globals->v)
33 # define PLS_FETCH() php_core_globals *core_globals = ts_resource(core_globals_id)
3cad348 @zsuraski * Add a new workspace for dynamic PHP extensions.
zsuraski authored Jun 4, 1999
34 extern PHPAPI int core_globals_id;
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
35 #else
36 # define PLS_D
37 # define PLS_DC
38 # define PLS_C
39 # define PLS_CC
40 # define PG(v) (core_globals.v)
41 # define PLS_FETCH()
5a2189f work around gcc bug, otherwise compiler would die with
Sascha Schumann authored Sep 5, 1999
42 extern ZEND_API struct _php_core_globals core_globals;
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
43 #endif
44
eb32144 @zsuraski - Remove track_vars - it is now always on
zsuraski authored Sep 5, 2000
45
bfa301d @zsuraski Fix ordering
zsuraski authored Sep 6, 2000
46 #define TRACK_VARS_POST 0
47 #define TRACK_VARS_GET 1
48 #define TRACK_VARS_COOKIE 2
49 #define TRACK_VARS_SERVER 3
50 #define TRACK_VARS_ENV 4
51 #define TRACK_VARS_FILES 5
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored Feb 26, 2000
52
d23e5d8 @- Implemented default_charset and default_mimetype config directives…
Stig Bakken authored Feb 25, 2000
53 struct _php_tick_function_entry;
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
54
c34d2b9 Added new configuration directives:
foobar authored Apr 4, 2001
55 typedef struct _arg_separators {
56 char *output;
57 char *input;
58 } arg_separators;
59
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
60 struct _php_core_globals {
54ec3a8 @rlerdorf Cleanups
rlerdorf authored Sep 4, 1999
61 zend_bool magic_quotes_gpc;
62 zend_bool magic_quotes_runtime;
63 zend_bool magic_quotes_sybase;
7685b44 @zsuraski Move asp_tags and short_open_tag to the new php_ini mechanism
zsuraski authored Apr 10, 1999
64
d800068 @zsuraski - Implement ability to turn off support for call-time pass by reference
zsuraski authored Dec 15, 1999
65 zend_bool allow_call_time_pass_reference;
66 zend_bool zend_set_utility_values;
54ec3a8 @rlerdorf Cleanups
rlerdorf authored Sep 4, 1999
67 zend_bool output_buffering;
24156db @zsuraski @- Added implicit_flush INI directive (Zeev)
zsuraski authored Jan 13, 2000
68 zend_bool implicit_flush;
79f9f0c @zsuraski Move safe_mode to the new php_ini mechanism
zsuraski authored Apr 10, 1999
69
54ec3a8 @rlerdorf Cleanups
rlerdorf authored Sep 4, 1999
70 zend_bool safe_mode;
771e3e4 o Fixed Bug #12121: chdir and safe_mode
James E. Flemer authored Jul 13, 2001
71 char *safe_mode_include_dir;
934e10c @rlerdorf Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
rlerdorf authored Jul 9, 2001
72 zend_bool safe_mode_gid;
54ec3a8 @rlerdorf Cleanups
rlerdorf authored Sep 4, 1999
73 zend_bool sql_safe_mode;
74 zend_bool enable_dl;
0f7f5c2 @zsuraski - Import Jade Nicoletti's transparent gzip encoding support as an output
zsuraski authored Nov 13, 2000
75
76 char *output_handler;
77
8fb954a @zsuraski Fix startup sequence. It should do it this time.
zsuraski authored May 29, 2000
78 char *safe_mode_exec_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored Apr 10, 1999
79
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
80 long memory_limit;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored Apr 10, 1999
81
54ec3a8 @rlerdorf Cleanups
rlerdorf authored Sep 4, 1999
82 zend_bool track_errors;
83 zend_bool display_errors;
b7ecaac @zsuraski More security-related (control) patches:
zsuraski authored Sep 9, 2000
84 zend_bool display_startup_errors;
54ec3a8 @rlerdorf Cleanups
rlerdorf authored Sep 4, 1999
85 zend_bool log_errors;
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
86 char *error_log;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored Apr 10, 1999
87
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
88 char *doc_root;
89 char *user_dir;
90 char *include_path;
91 char *open_basedir;
92 char *extension_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored Apr 10, 1999
93
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
94 char *upload_tmp_dir;
95 long upload_max_filesize;
35b30a8 Add reentrant versions of ctime, localtime, gmtime, asctime.
Sascha Schumann authored Nov 26, 1999
96
6727342 @rlerdorf Make error_prepend_string and error_append_string work
rlerdorf authored Apr 14, 2000
97 char *error_append_string;
98 char *error_prepend_string;
99
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
100 char *auto_prepend_file;
101 char *auto_append_file;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored Apr 10, 1999
102
c34d2b9 Added new configuration directives:
foobar authored Apr 4, 2001
103 arg_separators arg_separator;
104
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
105 char *gpc_order;
9ab35ae @zsuraski Tried to centralize global variable registration as much as possible:
zsuraski authored Jan 28, 2000
106 char *variables_order;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored Apr 10, 1999
107
ed453cc @zsuraski Fix the file upload security problem with no side effects (untested)
zsuraski authored Sep 4, 2000
108 HashTable rfc1867_protected_variables;
109
0bede91 @rlerdorf First part of the connection_status work. No user-callable functions
rlerdorf authored Sep 4, 1999
110 short connection_status;
111 short ignore_user_abort;
112
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored Jun 15, 1999
113 unsigned char header_is_being_sent;
d23e5d8 @- Implemented default_charset and default_mimetype config directives…
Stig Bakken authored Feb 25, 2000
114
115 zend_llist tick_functions;
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored Feb 26, 2000
116
eb32144 @zsuraski - Remove track_vars - it is now always on
zsuraski authored Sep 5, 2000
117 zval *http_globals[6];
8fb954a @zsuraski Fix startup sequence. It should do it this time.
zsuraski authored May 29, 2000
118
119 zend_bool expose_php;
120
121 zend_bool register_globals;
122 zend_bool register_argc_argv;
123
124 zend_bool y2k_compliance;
125
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting o…
Stig Bakken authored Jul 4, 2000
126 zend_bool html_errors;
a2ce3c7 Allow errors to be returned as XMLRPC fault packets.
Sascha Schumann authored Jul 10, 2001
127 zend_bool xmlrpc_errors;
128
3dd33fd Fix xmlrpc_error:number handling
Sascha Schumann authored Jul 13, 2001
129 long xmlrpc_error_number;
a2ce3c7 Allow errors to be returned as XMLRPC fault packets.
Sascha Schumann authored Jul 10, 2001
130
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting o…
Stig Bakken authored Jul 4, 2000
131
b7ecaac @zsuraski More security-related (control) patches:
zsuraski authored Sep 9, 2000
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 Oct 13, 2000
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 Jul 17, 2001
139
140 zend_bool always_populate_raw_post_data;
011813c @zsuraski *** empty log message ***
zsuraski authored Apr 9, 1999
141 };
142
143
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored Jul 2, 2000
144 #endif /* PHP_GLOBALS_H */
336392e * now using php4.ini instead of php3.ini
Stig Bakken authored Jun 15, 1999
145
146 /*
147 * Local variables:
148 * tab-width: 4
149 * c-basic-offset: 4
150 * End:
151 */
Something went wrong with that request. Please try again.