summaryrefslogtreecommitdiff
path: root/xcache_globals.h
blob: 2363600509aece46ba5f1d0566d090d2965c81fa (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include "util/xc_vector.h"

ZEND_BEGIN_MODULE_GLOBALS(xcache)
	zend_bool initial_compile_file_called; /* true if origin_compile_file is called */
	zend_bool cacher;      /* true if enabled */
	zend_bool stat;
	zend_bool experimental;
#ifdef HAVE_XCACHE_OPTIMIZER
	zend_bool optimizer;   /* true if enabled */
#endif
#ifdef HAVE_XCACHE_COVERAGER
	zend_bool coverager;
	zend_bool coverager_autostart;
	zend_bool coverager_started;
	HashTable *coverages;  /* coverages[file][line] = times */
#endif
#ifndef ZEND_WIN32
	pid_t holds_pid;
#endif
	xc_vector_t *php_holds;
	zend_uint php_holds_size;
	xc_vector_t *var_holds;
	zend_uint var_holds_size;
	time_t request_time;
	long   var_ttl;
#ifdef IS_UNCODE
	zval uvar_namespace_hard;
	zval uvar_namespace_soft;
#endif
	zval var_namespace_hard;
	zval var_namespace_soft;

	zend_llist gc_op_arrays;
#ifdef ZEND_ACC_ALIAS
	zend_llist gc_class_entries;
#endif

#ifdef HAVE_XCACHE_CONSTANT
	HashTable internal_constant_table;
#endif
	HashTable internal_function_table;
	HashTable internal_class_table;
	zend_bool internal_table_copied;

	void *sandbox;
	zend_uint op_array_dummy_refcount_holder;
ZEND_END_MODULE_GLOBALS(xcache)

ZEND_EXTERN_MODULE_GLOBALS(xcache)

#ifdef ZTS
# define XG(v) TSRMG(xcache_globals_id, zend_xcache_globals *, v)
#else
# define XG(v) (xcache_globals.v)
#endif