Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 69 lines (52 sloc) 1.307 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)
c5af324 @zsuraski More thread safety work
zsuraski authored
15 extern 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 {
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
32 long asp_tags;
33 long short_tags;
79f9f0c @zsuraski Move safe_mode to the new php_ini mechanism
zsuraski authored
34
35 long safe_mode;
36 long sql_safe_mode;
37 char *safe_mode_exec_dir;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
38 long enable_dl;
39
40 long max_execution_time;
41 long memory_limit;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored
42
43 long track_errors;
44 long display_errors;
45 long log_errors;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
46 char *error_log;
47
48 char *doc_root;
49 char *user_dir;
50 char *include_path;
51 char *open_basedir;
52 char *extension_dir;
53
54 char *upload_tmp_dir;
55 long upload_max_filesize;
e3d2234 @zsuraski A lot of php3_ini -> php_ini work
zsuraski authored
56
57 char *auto_prepend_file;
58 char *auto_append_file;
bb6dff9 @zsuraski Buh-bye php3_ini
zsuraski authored
59
60 char *arg_separator;
61 char *gpc_order;
62
63 long track_vars;
64
65 long y2k_compliance;
011813c @zsuraski *** empty log message ***
zsuraski authored
66 };
67
68
69 #endif /* _PHP_GLOBALS_H */
Something went wrong with that request. Please try again.