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.

51 lines
1.2 KiB

  1. #include "util/xc_stack.h"
  2. ZEND_BEGIN_MODULE_GLOBALS(xcache)
  3. zend_bool initial_compile_file_called; /* true if 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 coverager_autostart;
  13. zend_bool coverager_started;
  14. HashTable *coverages; /* coverages[file][line] = times */
  15. #endif
  16. xc_stack_t *php_holds;
  17. zend_uint php_holds_size;
  18. xc_stack_t *var_holds;
  19. zend_uint var_holds_size;
  20. time_t request_time;
  21. long var_ttl;
  22. #ifdef IS_UNCODE
  23. zval uvar_namespace_hard;
  24. zval uvar_namespace_soft;
  25. #endif
  26. zval var_namespace_hard;
  27. zval var_namespace_soft;
  28. zend_llist gc_op_arrays;
  29. #ifdef ZEND_ACC_ALIAS
  30. zend_llist gc_class_entries;
  31. #endif
  32. #ifdef HAVE_XCACHE_CONSTANT
  33. HashTable internal_constant_table;
  34. #endif
  35. HashTable internal_function_table;
  36. HashTable internal_class_table;
  37. zend_bool internal_table_copied;
  38. void *sandbox;
  39. ZEND_END_MODULE_GLOBALS(xcache)
  40. ZEND_EXTERN_MODULE_GLOBALS(xcache)
  41. #ifdef ZTS
  42. # define XG(v) TSRMG(xcache_globals_id, zend_xcache_globals *, v)
  43. #else
  44. # define XG(v) (xcache_globals.v)
  45. #endif