[wp-trac] [WordPress Trac] #18007: is_serialized trouble for multibytes encoding

WordPress Trac noreply at wordpress.org
Tue Feb 18 10:37:28 UTC 2014


#18007: is_serialized trouble for multibytes encoding
---------------------------------+------------------
 Reporter:  challet              |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  3.9
Component:  Charset              |     Version:  3.2
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.6-early  |     Focuses:
---------------------------------+------------------
Changes (by SergeyBiryukov):

 * milestone:  Future Release => 3.9


Comment:

 A simple way to reproduce the issue:
 1. Set `mbstring.func_overload = 2` in `php.ini`.
 2. Enter a widget title in Cyrillic and save it.
 3. The widget shows a notice (see [source:tags/3.8.1/src/wp-
 includes/widgets.php#L262]):
 {{{
 Notice: Undefined offset: 2 in wp-includes/widgets.php on line 262
 }}}
 4. The widget disappears on front-end. After a page refresh, it disappears
 in the admin too.

 [attachment:18007.2.patch] seems like the way to go here. Let's refresh
 the unit tests if necessary and get this in.

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


More information about the wp-trac mailing list