[wp-trac] [WordPress Trac] #63913: WordPress assumes that the UTF-8 PCRE flag is available.

WordPress Trac noreply at wordpress.org
Mon Sep 22 22:50:09 UTC 2025


#63913: WordPress assumes that the UTF-8 PCRE flag is available.
-------------------------+-----------------------------
 Reporter:  dmsnell      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  low          |   Milestone:  Future Release
Component:  Charset      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by dmsnell):

 > moving to mbstring extension as standard would help a lot.

 It absolutely would. There are places WordPress currently crashes if
 `mbstring` isn’t available anyway. That issue, however, is discussed in
 #55603.

 > the only way to solve/add guards is to either try to find a function
 that supports utf-8 by default or mbstring extension or some other hacks
 like IntlChar etc.

 Yes, anyone will discover that resolving these is not a simple matter of
 adding a `function_exists()` check, because the code calling these
 functions is likely wrong already and there is no alternative in the
 absence of these functions. This is why I created this separate tracking
 issue to take take of the long-term migration of functions assuming the
 flag.

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


More information about the wp-trac mailing list