summaryrefslogtreecommitdiff
path: root/main/php_globals.h
blob: 9dc472cd701a5eb12406b3e7a9bad0cb7cd4f835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _PHP_GLOBALS_H
#define _PHP_GLOBALS_H

typedef struct _php_core_globals php_core_globals;

#ifdef ZTS
# define PLS_D	php_core_globals *core_globals
# define PLS_DC	, PLS_D
# define PLS_C	core_globals
# define PLS_CC , PLS_C
# define PG(v) (core_globals->v)
# define PLS_FETCH()	php_core_globals *core_globals = ts_resource(core_globals_id)
#else
# define PLS_D
# define PLS_DC
# define PLS_C
# define PLS_CC
# define PG(v) (core_globals.v)
# define PLS_FETCH()
extern ZEND_API php_core_globals core_globals;
#endif


struct _php_core_globals {
    long magic_quotes_gpc;
    long magic_quotes_runtime;
    long magic_quotes_sybase;
};


#endif /* _PHP_GLOBALS_H */