[wp-trac] [WordPress Trac] #18488: set_transient crashes when value parameter is a SimpleXMLElement object

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 26 20:32:54 UTC 2012


#18488: set_transient crashes when value parameter is a SimpleXMLElement object
-------------------------+------------------------------
 Reporter:  bobbingwide  |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Cache        |     Version:  3.2.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------
Changes (by scribu):

 * keywords:  dev-feedback => needs-patch


Comment:

 I agree. The developer using set_transient() is in the best position to
 decide how to convert an unserializable object into something that is
 serializable.

 The only thing we should do here is make it clear in the docs that the
 value needs to be serializable.

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


More information about the wp-trac mailing list