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.
 
 
 
 
 
 

56 lines
1.3 KiB

  1. #include "util/xc_vector.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. #ifndef ZEND_WIN32
  17. pid_t holds_pid;
  18. #endif
  19. xc_vector_t *php_holds;
  20. zend_uint php_holds_size;
  21. xc_vector_t *var_holds;
  22. zend_uint var_holds_size;
  23. time_t request_time;
  24. long var_ttl;
  25. #ifdef IS_UNCODE
  26. zval uvar_namespace_hard;
  27. zval uvar_namespace_soft;
  28. #endif
  29. zval var_namespace_hard;
  30. zval var_namespace_soft;
  31. zend_llist gc_op_arrays;
  32. #ifdef ZEND_ACC_ALIAS
  33. zend_llist gc_class_entries;
  34. #endif
  35. #ifdef HAVE_XCACHE_CONSTANT
  36. HashTable internal_constant_table;
  37. #endif
  38. HashTable internal_function_table;
  39. HashTable internal_class_table;
  40. zend_bool internal_table_copied;
  41. void *sandbox;
  42. zend_uint op_array_dummy_refcount_holder;
  43. ZEND_END_MODULE_GLOBALS(xcache)
  44. ZEND_EXTERN_MODULE_GLOBALS(xcache)
  45. #ifdef ZTS
  46. # define XG(v) TSRMG(xcache_globals_id, zend_xcache_globals *, v)
  47. #else
  48. # define XG(v) (xcache_globals.v)
  49. #endif