source: trunk/xcache_globals.h

Last change on this file was 1381, checked in by moo, 13 months ago

possible fix for #324

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1#include "util/xc_stack.h"
2
3ZEND_BEGIN_MODULE_GLOBALS(xcache)
4    zend_bool initial_compile_file_called; /* true if origin_compile_file is called */
5    zend_bool cacher;      /* true if enabled */
6    zend_bool stat;
7    zend_bool experimental;
8#ifdef HAVE_XCACHE_OPTIMIZER
9    zend_bool optimizer;   /* true if enabled */
10#endif
11#ifdef HAVE_XCACHE_COVERAGER
12    zend_bool coverager;
13    zend_bool coverager_autostart;
14    zend_bool coverager_started;
15    HashTable *coverages;  /* coverages[file][line] = times */
16#endif
17#ifndef ZEND_WIN32
18    pid_t holds_pid;
19#endif
20    xc_stack_t *php_holds;
21    zend_uint php_holds_size;
22    xc_stack_t *var_holds;
23    zend_uint var_holds_size;
24    time_t request_time;
25    long   var_ttl;
26#ifdef IS_UNCODE
27    zval uvar_namespace_hard;
28    zval uvar_namespace_soft;
29#endif
30    zval var_namespace_hard;
31    zval var_namespace_soft;
32
33    zend_llist gc_op_arrays;
34#ifdef ZEND_ACC_ALIAS
35    zend_llist gc_class_entries;
36#endif
37
38#ifdef HAVE_XCACHE_CONSTANT
39    HashTable internal_constant_table;
40#endif
41    HashTable internal_function_table;
42    HashTable internal_class_table;
43    zend_bool internal_table_copied;
44
45    void *sandbox;
46    zend_uint op_array_dummy_refcount_holder;
47ZEND_END_MODULE_GLOBALS(xcache)
48
49ZEND_EXTERN_MODULE_GLOBALS(xcache)
50
51#ifdef ZTS
52# define XG(v) TSRMG(xcache_globals_id, zend_xcache_globals *, v)
53#else
54# define XG(v) (xcache_globals.v)
55#endif
Note: See TracBrowser for help on using the repository browser.