1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 131af756402aecb88d2265f2a3d25aa5c66a7185 */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_language, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
5 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, language, IS_STRING, 1, "null")
6 ZEND_END_ARG_INFO()
7
8 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_internal_encoding, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
9 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
10 ZEND_END_ARG_INFO()
11
12 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_http_input, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 1, "null")
14 ZEND_END_ARG_INFO()
15
16 #define arginfo_mb_http_output arginfo_mb_internal_encoding
17
18 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_detect_order, 0, 0, MAY_BE_ARRAY|MAY_BE_BOOL)
19 ZEND_ARG_TYPE_MASK(0, encoding, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
20 ZEND_END_ARG_INFO()
21
22 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_substitute_character, 0, 0, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_BOOL)
23 ZEND_ARG_TYPE_MASK(0, substitute_character, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_NULL, "null")
24 ZEND_END_ARG_INFO()
25
26 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_preferred_mime_name, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
27 ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
28 ZEND_END_ARG_INFO()
29
30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_parse_str, 0, 2, _IS_BOOL, 0)
31 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
32 ZEND_ARG_INFO(1, result)
33 ZEND_END_ARG_INFO()
34
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_output_handler, 0, 2, IS_STRING, 0)
36 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
37 ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0)
38 ZEND_END_ARG_INFO()
39
40 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_str_split, 0, 1, IS_ARRAY, 0)
41 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
42 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "1")
43 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
44 ZEND_END_ARG_INFO()
45
46 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_strlen, 0, 1, IS_LONG, 0)
47 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
48 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
49 ZEND_END_ARG_INFO()
50
51 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
52 ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
53 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
54 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, "0")
55 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
56 ZEND_END_ARG_INFO()
57
58 #define arginfo_mb_strrpos arginfo_mb_strpos
59
60 #define arginfo_mb_stripos arginfo_mb_strpos
61
62 #define arginfo_mb_strripos arginfo_mb_strpos
63
64 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strstr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
65 ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
66 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
67 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, before_needle, _IS_BOOL, 0, "false")
68 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
69 ZEND_END_ARG_INFO()
70
71 #define arginfo_mb_strrchr arginfo_mb_strstr
72
73 #define arginfo_mb_stristr arginfo_mb_strstr
74
75 #define arginfo_mb_strrichr arginfo_mb_strstr
76
77 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_substr_count, 0, 2, IS_LONG, 0)
78 ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
79 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
80 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
81 ZEND_END_ARG_INFO()
82
83 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_substr, 0, 2, IS_STRING, 0)
84 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
85 ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
87 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
88 ZEND_END_ARG_INFO()
89
90 #define arginfo_mb_strcut arginfo_mb_substr
91
92 #define arginfo_mb_strwidth arginfo_mb_strlen
93
94 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_strimwidth, 0, 3, IS_STRING, 0)
95 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
96 ZEND_ARG_TYPE_INFO(0, start, IS_LONG, 0)
97 ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0)
98 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, trim_marker, IS_STRING, 0, "\"\"")
99 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
100 ZEND_END_ARG_INFO()
101
102 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_encoding, 0, 2, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
103 ZEND_ARG_TYPE_MASK(0, string, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
104 ZEND_ARG_TYPE_INFO(0, to_encoding, IS_STRING, 0)
105 ZEND_ARG_TYPE_MASK(0, from_encoding, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
106 ZEND_END_ARG_INFO()
107
108 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_convert_case, 0, 2, IS_STRING, 0)
109 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
110 ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
111 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
112 ZEND_END_ARG_INFO()
113
114 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_strtoupper, 0, 1, IS_STRING, 0)
115 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
116 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
117 ZEND_END_ARG_INFO()
118
119 #define arginfo_mb_strtolower arginfo_mb_strtoupper
120
121 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_detect_encoding, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
122 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
123 ZEND_ARG_TYPE_MASK(0, encodings, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
124 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, strict, _IS_BOOL, 0, "false")
125 ZEND_END_ARG_INFO()
126
127 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_list_encodings, 0, 0, IS_ARRAY, 0)
128 ZEND_END_ARG_INFO()
129
130 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_encoding_aliases, 0, 1, IS_ARRAY, 0)
131 ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
132 ZEND_END_ARG_INFO()
133
134 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_encode_mimeheader, 0, 1, IS_STRING, 0)
135 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
136 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, charset, IS_STRING, 1, "null")
137 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, transfer_encoding, IS_STRING, 1, "null")
138 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, newline, IS_STRING, 0, "\"\\r\\n\"")
139 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, indent, IS_LONG, 0, "0")
140 ZEND_END_ARG_INFO()
141
142 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_decode_mimeheader, 0, 1, IS_STRING, 0)
143 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
144 ZEND_END_ARG_INFO()
145
146 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_convert_kana, 0, 1, IS_STRING, 0)
147 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
148 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_STRING, 0, "\"KV\"")
149 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
150 ZEND_END_ARG_INFO()
151
152 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_convert_variables, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
153 ZEND_ARG_TYPE_INFO(0, to_encoding, IS_STRING, 0)
154 ZEND_ARG_TYPE_MASK(0, from_encoding, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
155 ZEND_ARG_TYPE_INFO(1, var, IS_MIXED, 0)
156 ZEND_ARG_VARIADIC_TYPE_INFO(1, vars, IS_MIXED, 0)
157 ZEND_END_ARG_INFO()
158
159 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_encode_numericentity, 0, 2, IS_STRING, 0)
160 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
161 ZEND_ARG_TYPE_INFO(0, map, IS_ARRAY, 0)
162 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
163 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, hex, _IS_BOOL, 0, "false")
164 ZEND_END_ARG_INFO()
165
166 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_decode_numericentity, 0, 2, IS_STRING, 0)
167 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
168 ZEND_ARG_TYPE_INFO(0, map, IS_ARRAY, 0)
169 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
170 ZEND_END_ARG_INFO()
171
172 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_send_mail, 0, 3, _IS_BOOL, 0)
173 ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
174 ZEND_ARG_TYPE_INFO(0, subject, IS_STRING, 0)
175 ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
176 ZEND_ARG_TYPE_MASK(0, additional_headers, MAY_BE_ARRAY|MAY_BE_STRING, "[]")
177 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, additional_params, IS_STRING, 1, "null")
178 ZEND_END_ARG_INFO()
179
180 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_get_info, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_LONG|MAY_BE_FALSE|MAY_BE_NULL)
181 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 0, "\"all\"")
182 ZEND_END_ARG_INFO()
183
184 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_check_encoding, 0, 0, _IS_BOOL, 0)
185 ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
186 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
187 ZEND_END_ARG_INFO()
188
189 #define arginfo_mb_scrub arginfo_mb_strtoupper
190
191 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ord, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
192 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
193 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
194 ZEND_END_ARG_INFO()
195
196 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_chr, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
197 ZEND_ARG_TYPE_INFO(0, codepoint, IS_LONG, 0)
198 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
199 ZEND_END_ARG_INFO()
200
201 #if defined(HAVE_MBREGEX)
202 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_regex_encoding, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
203 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
204 ZEND_END_ARG_INFO()
205 #endif
206
207 #if defined(HAVE_MBREGEX)
208 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_ereg, 0, 2, _IS_BOOL, 0)
209 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
210 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
211 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, matches, "null")
212 ZEND_END_ARG_INFO()
213 #endif
214
215 #if defined(HAVE_MBREGEX)
216 #define arginfo_mb_eregi arginfo_mb_ereg
217 #endif
218
219 #if defined(HAVE_MBREGEX)
220 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_replace, 0, 3, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
221 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
222 ZEND_ARG_TYPE_INFO(0, replacement, IS_STRING, 0)
223 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
224 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
225 ZEND_END_ARG_INFO()
226 #endif
227
228 #if defined(HAVE_MBREGEX)
229 #define arginfo_mb_eregi_replace arginfo_mb_ereg_replace
230 #endif
231
232 #if defined(HAVE_MBREGEX)
233 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_replace_callback, 0, 3, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
234 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
235 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
236 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
237 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
238 ZEND_END_ARG_INFO()
239 #endif
240
241 #if defined(HAVE_MBREGEX)
242 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_split, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE)
243 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
244 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
245 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "-1")
246 ZEND_END_ARG_INFO()
247 #endif
248
249 #if defined(HAVE_MBREGEX)
250 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_ereg_match, 0, 2, _IS_BOOL, 0)
251 ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
252 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
253 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
254 ZEND_END_ARG_INFO()
255 #endif
256
257 #if defined(HAVE_MBREGEX)
258 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_ereg_search, 0, 0, _IS_BOOL, 0)
259 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
260 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
261 ZEND_END_ARG_INFO()
262 #endif
263
264 #if defined(HAVE_MBREGEX)
265 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_search_pos, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
266 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
267 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
268 ZEND_END_ARG_INFO()
269 #endif
270
271 #if defined(HAVE_MBREGEX)
272 #define arginfo_mb_ereg_search_regs arginfo_mb_ereg_search_pos
273 #endif
274
275 #if defined(HAVE_MBREGEX)
276 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_ereg_search_init, 0, 1, _IS_BOOL, 0)
277 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
278 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
279 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
280 ZEND_END_ARG_INFO()
281 #endif
282
283 #if defined(HAVE_MBREGEX)
284 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_ereg_search_getregs, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
285 ZEND_END_ARG_INFO()
286 #endif
287
288 #if defined(HAVE_MBREGEX)
289 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_ereg_search_getpos, 0, 0, IS_LONG, 0)
290 ZEND_END_ARG_INFO()
291 #endif
292
293 #if defined(HAVE_MBREGEX)
294 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_ereg_search_setpos, 0, 1, _IS_BOOL, 0)
295 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
296 ZEND_END_ARG_INFO()
297 #endif
298
299 #if defined(HAVE_MBREGEX)
300 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_regex_set_options, 0, 0, IS_STRING, 0)
301 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_STRING, 1, "null")
302 ZEND_END_ARG_INFO()
303 #endif
304
305
306 ZEND_FUNCTION(mb_language);
307 ZEND_FUNCTION(mb_internal_encoding);
308 ZEND_FUNCTION(mb_http_input);
309 ZEND_FUNCTION(mb_http_output);
310 ZEND_FUNCTION(mb_detect_order);
311 ZEND_FUNCTION(mb_substitute_character);
312 ZEND_FUNCTION(mb_preferred_mime_name);
313 ZEND_FUNCTION(mb_parse_str);
314 ZEND_FUNCTION(mb_output_handler);
315 ZEND_FUNCTION(mb_str_split);
316 ZEND_FUNCTION(mb_strlen);
317 ZEND_FUNCTION(mb_strpos);
318 ZEND_FUNCTION(mb_strrpos);
319 ZEND_FUNCTION(mb_stripos);
320 ZEND_FUNCTION(mb_strripos);
321 ZEND_FUNCTION(mb_strstr);
322 ZEND_FUNCTION(mb_strrchr);
323 ZEND_FUNCTION(mb_stristr);
324 ZEND_FUNCTION(mb_strrichr);
325 ZEND_FUNCTION(mb_substr_count);
326 ZEND_FUNCTION(mb_substr);
327 ZEND_FUNCTION(mb_strcut);
328 ZEND_FUNCTION(mb_strwidth);
329 ZEND_FUNCTION(mb_strimwidth);
330 ZEND_FUNCTION(mb_convert_encoding);
331 ZEND_FUNCTION(mb_convert_case);
332 ZEND_FUNCTION(mb_strtoupper);
333 ZEND_FUNCTION(mb_strtolower);
334 ZEND_FUNCTION(mb_detect_encoding);
335 ZEND_FUNCTION(mb_list_encodings);
336 ZEND_FUNCTION(mb_encoding_aliases);
337 ZEND_FUNCTION(mb_encode_mimeheader);
338 ZEND_FUNCTION(mb_decode_mimeheader);
339 ZEND_FUNCTION(mb_convert_kana);
340 ZEND_FUNCTION(mb_convert_variables);
341 ZEND_FUNCTION(mb_encode_numericentity);
342 ZEND_FUNCTION(mb_decode_numericentity);
343 ZEND_FUNCTION(mb_send_mail);
344 ZEND_FUNCTION(mb_get_info);
345 ZEND_FUNCTION(mb_check_encoding);
346 ZEND_FUNCTION(mb_scrub);
347 ZEND_FUNCTION(mb_ord);
348 ZEND_FUNCTION(mb_chr);
349 #if defined(HAVE_MBREGEX)
350 ZEND_FUNCTION(mb_regex_encoding);
351 #endif
352 #if defined(HAVE_MBREGEX)
353 ZEND_FUNCTION(mb_ereg);
354 #endif
355 #if defined(HAVE_MBREGEX)
356 ZEND_FUNCTION(mb_eregi);
357 #endif
358 #if defined(HAVE_MBREGEX)
359 ZEND_FUNCTION(mb_ereg_replace);
360 #endif
361 #if defined(HAVE_MBREGEX)
362 ZEND_FUNCTION(mb_eregi_replace);
363 #endif
364 #if defined(HAVE_MBREGEX)
365 ZEND_FUNCTION(mb_ereg_replace_callback);
366 #endif
367 #if defined(HAVE_MBREGEX)
368 ZEND_FUNCTION(mb_split);
369 #endif
370 #if defined(HAVE_MBREGEX)
371 ZEND_FUNCTION(mb_ereg_match);
372 #endif
373 #if defined(HAVE_MBREGEX)
374 ZEND_FUNCTION(mb_ereg_search);
375 #endif
376 #if defined(HAVE_MBREGEX)
377 ZEND_FUNCTION(mb_ereg_search_pos);
378 #endif
379 #if defined(HAVE_MBREGEX)
380 ZEND_FUNCTION(mb_ereg_search_regs);
381 #endif
382 #if defined(HAVE_MBREGEX)
383 ZEND_FUNCTION(mb_ereg_search_init);
384 #endif
385 #if defined(HAVE_MBREGEX)
386 ZEND_FUNCTION(mb_ereg_search_getregs);
387 #endif
388 #if defined(HAVE_MBREGEX)
389 ZEND_FUNCTION(mb_ereg_search_getpos);
390 #endif
391 #if defined(HAVE_MBREGEX)
392 ZEND_FUNCTION(mb_ereg_search_setpos);
393 #endif
394 #if defined(HAVE_MBREGEX)
395 ZEND_FUNCTION(mb_regex_set_options);
396 #endif
397
398
399 static const zend_function_entry ext_functions[] = {
400 ZEND_FE(mb_language, arginfo_mb_language)
401 ZEND_FE(mb_internal_encoding, arginfo_mb_internal_encoding)
402 ZEND_FE(mb_http_input, arginfo_mb_http_input)
403 ZEND_FE(mb_http_output, arginfo_mb_http_output)
404 ZEND_FE(mb_detect_order, arginfo_mb_detect_order)
405 ZEND_FE(mb_substitute_character, arginfo_mb_substitute_character)
406 ZEND_FE(mb_preferred_mime_name, arginfo_mb_preferred_mime_name)
407 ZEND_FE(mb_parse_str, arginfo_mb_parse_str)
408 ZEND_FE(mb_output_handler, arginfo_mb_output_handler)
409 ZEND_FE(mb_str_split, arginfo_mb_str_split)
410 ZEND_FE(mb_strlen, arginfo_mb_strlen)
411 ZEND_FE(mb_strpos, arginfo_mb_strpos)
412 ZEND_FE(mb_strrpos, arginfo_mb_strrpos)
413 ZEND_FE(mb_stripos, arginfo_mb_stripos)
414 ZEND_FE(mb_strripos, arginfo_mb_strripos)
415 ZEND_FE(mb_strstr, arginfo_mb_strstr)
416 ZEND_FE(mb_strrchr, arginfo_mb_strrchr)
417 ZEND_FE(mb_stristr, arginfo_mb_stristr)
418 ZEND_FE(mb_strrichr, arginfo_mb_strrichr)
419 ZEND_FE(mb_substr_count, arginfo_mb_substr_count)
420 ZEND_FE(mb_substr, arginfo_mb_substr)
421 ZEND_FE(mb_strcut, arginfo_mb_strcut)
422 ZEND_FE(mb_strwidth, arginfo_mb_strwidth)
423 ZEND_FE(mb_strimwidth, arginfo_mb_strimwidth)
424 ZEND_FE(mb_convert_encoding, arginfo_mb_convert_encoding)
425 ZEND_FE(mb_convert_case, arginfo_mb_convert_case)
426 ZEND_FE(mb_strtoupper, arginfo_mb_strtoupper)
427 ZEND_FE(mb_strtolower, arginfo_mb_strtolower)
428 ZEND_FE(mb_detect_encoding, arginfo_mb_detect_encoding)
429 ZEND_FE(mb_list_encodings, arginfo_mb_list_encodings)
430 ZEND_FE(mb_encoding_aliases, arginfo_mb_encoding_aliases)
431 ZEND_FE(mb_encode_mimeheader, arginfo_mb_encode_mimeheader)
432 ZEND_FE(mb_decode_mimeheader, arginfo_mb_decode_mimeheader)
433 ZEND_FE(mb_convert_kana, arginfo_mb_convert_kana)
434 ZEND_FE(mb_convert_variables, arginfo_mb_convert_variables)
435 ZEND_FE(mb_encode_numericentity, arginfo_mb_encode_numericentity)
436 ZEND_FE(mb_decode_numericentity, arginfo_mb_decode_numericentity)
437 ZEND_FE(mb_send_mail, arginfo_mb_send_mail)
438 ZEND_FE(mb_get_info, arginfo_mb_get_info)
439 ZEND_FE(mb_check_encoding, arginfo_mb_check_encoding)
440 ZEND_FE(mb_scrub, arginfo_mb_scrub)
441 ZEND_FE(mb_ord, arginfo_mb_ord)
442 ZEND_FE(mb_chr, arginfo_mb_chr)
443 #if defined(HAVE_MBREGEX)
444 ZEND_FE(mb_regex_encoding, arginfo_mb_regex_encoding)
445 #endif
446 #if defined(HAVE_MBREGEX)
447 ZEND_FE(mb_ereg, arginfo_mb_ereg)
448 #endif
449 #if defined(HAVE_MBREGEX)
450 ZEND_FE(mb_eregi, arginfo_mb_eregi)
451 #endif
452 #if defined(HAVE_MBREGEX)
453 ZEND_FE(mb_ereg_replace, arginfo_mb_ereg_replace)
454 #endif
455 #if defined(HAVE_MBREGEX)
456 ZEND_FE(mb_eregi_replace, arginfo_mb_eregi_replace)
457 #endif
458 #if defined(HAVE_MBREGEX)
459 ZEND_FE(mb_ereg_replace_callback, arginfo_mb_ereg_replace_callback)
460 #endif
461 #if defined(HAVE_MBREGEX)
462 ZEND_FE(mb_split, arginfo_mb_split)
463 #endif
464 #if defined(HAVE_MBREGEX)
465 ZEND_FE(mb_ereg_match, arginfo_mb_ereg_match)
466 #endif
467 #if defined(HAVE_MBREGEX)
468 ZEND_FE(mb_ereg_search, arginfo_mb_ereg_search)
469 #endif
470 #if defined(HAVE_MBREGEX)
471 ZEND_FE(mb_ereg_search_pos, arginfo_mb_ereg_search_pos)
472 #endif
473 #if defined(HAVE_MBREGEX)
474 ZEND_FE(mb_ereg_search_regs, arginfo_mb_ereg_search_regs)
475 #endif
476 #if defined(HAVE_MBREGEX)
477 ZEND_FE(mb_ereg_search_init, arginfo_mb_ereg_search_init)
478 #endif
479 #if defined(HAVE_MBREGEX)
480 ZEND_FE(mb_ereg_search_getregs, arginfo_mb_ereg_search_getregs)
481 #endif
482 #if defined(HAVE_MBREGEX)
483 ZEND_FE(mb_ereg_search_getpos, arginfo_mb_ereg_search_getpos)
484 #endif
485 #if defined(HAVE_MBREGEX)
486 ZEND_FE(mb_ereg_search_setpos, arginfo_mb_ereg_search_setpos)
487 #endif
488 #if defined(HAVE_MBREGEX)
489 ZEND_FE(mb_regex_set_options, arginfo_mb_regex_set_options)
490 #endif
491 ZEND_FE_END
492 };
493
register_mbstring_symbols(int module_number)494 static void register_mbstring_symbols(int module_number)
495 {
496 #if defined(HAVE_MBREGEX)
497 REGISTER_STRING_CONSTANT("MB_ONIGURUMA_VERSION", php_mb_oniguruma_version, CONST_PERSISTENT);
498 #endif
499 REGISTER_LONG_CONSTANT("MB_CASE_UPPER", PHP_UNICODE_CASE_UPPER, CONST_PERSISTENT);
500 REGISTER_LONG_CONSTANT("MB_CASE_LOWER", PHP_UNICODE_CASE_LOWER, CONST_PERSISTENT);
501 REGISTER_LONG_CONSTANT("MB_CASE_TITLE", PHP_UNICODE_CASE_TITLE, CONST_PERSISTENT);
502 REGISTER_LONG_CONSTANT("MB_CASE_FOLD", PHP_UNICODE_CASE_FOLD, CONST_PERSISTENT);
503 REGISTER_LONG_CONSTANT("MB_CASE_UPPER_SIMPLE", PHP_UNICODE_CASE_UPPER_SIMPLE, CONST_PERSISTENT);
504 REGISTER_LONG_CONSTANT("MB_CASE_LOWER_SIMPLE", PHP_UNICODE_CASE_LOWER_SIMPLE, CONST_PERSISTENT);
505 REGISTER_LONG_CONSTANT("MB_CASE_TITLE_SIMPLE", PHP_UNICODE_CASE_TITLE_SIMPLE, CONST_PERSISTENT);
506 REGISTER_LONG_CONSTANT("MB_CASE_FOLD_SIMPLE", PHP_UNICODE_CASE_FOLD_SIMPLE, CONST_PERSISTENT);
507 }
508