[wp-trac] [WordPress Trac] #20773: update_option can't store serialized binary in wp_options.option_value column

WordPress Trac wp-trac at lists.automattic.com
Wed May 30 20:27:15 UTC 2012


#20773: update_option can't store serialized binary in wp_options.option_value
column
--------------------------+------------------------------
 Reporter:  mmaunder      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by mmaunder):

 I use my own tables in a plugin to do something similar to what
 update_option() does. I discovered my longtext column type wouldn't work
 when serialize/deserializeing binary data. I use binary md5's in a virus
 scanning plugin because they use less space. So I fixed it in my own
 tables and then it occurred to me that WP also uses longtext, so I wrote a
 test script and discovered the same issue I have with WP's update_option
 function.

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


More information about the wp-trac mailing list