[wp-trac] [WordPress Trac] #55603: PHP 8.2: address deprecation of the utf8_encode() and utf8_decode() functions
WordPress Trac
noreply at wordpress.org
Tue Jun 21 21:06:16 UTC 2022
#55603: PHP 8.2: address deprecation of the utf8_encode() and utf8_decode()
functions
-------------------------------------+-------------------------------
Reporter: jrf | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.1
Component: General | Version: 6.0
Severity: normal | Resolution:
Keywords: 2nd-opinion early php82 | Focuses: coding-standards
-------------------------------------+-------------------------------
Comment (by ayeshrajans):
As for the two `utf8_encode` calls in `wp_read_image_metadata` and
`wxr_cdata` functions, they are wrapped with `!seems_utf8()` clauses,
which make believe core's `utf8_encode` calls are wrong too because there
is no guarantee the source strings are always ISO-8859-1.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55603#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list