|
Last change
on this file since 1051 was
1051,
checked in by moo, 11 months ago
|
|
refactor: move more cache stuffs to mod_cacher
|
-
Property svn:eol-style set to
native
|
|
File size:
1.0 KB
|
| Rev | Line | |
|---|
| [989] | 1 | #ifndef XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C |
|---|
| 2 | #define XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C |
|---|
| [986] | 3 | |
|---|
| 4 | #if _MSC_VER > 1000 |
|---|
| 5 | #pragma once |
|---|
| [1044] | 6 | #endif /* _MSC_VER > 1000 */ |
|---|
| [986] | 7 | |
|---|
| [991] | 8 | /* Purpose: run specified function in compiler sandbox, restore everything to previous state after it returns |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| [1026] | 11 | #include "xc_compatibility.h" |
|---|
| [1018] | 12 | |
|---|
| [992] | 13 | int xc_sandbox_module_init(int module_number TSRMLS_DC); |
|---|
| 14 | void xc_sandbox_module_shutdown(); |
|---|
| 15 | |
|---|
| [986] | 16 | /* return op_array to install */ |
|---|
| 17 | typedef zend_op_array *(*xc_sandboxed_func_t)(void *data TSRMLS_DC); |
|---|
| 18 | zend_op_array *xc_sandbox(xc_sandboxed_func_t sandboxed_func, void *data, ZEND_24(NOTHING, const) char *filename TSRMLS_DC); |
|---|
| 19 | const Bucket *xc_sandbox_user_function_begin(TSRMLS_D); |
|---|
| 20 | const Bucket *xc_sandbox_user_class_begin(TSRMLS_D); |
|---|
| 21 | zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D); |
|---|
| 22 | #ifdef XCACHE_ERROR_CACHING |
|---|
| [1051] | 23 | struct _xc_compilererror_t; |
|---|
| 24 | struct _xc_compilererror_t *xc_sandbox_compilererrors(TSRMLS_D); |
|---|
| [986] | 25 | zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D); |
|---|
| 26 | #endif |
|---|
| 27 | |
|---|
| [989] | 28 | #endif /* XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.