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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 27 23:21:27 UTC 2012


#18007: is_serialized trouble for multibytes encoding
----------------------------------------+------------------------------
 Reporter:  challet                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Charset                     |     Version:  3.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+------------------------------
Changes (by kurtpayne):

 * cc: kurtpayne (added)


Comment:

 I'm trying to come up with a test for this, but I'm hitting some
 roadblocks.

 I can't reproduce the issue.  Is it still present in php 5.3?

 I am doing the following:

  * `ALTER TABLE wp_options MODIFY option_value LONGTEXT CHARACTER SET utf8
 COLLATE utf8_unicode_ci;`
  * `INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`)
 VALUES ('test_18007_option', 'a:0:{}', 'yes');`
  * `get_option( 'test_18007_option' );`

 This returns the correct value ... an empty array.

 Also, mbstring.func_overload is a PHP_INI_PERDIR | PHP_INI_SYSTEM level
 configuration item for php 4.3 through php 5.2.6.  This is a little tricky
 since this has to be set with `php -d` or in php.ini (or skip the test).

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


More information about the wp-trac mailing list