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.
 
 
 
 
 
 

44 lines
884 B

  1. #include "php.h"
  2. #define OPSPECS(OPSPEC) \
  3. OPSPEC(STD) \
  4. OPSPEC(UNUSED) \
  5. OPSPEC(OPLINE) \
  6. OPSPEC(FCALL) \
  7. OPSPEC(INIT_FCALL) \
  8. OPSPEC(ARG) \
  9. OPSPEC(CAST) \
  10. OPSPEC(FETCH) \
  11. OPSPEC(DECLARE) \
  12. OPSPEC(SEND) \
  13. OPSPEC(SEND_NOREF) \
  14. OPSPEC(FCLASS) \
  15. OPSPEC(UCLASS) \
  16. OPSPEC(CLASS) \
  17. OPSPEC(FE) \
  18. OPSPEC(IFACE) \
  19. OPSPEC(ISSET) \
  20. OPSPEC(BIT) \
  21. OPSPEC(VAR) \
  22. OPSPEC(TMP) \
  23. OPSPEC(JMPADDR) \
  24. OPSPEC(BRK) \
  25. OPSPEC(CONT) \
  26. OPSPEC(INCLUDE) \
  27. OPSPEC(ASSIGN)
  28. #define OPSPECS_DEF_ENUM(name) OPSPEC_##name,
  29. typedef enum { OPSPECS(OPSPECS_DEF_ENUM) OPSPEC_DUMMY } xc_op_spec_t;
  30. typedef struct {
  31. xc_op_spec_t ext;
  32. xc_op_spec_t op1;
  33. xc_op_spec_t op2;
  34. xc_op_spec_t res;
  35. } xc_opcode_spec_t;
  36. const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode);
  37. zend_uchar xc_get_opcode_spec_count();
  38. zend_uchar xc_get_op_spec_count();
  39. const char *xc_get_op_spec(zend_uchar spec);