-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphp_selix.h
More file actions
81 lines (67 loc) · 1.7 KB
/
php_selix.h
File metadata and controls
81 lines (67 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef PHP_SELIX_H
#define PHP_SELIX_H
#define SELIX_NAME "selix"
#define SELIX_VERSION "0.1"
#define SELIX_AUTHOR "Ettore Del Negro"
#define SELIX_URL "https://github.com/ettoredn/selix"
#define SELIX_COPYRIGHT "Copyright (c) 2011-2012"
#define SCP_COUNT 4
#define SCP_DOMAIN_IDX 0
#define SCP_RANGE_IDX 1
#define SCP_CDOMAIN_IDX 2
#define SCP_CRANGE_IDX 3
extern zend_module_entry selix_module_entry;
#define phpext_selix_ptr &selix_module_entry
#ifdef PHP_WIN32
# define PHP_SELIX_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_SELIX_API __attribute__ ((visibility("default")))
#else
# define PHP_SELIX_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
typedef struct _zend_compile_args {
zend_file_handle *file_handle;
int type;
#ifdef ZTS
TSRMLS_D;
#endif
} zend_compile_args;
typedef struct _zend_compile_retval {
zend_op_array *op_array;
int bailout;
} zend_compile_retval;
typedef struct _zend_execute_args {
zend_op_array *op_array;
sigset_t *sigmask;
#ifdef ZTS
TSRMLS_D;
#endif
} zend_execute_args;
typedef struct _zend_execute_retval {
int bailout;
} zend_execute_retval;
PHP_MINIT_FUNCTION(selix);
PHP_MSHUTDOWN_FUNCTION(selix);
PHP_RINIT_FUNCTION(selix);
PHP_RSHUTDOWN_FUNCTION(selix);
PHP_MINFO_FUNCTION(selix);
ZEND_BEGIN_MODULE_GLOBALS(selix)
char *separams_names[SCP_COUNT];
char *separams_values[SCP_COUNT];
zend_bool force_context_change;
zend_bool verbose;
char *domain_env;
char *range_env;
char *compile_domain_env;
char *compile_range_env;
ZEND_END_MODULE_GLOBALS(selix)
#ifdef ZTS
#define SELIX_G(v) TSRMG(selix_globals_id, zend_selix_globals *, v)
#else
#define SELIX_G(v) (selix_globals.v)
#endif
#endif
ZEND_DECLARE_MODULE_GLOBALS(selix)