1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 4367fa431d3e4814e42d9aa514c10cae1d842d8f */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strlen, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
5 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
6 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
7 ZEND_END_ARG_INFO()
8
9 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_substr, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
10 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
11 ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
12 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
14 ZEND_END_ARG_INFO()
15
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
17 ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
18 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
19 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, offset, IS_LONG, 0, "0")
20 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
21 ZEND_END_ARG_INFO()
22
23 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_strrpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
24 ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
25 ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
26 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
27 ZEND_END_ARG_INFO()
28
29 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_encode, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
30 ZEND_ARG_TYPE_INFO(0, field_name, IS_STRING, 0)
31 ZEND_ARG_TYPE_INFO(0, field_value, IS_STRING, 0)
32 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
33 ZEND_END_ARG_INFO()
34
35 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_decode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
36 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
37 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
38 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
39 ZEND_END_ARG_INFO()
40
41 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_mime_decode_headers, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
42 ZEND_ARG_TYPE_INFO(0, headers, IS_STRING, 0)
43 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0")
44 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null")
45 ZEND_END_ARG_INFO()
46
47 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv, 0, 3, MAY_BE_STRING|MAY_BE_FALSE)
48 ZEND_ARG_TYPE_INFO(0, from_encoding, IS_STRING, 0)
49 ZEND_ARG_TYPE_INFO(0, to_encoding, IS_STRING, 0)
50 ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
51 ZEND_END_ARG_INFO()
52
53 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_iconv_set_encoding, 0, 2, _IS_BOOL, 0)
54 ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
55 ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
56 ZEND_END_ARG_INFO()
57
58 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_iconv_get_encoding, 0, 0, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_FALSE)
59 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 0, "\"all\"")
60 ZEND_END_ARG_INFO()
61
62 ZEND_FUNCTION(iconv_strlen);
63 ZEND_FUNCTION(iconv_substr);
64 ZEND_FUNCTION(iconv_strpos);
65 ZEND_FUNCTION(iconv_strrpos);
66 ZEND_FUNCTION(iconv_mime_encode);
67 ZEND_FUNCTION(iconv_mime_decode);
68 ZEND_FUNCTION(iconv_mime_decode_headers);
69 ZEND_FUNCTION(iconv);
70 ZEND_FUNCTION(iconv_set_encoding);
71 ZEND_FUNCTION(iconv_get_encoding);
72
73 static const zend_function_entry ext_functions[] = {
74 ZEND_FE(iconv_strlen, arginfo_iconv_strlen)
75 ZEND_FE(iconv_substr, arginfo_iconv_substr)
76 ZEND_FE(iconv_strpos, arginfo_iconv_strpos)
77 ZEND_FE(iconv_strrpos, arginfo_iconv_strrpos)
78 ZEND_FE(iconv_mime_encode, arginfo_iconv_mime_encode)
79 ZEND_FE(iconv_mime_decode, arginfo_iconv_mime_decode)
80 ZEND_FE(iconv_mime_decode_headers, arginfo_iconv_mime_decode_headers)
81 ZEND_FE(iconv, arginfo_iconv)
82 ZEND_FE(iconv_set_encoding, arginfo_iconv_set_encoding)
83 ZEND_FE(iconv_get_encoding, arginfo_iconv_get_encoding)
84 ZEND_FE_END
85 };
86
register_iconv_symbols(int module_number)87 static void register_iconv_symbols(int module_number)
88 {
89 REGISTER_STRING_CONSTANT("ICONV_IMPL", PHP_ICONV_IMPL_VALUE, CONST_PERSISTENT);
90 REGISTER_STRING_CONSTANT("ICONV_VERSION", get_iconv_version(), CONST_PERSISTENT);
91 REGISTER_LONG_CONSTANT("ICONV_MIME_DECODE_STRICT", PHP_ICONV_MIME_DECODE_STRICT, CONST_PERSISTENT);
92 REGISTER_LONG_CONSTANT("ICONV_MIME_DECODE_CONTINUE_ON_ERROR", PHP_ICONV_MIME_DECODE_CONTINUE_ON_ERROR, CONST_PERSISTENT);
93 }
94