Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 130 lines (99 sloc) 3.212 kB
c5724cb @zsuraski License update
zsuraski authored
1 /*
2 +----------------------------------------------------------------------+
3 | PHP version 4.0 |
4 +----------------------------------------------------------------------+
43ae2bf Happy Y2K patch! Happy new year (or the new millennium, depending on …
Sascha Schumann authored
5 | Copyright (c) 1997, 1998, 1999, 2000 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 +----------------------------------------------------------------------+
15 | Authors: Zeev Suraski <zeev@zend.com> |
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
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
34 extern PHPAPI int core_globals_id;
011813c @zsuraski *** empty log message ***
zsuraski authored
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
42 extern ZEND_API struct _php_core_globals core_globals;
011813c @zsuraski *** empty log message ***
zsuraski authored
43 #endif
44
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored
45 typedef struct _php_http_globals {
46 zval *post;
47 zval *get;
48 zval *cookie;
49 zval *server;
50 zval *environment;
e5c8aeb @zsuraski - Protect $HTTP_POST_FILES[] as well
zsuraski authored
51 zval *post_files;
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored
52 } php_http_globals;
53
d23e5d8 @- Implemented default_charset and default_mimetype config directives…
Stig Bakken authored
54 struct _php_tick_function_entry;
011813c @zsuraski *** empty log message ***
zsuraski authored
55
56 struct _php_core_globals {
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
57 zend_bool magic_quotes_gpc;
58 zend_bool magic_quotes_runtime;
59 zend_bool magic_quotes_sybase;
7685b44 @zsuraski Move asp_tags and short_open_tag to the new php_ini mechanism
zsuraski authored
60
d800068 @zsuraski - Implement ability to turn off support for call-time pass by reference
zsuraski authored
61 zend_bool allow_call_time_pass_reference;
62 zend_bool zend_set_utility_values;
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
63 zend_bool output_buffering;
24156db @zsuraski @- Added implicit_flush INI directive (Zeev)
zsuraski authored
64 zend_bool implicit_flush;
79f9f0c @zsuraski Move safe_mode to the new php_ini mechanism
zsuraski authored
65
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
66 zend_bool safe_mode;
67 zend_bool sql_safe_mode;
68 zend_bool enable_dl;
8fb954a @zsuraski Fix startup sequence. It should do it this time.
zsuraski authored
69 char *safe_mode_exec_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
70
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
71 long memory_limit;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored
72
54ec3a8 @rlerdorf Cleanups
rlerdorf authored
73 zend_bool track_errors;
74 zend_bool display_errors;
75 zend_bool log_errors;
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
76 char *error_log;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
77
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
78 char *doc_root;
79 char *user_dir;
80 char *include_path;
81 char *open_basedir;
82 char *extension_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
83
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
84 char *upload_tmp_dir;
85 long upload_max_filesize;
35b30a8 Add reentrant versions of ctime, localtime, gmtime, asctime.
Sascha Schumann authored
86
6727342 @rlerdorf Make error_prepend_string and error_append_string work
rlerdorf authored
87 char *error_append_string;
88 char *error_prepend_string;
89
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
90 char *auto_prepend_file;
91 char *auto_append_file;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
92
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
93 char *arg_separator;
94 char *gpc_order;
9ab35ae @zsuraski Tried to centralize global variable registration as much as possible:
zsuraski authored
95 char *variables_order;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
96
ed453cc @zsuraski Fix the file upload security problem with no side effects (untested)
zsuraski authored
97 HashTable rfc1867_protected_variables;
98
0bede91 @rlerdorf First part of the connection_status work. No user-callable functions
rlerdorf authored
99 short connection_status;
100 short ignore_user_abort;
101
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
102 unsigned char header_is_being_sent;
d23e5d8 @- Implemented default_charset and default_mimetype config directives…
Stig Bakken authored
103
104 zend_llist tick_functions;
0e90b9d @zsuraski @- The various $HTTP_*_VARS[] are now protected, and cannot be manipu…
zsuraski authored
105
106 php_http_globals http_globals;
8fb954a @zsuraski Fix startup sequence. It should do it this time.
zsuraski authored
107
108 zend_bool expose_php;
109
110 zend_bool track_vars;
111 zend_bool register_globals;
112 zend_bool register_argc_argv;
113
114 zend_bool y2k_compliance;
115
23ca7b9 Added "html_errors" directive to optionally disable HTML formatting o…
Stig Bakken authored
116 zend_bool html_errors;
117
ed453cc @zsuraski Fix the file upload security problem with no side effects (untested)
zsuraski authored
118 zend_bool modules_activated;
011813c @zsuraski *** empty log message ***
zsuraski authored
119 };
120
121
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
122 #endif /* PHP_GLOBALS_H */
336392e * now using php4.ini instead of php3.ini
Stig Bakken authored
123
124 /*
125 * Local variables:
126 * tab-width: 4
127 * c-basic-offset: 4
128 * End:
129 */
Something went wrong with that request. Please try again.