reference/iconv/functions/iconv-mime-decode.xml
ab9a7d2e3dfa9224186abcbd7a43b3af08d1bfdb
...
...
@@ -9,10 +9,10 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>iconv_mime_decode</methodname>
13
-
<methodparam><type>string</type><parameter>encoded_header</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>iconv_mime_decode</methodname>
13
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14
14
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>0</initializer></methodparam>
15
-
<methodparam choice="opt"><type>string</type><parameter>charset</parameter><initializer>ini_get("iconv.internal_encoding")</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Decodes a <literal>MIME</literal> header field.
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>encoded_header</parameter></term>
27
+
<term><parameter>string</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The encoded header, as a string.
...
...
@@ -77,11 +77,11 @@
77
77
</listitem>
78
78
</varlistentry>
79
79
<varlistentry>
80
-
<term><parameter>charset</parameter></term>
80
+
<term><parameter>encoding</parameter></term>
81
81
<listitem>
82
82
<para>
83
-
The optional <parameter>charset</parameter> parameter specifies the
84
-
character set to represent the result by. If omitted,
83
+
The optional <parameter>encoding</parameter> parameter specifies the
84
+
character set to represent the result by. If omitted or &null;,
85
85
<link linkend="iconv.configuration">iconv.internal_encoding</link>
86
86
will be used.
87
87
</para>
...
...
@@ -99,6 +99,28 @@
99
99
</para>
100
100
</refsect1>
101
101

102
+
<refsect1 role="changelog">
103
+
&reftitle.changelog;
104
+
<informaltable>
105
+
<tgroup cols="2">
106
+
<thead>
107
+
<row>
108
+
<entry>&Version;</entry>
109
+
<entry>&Description;</entry>
110
+
</row>
111
+
</thead>
112
+
<tbody>
113
+
<row>
114
+
<entry>8.0.0</entry>
115
+
<entry>
116
+
<parameter>encoding</parameter> is nullable now.
117
+
</entry>
118
+
</row>
119
+
</tbody>
120
+
</tgroup>
121
+
</informaltable>
122
+
</refsect1>
123
+

102
124
<refsect1 role="examples">
103
125
&reftitle.examples;
104
126
<para>
...
...
@@ -131,7 +153,6 @@ echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=",
131
153
</refsect1>
132
154

133
155
</refentry>
134
-

135
156
<!-- Keep this comment at the end of the file
136
157
Local variables:
137
158
mode: sgml
138
159