Skip to content
Newer
Older
100644 78 lines (58 sloc) 1.31 KB
011813c @zsuraski *** empty log message ***
zsuraski authored
1 #ifndef _PHP_GLOBALS_H
2 #define _PHP_GLOBALS_H
3
c5af324 @zsuraski More thread safety work
zsuraski authored
4 #include "zend_globals.h"
5
011813c @zsuraski *** empty log message ***
zsuraski authored
6 typedef struct _php_core_globals php_core_globals;
7
8 #ifdef ZTS
9 # define PLS_D php_core_globals *core_globals
10 # define PLS_DC , PLS_D
11 # define PLS_C core_globals
12 # define PLS_CC , PLS_C
13 # define PG(v) (core_globals->v)
14 # 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
15 extern PHPAPI int core_globals_id;
011813c @zsuraski *** empty log message ***
zsuraski authored
16 #else
17 # define PLS_D
18 # define PLS_DC
19 # define PLS_C
20 # define PLS_CC
21 # define PG(v) (core_globals.v)
22 # define PLS_FETCH()
23 extern ZEND_API php_core_globals core_globals;
24 #endif
25
26
27 struct _php_core_globals {
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
28 long magic_quotes_gpc;
29 long magic_quotes_runtime;
30 long magic_quotes_sybase;
7685b44 @zsuraski Move asp_tags and short_open_tag to the new php_ini mechanism
zsuraski authored
31
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
32 long asp_tags;
33 long short_tags;
79f9f0c @zsuraski Move safe_mode to the new php_ini mechanism
zsuraski authored
34
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
35 long safe_mode;
36 long sql_safe_mode;
37 char *safe_mode_exec_dir;
38 long enable_dl;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
39
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
40 long memory_limit;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored
41
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
42 long track_errors;
43 long display_errors;
44 long log_errors;
45 char *error_log;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
46
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
47 char *doc_root;
48 char *user_dir;
49 char *include_path;
50 char *open_basedir;
51 char *extension_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
52
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
53 char *upload_tmp_dir;
54 long upload_max_filesize;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored
55
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
56 char *auto_prepend_file;
57 char *auto_append_file;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
58
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
59 char *arg_separator;
60 char *gpc_order;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
61
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
62 long track_vars;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
63
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
64 long y2k_compliance;
0994667 @zsuraski Thread-safe header_is_being_sent
zsuraski authored
65
f86fb81 @zsuraski Change four spaces back to tabs (Why the hell did you change the tabs…
zsuraski authored
66 unsigned char header_is_being_sent;
011813c @zsuraski *** empty log message ***
zsuraski authored
67 };
68
69
0994667 @zsuraski Thread-safe header_is_being_sent
zsuraski authored
70 #endif /* _PHP_GLOBALS_H */
336392e * now using php4.ini instead of php3.ini
Stig Bakken authored
71
72 /*
73 * Local variables:
74 * tab-width: 4
75 * c-basic-offset: 4
76 * End:
77 */
Something went wrong with that request. Please try again.