php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
enchant_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: bcd5195c8a1eea47d881747a57f1b1342ef0bbd1 */
3
6
7ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_free, 0, 1, _IS_BOOL, 0)
10
11ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
12 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
14
15ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_set_dict_path, 0, 3, _IS_BOOL, 0)
16 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
18 ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
20
21ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_broker_get_dict_path, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
22 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
25
26ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_list_dicts, 0, 1, IS_ARRAY, 0)
27 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
29
30ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_request_dict, 0, 2, EnchantDictionary, MAY_BE_FALSE)
31 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
34
35ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_request_pwl_dict, 0, 2, EnchantDictionary, MAY_BE_FALSE)
36 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
37 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
39
40ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_free_dict, 0, 1, _IS_BOOL, 0)
41 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
43
44ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_dict_exists, 0, 2, _IS_BOOL, 0)
45 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
48
49ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_broker_set_ordering, 0, 3, _IS_BOOL, 0)
50 ZEND_ARG_OBJ_INFO(0, broker, EnchantBroker, 0)
52 ZEND_ARG_TYPE_INFO(0, ordering, IS_STRING, 0)
54
55#define arginfo_enchant_broker_describe arginfo_enchant_broker_list_dicts
56
57ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_quick_check, 0, 2, _IS_BOOL, 0)
58 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
59 ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
60 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, suggestions, "null")
62
63ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_check, 0, 2, _IS_BOOL, 0)
64 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
65 ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
67
68ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_suggest, 0, 2, IS_ARRAY, 0)
69 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
70 ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
72
73ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_add, 0, 2, IS_VOID, 0)
74 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
75 ZEND_ARG_TYPE_INFO(0, word, IS_STRING, 0)
77
78#define arginfo_enchant_dict_add_to_personal arginfo_enchant_dict_add
79
80#define arginfo_enchant_dict_add_to_session arginfo_enchant_dict_add
81
82#define arginfo_enchant_dict_is_added arginfo_enchant_dict_check
83
84#define arginfo_enchant_dict_is_in_session arginfo_enchant_dict_check
85
86ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_store_replacement, 0, 3, IS_VOID, 0)
87 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
88 ZEND_ARG_TYPE_INFO(0, misspelled, IS_STRING, 0)
89 ZEND_ARG_TYPE_INFO(0, correct, IS_STRING, 0)
91
92ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_enchant_dict_get_error, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
93 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
95
96ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enchant_dict_describe, 0, 1, IS_ARRAY, 0)
97 ZEND_ARG_OBJ_INFO(0, dictionary, EnchantDictionary, 0)
99
121
122static const zend_function_entry ext_functions[] = {
123 ZEND_FE(enchant_broker_init, arginfo_enchant_broker_init)
124 ZEND_RAW_FENTRY("enchant_broker_free", zif_enchant_broker_free, arginfo_enchant_broker_free, ZEND_ACC_DEPRECATED, NULL, NULL)
125 ZEND_FE(enchant_broker_get_error, arginfo_enchant_broker_get_error)
126 ZEND_RAW_FENTRY("enchant_broker_set_dict_path", zif_enchant_broker_set_dict_path, arginfo_enchant_broker_set_dict_path, ZEND_ACC_DEPRECATED, NULL, NULL)
127 ZEND_RAW_FENTRY("enchant_broker_get_dict_path", zif_enchant_broker_get_dict_path, arginfo_enchant_broker_get_dict_path, ZEND_ACC_DEPRECATED, NULL, NULL)
128 ZEND_FE(enchant_broker_list_dicts, arginfo_enchant_broker_list_dicts)
129 ZEND_FE(enchant_broker_request_dict, arginfo_enchant_broker_request_dict)
130 ZEND_FE(enchant_broker_request_pwl_dict, arginfo_enchant_broker_request_pwl_dict)
131 ZEND_RAW_FENTRY("enchant_broker_free_dict", zif_enchant_broker_free_dict, arginfo_enchant_broker_free_dict, ZEND_ACC_DEPRECATED, NULL, NULL)
132 ZEND_FE(enchant_broker_dict_exists, arginfo_enchant_broker_dict_exists)
133 ZEND_FE(enchant_broker_set_ordering, arginfo_enchant_broker_set_ordering)
135 ZEND_FE(enchant_dict_quick_check, arginfo_enchant_dict_quick_check)
136 ZEND_FE(enchant_dict_check, arginfo_enchant_dict_check)
137 ZEND_FE(enchant_dict_suggest, arginfo_enchant_dict_suggest)
138 ZEND_FE(enchant_dict_add, arginfo_enchant_dict_add)
139 ZEND_RAW_FENTRY("enchant_dict_add_to_personal", zif_enchant_dict_add, arginfo_enchant_dict_add_to_personal, ZEND_ACC_DEPRECATED, NULL, NULL)
142 ZEND_RAW_FENTRY("enchant_dict_is_in_session", zif_enchant_dict_is_added, arginfo_enchant_dict_is_in_session, ZEND_ACC_DEPRECATED, NULL, NULL)
143 ZEND_FE(enchant_dict_store_replacement, arginfo_enchant_dict_store_replacement)
144 ZEND_FE(enchant_dict_get_error, arginfo_enchant_dict_get_error)
145 ZEND_FE(enchant_dict_describe, arginfo_enchant_dict_describe)
147};
148
149static void register_enchant_symbols(int module_number)
150{
153#if defined(HAVE_ENCHANT_GET_VERSION)
154 REGISTER_STRING_CONSTANT("LIBENCHANT_VERSION", PHP_ENCHANT_GET_VERSION, CONST_PERSISTENT);
155#endif
156
157
158 zend_attribute *attribute_Deprecated_func_enchant_broker_free_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "enchant_broker_free", sizeof("enchant_broker_free") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
159 zval attribute_Deprecated_func_enchant_broker_free_0_arg0;
160 zend_string *attribute_Deprecated_func_enchant_broker_free_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
161 ZVAL_STR(&attribute_Deprecated_func_enchant_broker_free_0_arg0, attribute_Deprecated_func_enchant_broker_free_0_arg0_str);
162 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_broker_free_0->args[0].value, &attribute_Deprecated_func_enchant_broker_free_0_arg0);
163 attribute_Deprecated_func_enchant_broker_free_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
164 zval attribute_Deprecated_func_enchant_broker_free_0_arg1;
165 zend_string *attribute_Deprecated_func_enchant_broker_free_0_arg1_str = zend_string_init("as EnchantBroker objects are freed automatically", strlen("as EnchantBroker objects are freed automatically"), 1);
166 ZVAL_STR(&attribute_Deprecated_func_enchant_broker_free_0_arg1, attribute_Deprecated_func_enchant_broker_free_0_arg1_str);
167 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_broker_free_0->args[1].value, &attribute_Deprecated_func_enchant_broker_free_0_arg1);
168 attribute_Deprecated_func_enchant_broker_free_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
169
170 zend_attribute *attribute_Deprecated_func_enchant_broker_set_dict_path_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "enchant_broker_set_dict_path", sizeof("enchant_broker_set_dict_path") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
171 zval attribute_Deprecated_func_enchant_broker_set_dict_path_0_arg0;
172 zend_string *attribute_Deprecated_func_enchant_broker_set_dict_path_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
173 ZVAL_STR(&attribute_Deprecated_func_enchant_broker_set_dict_path_0_arg0, attribute_Deprecated_func_enchant_broker_set_dict_path_0_arg0_str);
174 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_broker_set_dict_path_0->args[0].value, &attribute_Deprecated_func_enchant_broker_set_dict_path_0_arg0);
175 attribute_Deprecated_func_enchant_broker_set_dict_path_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
176
177 zend_attribute *attribute_Deprecated_func_enchant_broker_get_dict_path_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "enchant_broker_get_dict_path", sizeof("enchant_broker_get_dict_path") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 1);
178 zval attribute_Deprecated_func_enchant_broker_get_dict_path_0_arg0;
179 zend_string *attribute_Deprecated_func_enchant_broker_get_dict_path_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
180 ZVAL_STR(&attribute_Deprecated_func_enchant_broker_get_dict_path_0_arg0, attribute_Deprecated_func_enchant_broker_get_dict_path_0_arg0_str);
181 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_broker_get_dict_path_0->args[0].value, &attribute_Deprecated_func_enchant_broker_get_dict_path_0_arg0);
182 attribute_Deprecated_func_enchant_broker_get_dict_path_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
183
184 zend_attribute *attribute_Deprecated_func_enchant_broker_free_dict_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "enchant_broker_free_dict", sizeof("enchant_broker_free_dict") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
185 zval attribute_Deprecated_func_enchant_broker_free_dict_0_arg0;
186 zend_string *attribute_Deprecated_func_enchant_broker_free_dict_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
187 ZVAL_STR(&attribute_Deprecated_func_enchant_broker_free_dict_0_arg0, attribute_Deprecated_func_enchant_broker_free_dict_0_arg0_str);
188 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_broker_free_dict_0->args[0].value, &attribute_Deprecated_func_enchant_broker_free_dict_0_arg0);
189 attribute_Deprecated_func_enchant_broker_free_dict_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
190 zval attribute_Deprecated_func_enchant_broker_free_dict_0_arg1;
191 zend_string *attribute_Deprecated_func_enchant_broker_free_dict_0_arg1_str = zend_string_init("as EnchantDictionary objects are freed automatically", strlen("as EnchantDictionary objects are freed automatically"), 1);
192 ZVAL_STR(&attribute_Deprecated_func_enchant_broker_free_dict_0_arg1, attribute_Deprecated_func_enchant_broker_free_dict_0_arg1_str);
193 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_broker_free_dict_0->args[1].value, &attribute_Deprecated_func_enchant_broker_free_dict_0_arg1);
194 attribute_Deprecated_func_enchant_broker_free_dict_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
195
196 zend_attribute *attribute_Deprecated_func_enchant_dict_add_to_personal_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "enchant_dict_add_to_personal", sizeof("enchant_dict_add_to_personal") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
197 zval attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg0;
198 zend_string *attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
199 ZVAL_STR(&attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg0, attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg0_str);
200 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_dict_add_to_personal_0->args[0].value, &attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg0);
201 attribute_Deprecated_func_enchant_dict_add_to_personal_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
202 zval attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg1;
203 zend_string *attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg1_str = zend_string_init("use enchant_dict_add() instead", strlen("use enchant_dict_add() instead"), 1);
204 ZVAL_STR(&attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg1, attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg1_str);
205 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_dict_add_to_personal_0->args[1].value, &attribute_Deprecated_func_enchant_dict_add_to_personal_0_arg1);
206 attribute_Deprecated_func_enchant_dict_add_to_personal_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
207
208 zend_attribute *attribute_Deprecated_func_enchant_dict_is_in_session_0 = zend_add_function_attribute(zend_hash_str_find_ptr(CG(function_table), "enchant_dict_is_in_session", sizeof("enchant_dict_is_in_session") - 1), ZSTR_KNOWN(ZEND_STR_DEPRECATED_CAPITALIZED), 2);
209 zval attribute_Deprecated_func_enchant_dict_is_in_session_0_arg0;
210 zend_string *attribute_Deprecated_func_enchant_dict_is_in_session_0_arg0_str = zend_string_init("8.0", strlen("8.0"), 1);
211 ZVAL_STR(&attribute_Deprecated_func_enchant_dict_is_in_session_0_arg0, attribute_Deprecated_func_enchant_dict_is_in_session_0_arg0_str);
212 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_dict_is_in_session_0->args[0].value, &attribute_Deprecated_func_enchant_dict_is_in_session_0_arg0);
213 attribute_Deprecated_func_enchant_dict_is_in_session_0->args[0].name = ZSTR_KNOWN(ZEND_STR_SINCE);
214 zval attribute_Deprecated_func_enchant_dict_is_in_session_0_arg1;
215 zend_string *attribute_Deprecated_func_enchant_dict_is_in_session_0_arg1_str = zend_string_init("use enchant_dict_is_added() instead", strlen("use enchant_dict_is_added() instead"), 1);
216 ZVAL_STR(&attribute_Deprecated_func_enchant_dict_is_in_session_0_arg1, attribute_Deprecated_func_enchant_dict_is_in_session_0_arg1_str);
217 ZVAL_COPY_VALUE(&attribute_Deprecated_func_enchant_dict_is_in_session_0->args[1].value, &attribute_Deprecated_func_enchant_dict_is_in_session_0_arg1);
218 attribute_Deprecated_func_enchant_dict_is_in_session_0->args[1].name = ZSTR_KNOWN(ZEND_STR_MESSAGE);
219}
220
221static zend_class_entry *register_class_EnchantBroker(void)
222{
223 zend_class_entry ce, *class_entry;
224
225 INIT_CLASS_ENTRY(ce, "EnchantBroker", NULL);
227
228 return class_entry;
229}
230
231static zend_class_entry *register_class_EnchantDictionary(void)
232{
233 zend_class_entry ce, *class_entry;
234
235 INIT_CLASS_ENTRY(ce, "EnchantDictionary", NULL);
237
238 return class_entry;
239}
#define PHP_ENCHANT_ISPELL
Definition enchant.c:31
#define PHP_ENCHANT_MYSPELL
Definition enchant.c:30
enchant_broker_get_dict_path(EnchantBroker $broker, int $type)
enchant_broker_get_error(EnchantBroker $broker)
enchant_dict_quick_check(EnchantDictionary $dictionary, string $word, &$suggestions=null)
enchant_dict_suggest(EnchantDictionary $dictionary, string $word)
enchant_broker_set_ordering(EnchantBroker $broker, string $tag, string $ordering)
enchant_broker_request_dict(EnchantBroker $broker, string $tag)
enchant_broker_init()
enchant_broker_set_dict_path(EnchantBroker $broker, int $type, string $path)
enchant_broker_free_dict(EnchantDictionary $dictionary)
enchant_dict_store_replacement(EnchantDictionary $dictionary, string $misspelled, string $correct)
enchant_broker_describe(EnchantBroker $broker)
enchant_broker_list_dicts(EnchantBroker $broker)
enchant_broker_request_pwl_dict(EnchantBroker $broker, string $filename)
enchant_dict_add(EnchantDictionary $dictionary, string $word)
enchant_dict_describe(EnchantDictionary $dictionary)
enchant_dict_check(EnchantDictionary $dictionary, string $word)
enchant_dict_is_added(EnchantDictionary $dictionary, string $word)
enchant_dict_get_error(EnchantDictionary $dictionary)
enchant_dict_add_to_session(EnchantDictionary $dictionary, string $word)
enchant_broker_free(EnchantBroker $broker)
enchant_broker_dict_exists(EnchantBroker $broker, string $tag)
#define arginfo_enchant_dict_add_to_personal
#define arginfo_enchant_broker_describe
#define arginfo_enchant_dict_is_added
#define arginfo_enchant_dict_is_in_session
#define arginfo_enchant_dict_add_to_session
zend_ffi_type * type
Definition ffi.c:3812
#define NULL
Definition gdcache.h:45
zend_attribute_arg args[1]
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(name, return_reference, required_num_args, class_name, type)
Definition zend_API.h:195
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_OBJ_INFO(pass_by_ref, name, class_name, allow_null)
Definition zend_API.h:154
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_ARG_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, default_value)
Definition zend_API.h:132
struct _zend_attribute zend_attribute
struct _zval_struct zval
strlen(string $string)
#define ZEND_ACC_NO_DYNAMIC_PROPERTIES
#define ZEND_ACC_FINAL
#define ZEND_ACC_NOT_SERIALIZABLE
#define ZEND_ACC_DEPRECATED
#define REGISTER_STRING_CONSTANT(name, str, flags)
#define CONST_PERSISTENT
#define CONST_DEPRECATED
#define REGISTER_LONG_CONSTANT(name, lval, flags)
#define CG(v)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
#define ZSTR_KNOWN(idx)
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define ZVAL_STR(z, s)
#define IS_STRING
Definition zend_types.h:606
#define IS_ARRAY
Definition zend_types.h:607
#define IS_VOID
Definition zend_types.h:617
#define IS_LONG
Definition zend_types.h:604
#define _IS_BOOL
Definition zend_types.h:629
#define ZVAL_COPY_VALUE(z, v)