[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:27:50 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: dev-feedback |
--------------------------+------------------------------
Comment (by nacin):
WordPress accepts scalar values for its option, transient, and meta APIs.
It also accepts non-scalar values that are serializable. An array is, as
are most objects. However, I see no reason to have custom code to handle
SinpleXML objects, or any other non-serializable elements. They cannot be
serialized for whichever reason the writer decided.
If you need to store such objects, I suggest you employ a custom
workaround.
I don't see what else we should do here.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18488#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list