forked from davidcole1340/ext-php-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allowed_bindings.rs
222 lines (221 loc) · 5.97 KB
/
allowed_bindings.rs
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// This is a cheeky hack - since we need the list of allowed bindings in both
// the build script and in the CLI crate (in different formats), we define the
// `allowed_bindings.rs` file, which calls a macro called `bind` that doesn't
// exist in the bindings file. Which ever script include!s the bindings must
// define the `bind` macro. This allows us to have the list in string format
// inside the build script and in macro format inside the CLI crate.
//
// NOTE TO EDITORS:
// When updating this file, you must re-generate the `docsrs_bindings.rs`
// file used by docs.rs to build documentation. To perform this:
//
// $ cargo clean
// $ cargo build
// $ cp target/debug/build/ext-php-rs-e2cb315d27898d01/out/bindings.rs
// docsrs_bindings.rs
// $ git add . && git commit -m "update docs.rs bindings"
//
// The hash after `ext-php-rs-` in the bindings path may change. There should
// be two folders beginning with `ext-php-rs-` in `target/debug/build`, so
// check both for the presense of the bindings file.
bind! {
HashTable,
_Bucket,
_call_user_function_impl,
_efree,
_emalloc,
_zend_executor_globals,
_zend_expected_type,
_zend_expected_type_Z_EXPECTED_ARRAY,
_zend_expected_type_Z_EXPECTED_BOOL,
_zend_expected_type_Z_EXPECTED_DOUBLE,
_zend_expected_type_Z_EXPECTED_LONG,
_zend_expected_type_Z_EXPECTED_OBJECT,
_zend_expected_type_Z_EXPECTED_RESOURCE,
_zend_expected_type_Z_EXPECTED_STRING,
_zend_new_array,
_zval_struct__bindgen_ty_1,
_zval_struct__bindgen_ty_2,
// ext_php_rs_executor_globals,
// ext_php_rs_php_build_id,
// ext_php_rs_zend_object_alloc,
// ext_php_rs_zend_object_release,
// ext_php_rs_zend_string_init,
// ext_php_rs_zend_string_release,
object_properties_init,
php_info_print_table_end,
php_info_print_table_header,
php_info_print_table_row,
php_info_print_table_start,
std_object_handlers,
zend_array_destroy,
zend_array_dup,
zend_call_known_function,
zend_ce_argument_count_error,
zend_ce_arithmetic_error,
zend_ce_compile_error,
zend_ce_division_by_zero_error,
zend_ce_error_exception,
zend_ce_exception,
zend_ce_parse_error,
zend_ce_throwable,
zend_ce_type_error,
zend_ce_unhandled_match_error,
zend_ce_value_error,
zend_ce_traversable,
zend_ce_aggregate,
zend_ce_iterator,
zend_ce_arrayaccess,
zend_ce_serializable,
zend_ce_countable,
zend_ce_stringable,
zend_class_entry,
zend_declare_class_constant,
zend_declare_property,
zend_do_implement_interface,
zend_execute_data,
zend_function_entry,
zend_hash_clean,
zend_hash_index_del,
zend_hash_index_find,
zend_hash_index_update,
zend_hash_next_index_insert,
zend_hash_str_del,
zend_hash_str_find,
zend_hash_str_update,
zend_internal_arg_info,
zend_is_callable,
zend_long,
zend_lookup_class_ex,
zend_module_entry,
zend_object,
zend_object_handlers,
zend_object_std_init,
zend_objects_clone_members,
zend_register_bool_constant,
zend_register_double_constant,
zend_register_internal_class_ex,
zend_register_long_constant,
zend_register_string_constant,
zend_resource,
zend_string,
zend_string_init_interned,
zend_throw_exception_ex,
zend_type,
zend_value,
zend_wrong_parameters_count_error,
zval,
CONST_CS,
CONST_DEPRECATED,
CONST_NO_FILE_CACHE,
CONST_PERSISTENT,
HT_MIN_SIZE,
IS_ARRAY,
IS_ARRAY_EX,
IS_CALLABLE,
IS_CONSTANT_AST,
IS_CONSTANT_AST_EX,
IS_DOUBLE,
IS_FALSE,
IS_INTERNED_STRING_EX,
IS_LONG,
IS_MIXED,
IS_NULL,
IS_OBJECT,
IS_OBJECT_EX,
IS_REFERENCE,
IS_REFERENCE_EX,
IS_RESOURCE,
IS_RESOURCE_EX,
IS_STRING,
IS_STRING_EX,
IS_TRUE,
IS_TYPE_COLLECTABLE,
IS_TYPE_REFCOUNTED,
IS_UNDEF,
IS_VOID,
IS_PTR,
MAY_BE_ANY,
MAY_BE_BOOL,
USING_ZTS,
ZEND_ACC_ABSTRACT,
ZEND_ACC_ANON_CLASS,
ZEND_ACC_CALL_VIA_TRAMPOLINE,
ZEND_ACC_CHANGED,
ZEND_ACC_CLOSURE,
ZEND_ACC_CONSTANTS_UPDATED,
ZEND_ACC_CTOR,
ZEND_ACC_DEPRECATED,
ZEND_ACC_DONE_PASS_TWO,
ZEND_ACC_EARLY_BINDING,
ZEND_ACC_FAKE_CLOSURE,
ZEND_ACC_FINAL,
ZEND_ACC_GENERATOR,
ZEND_ACC_HAS_FINALLY_BLOCK,
ZEND_ACC_HAS_RETURN_TYPE,
ZEND_ACC_HAS_TYPE_HINTS,
ZEND_ACC_HAS_UNLINKED_USES,
ZEND_ACC_HEAP_RT_CACHE,
ZEND_ACC_IMMUTABLE,
ZEND_ACC_IMPLICIT_ABSTRACT_CLASS,
ZEND_ACC_INTERFACE,
ZEND_ACC_LINKED,
ZEND_ACC_NEARLY_LINKED,
ZEND_ACC_NEVER_CACHE,
ZEND_ACC_NO_DYNAMIC_PROPERTIES,
ZEND_ACC_PRELOADED,
ZEND_ACC_PRIVATE,
ZEND_ACC_PROMOTED,
ZEND_ACC_PROPERTY_TYPES_RESOLVED,
ZEND_ACC_PROTECTED,
ZEND_ACC_PUBLIC,
ZEND_ACC_RESOLVED_INTERFACES,
ZEND_ACC_RESOLVED_PARENT,
ZEND_ACC_RETURN_REFERENCE,
ZEND_ACC_REUSE_GET_ITERATOR,
ZEND_ACC_STATIC,
ZEND_ACC_STRICT_TYPES,
ZEND_ACC_TOP_LEVEL,
ZEND_ACC_TRAIT,
ZEND_ACC_TRAIT_CLONE,
ZEND_ACC_UNRESOLVED_VARIANCE,
ZEND_ACC_USES_THIS,
ZEND_ACC_USE_GUARDS,
ZEND_ACC_VARIADIC,
ZEND_DEBUG,
ZEND_HAS_STATIC_IN_METHODS,
ZEND_ISEMPTY,
// ZEND_MM_ALIGNMENT,
// ZEND_MM_ALIGNMENT_MASK,
ZEND_MODULE_API_NO,
ZEND_PROPERTY_EXISTS,
ZEND_PROPERTY_ISSET,
Z_TYPE_FLAGS_SHIFT,
_IS_BOOL,
_ZEND_IS_VARIADIC_BIT,
_ZEND_SEND_MODE_SHIFT,
_ZEND_TYPE_NULLABLE_BIT,
ts_rsrc_id,
_ZEND_TYPE_NAME_BIT,
zval_ptr_dtor,
zend_refcounted_h,
zend_is_true,
zend_object_std_dtor,
zend_std_read_property,
zend_std_write_property,
zend_std_get_properties,
zend_std_has_property,
zend_objects_new,
zend_standard_class_def,
zend_class_serialize_deny,
zend_class_unserialize_deny,
zend_executor_globals,
zend_objects_store_del,
gc_possible_root,
ZEND_ACC_NOT_SERIALIZABLE,
executor_globals,
php_printf,
__zend_malloc,
tsrm_get_ls_cache,
executor_globals_offset
}