[wp-trac] [WordPress Trac] #55603: PHP 8.2: address deprecation of the utf8_encode() and utf8_decode() functions

WordPress Trac noreply at wordpress.org
Fri Apr 12 02:04:51 UTC 2024


#55603: PHP 8.2: address deprecation of the utf8_encode() and utf8_decode()
functions
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:
                                                 |  SergeyBiryukov
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.6
Component:  General                              |     Version:  6.0
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion php82 dev-feedback has-  |     Focuses:  coding-
  patch has-unit-tests                           |  standards
-------------------------------------------------+-------------------------

Comment (by knutsp):

 I'm not sure what requires mean, will an installation or upgrade be
 refused/fail, or will it just be a notice or test in Site Health?

 En elegant solution would be to not allow non English installation or
 language addition in case `mbstring` is not included. That may require a
 kind of polyfill as a short circuit and avoid fatal errors, in case non
 Latin characters are introduced by user input.

 I'm all for requiring `mbstring` in general, as we who are using European
 languages have extra characters in our alphabets, but I'm a bit worried
 about this getting accepted by project leadership in time this is needed
 for PHP versions support. And I admit that a very large portion of
 WordPress installations use a variant of English only, not only as the
 site language, but also for all users, and really don't need this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55603#comment:82>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list