Skip to content

Commit 7559a7a

Browse files
saundefinedclaudepache
authored andcommitted
[PHP 8.2] Deprecate utf8_* functions (php#1743)
1 parent d1bf1af commit 7559a7a

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

language-snippets.ent

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,11 @@ xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
319319
<emphasis>DEPRECATED</emphasis> as of PHP 8.1.0. Relying on this function
320320
is highly discouraged.</simpara></warning>'>
321321

322+
<!ENTITY warn.deprecated.function-8-2-0 '<warning
323+
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
324+
<emphasis>DEPRECATED</emphasis> as of PHP 8.2.0. Relying on this function
325+
is highly discouraged.</simpara></warning>'>
326+
322327
<!ENTITY removed.php.future 'This deprecated feature <emphasis xmlns="http://docbook.org/ns/docbook">will</emphasis>
323328
certainly be <emphasis xmlns="http://docbook.org/ns/docbook">removed</emphasis> in the future.'>
324329

reference/strings/functions/utf8-decode.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
characters
99
</refpurpose>
1010
</refnamediv>
11+
12+
<refsynopsisdiv>
13+
&warn.deprecated.function-8-2-0;
14+
</refsynopsisdiv>
1115

1216
<refsect1 role="description">
1317
&reftitle.description;
@@ -75,6 +79,12 @@
7579
</row>
7680
</thead>
7781
<tbody>
82+
<row>
83+
<entry>8.2.0</entry>
84+
<entry>
85+
This function has been deprecated.
86+
</entry>
87+
</row>
7888
<row>
7989
<entry>7.2.0</entry>
8090
<entry>

reference/strings/functions/utf8-encode.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<refname>utf8_encode</refname>
66
<refpurpose>Converts a string from ISO-8859-1 to UTF-8</refpurpose>
77
</refnamediv>
8+
9+
<refsynopsisdiv>
10+
&warn.deprecated.function-8-2-0;
11+
</refsynopsisdiv>
812

913
<refsect1 role="description">
1014
&reftitle.description;
@@ -75,6 +79,12 @@
7579
</row>
7680
</thead>
7781
<tbody>
82+
<row>
83+
<entry>8.2.0</entry>
84+
<entry>
85+
This function has been deprecated.
86+
</entry>
87+
</row>
7888
<row>
7989
<entry>7.2.0</entry>
8090
<entry>

0 commit comments

Comments
 (0)