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.
 
 
 
 
 
 

29 lines
1.0 KiB

  1. #ifndef XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C
  2. #define XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif /* _MSC_VER > 1000 */
  6. /* Purpose: run specified function in compiler sandbox, restore everything to previous state after it returns
  7. */
  8. #include "xc_compatibility.h"
  9. int xc_sandbox_module_init(int module_number TSRMLS_DC);
  10. void xc_sandbox_module_shutdown();
  11. /* return op_array to install */
  12. typedef zend_op_array *(*xc_sandboxed_func_t)(void *data TSRMLS_DC);
  13. zend_op_array *xc_sandbox(xc_sandboxed_func_t sandboxed_func, void *data, ZEND_24(NOTHING, const) char *filename TSRMLS_DC);
  14. const Bucket *xc_sandbox_user_function_begin(TSRMLS_D);
  15. const Bucket *xc_sandbox_user_class_begin(TSRMLS_D);
  16. zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D);
  17. #ifdef XCACHE_ERROR_CACHING
  18. struct _xc_compilererror_t;
  19. struct _xc_compilererror_t *xc_sandbox_compilererrors(TSRMLS_D);
  20. zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D);
  21. #endif
  22. #endif /* XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C */