XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
987 B

  1. #include "util/xc_stack.h"
  2. ZEND_BEGIN_MODULE_GLOBALS(xcache)
  3. zend_bool initial_compile_file_called; /* true is origin_compile_file is called */
  4. zend_bool cacher; /* true if enabled */
  5. zend_bool stat;
  6. zend_bool experimental;
  7. #ifdef HAVE_XCACHE_OPTIMIZER
  8. zend_bool optimizer; /* true if enabled */
  9. #endif
  10. #ifdef HAVE_XCACHE_COVERAGER
  11. zend_bool coverager;
  12. zend_bool coverage_enabled;
  13. HashTable *coverages; /* coverages[file][line] = times */
  14. #endif
  15. xc_stack_t *php_holds;
  16. xc_stack_t *var_holds;
  17. time_t request_time;
  18. long var_ttl;
  19. zend_bool auth_enabled;
  20. zend_llist gc_op_arrays;
  21. #ifdef HAVE_XCACHE_CONSTANT
  22. HashTable internal_constant_table;
  23. #endif
  24. HashTable internal_function_table;
  25. HashTable internal_class_table;
  26. zend_bool internal_table_copied;
  27. void *sandbox;
  28. ZEND_END_MODULE_GLOBALS(xcache)
  29. ZEND_EXTERN_MODULE_GLOBALS(xcache)
  30. #ifdef ZTS
  31. # define XG(v) TSRMG(xcache_globals_id, zend_xcache_globals *, v)
  32. #else
  33. # define XG(v) (xcache_globals.v)
  34. #endif