[wp-trac] [WordPress Trac] #25259: Helper functions for mbstring.func_overload

WordPress Trac noreply at wordpress.org
Thu Sep 12 00:58:28 UTC 2013


#25259: Helper functions for mbstring.func_overload
--------------------------+-----------------------
 Reporter:  dd32          |       Owner:  dd32
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.7
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by dd32):

 Replying to [comment:10 SergeyBiryukov]:
 > Replying to [comment:9 dd32]:
 > > For those cases, we could do a compat function that looks something
 like:
 >
 > FWIW, we already have a compat version of `mb_substr()`:
 [source:tags/3.6.1/wp-includes/compat.php#L16].

 I guess the function_exists() check would have to  either check for a
 different mbstring function, or, now that i look at it, simply calling it
 with an ascii encoding would always work (as if mbstring isn't loaded,
 it'll use substr(), otherwise, it'll use mb_substr with ascii)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25259#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list