[wp-trac] [WordPress Trac] #21650: replace serialize() with print_r() in stats() function in wp-includes/cache.php
WordPress Trac
noreply at wordpress.org
Tue Aug 13 14:52:10 UTC 2013
#21650: replace serialize() with print_r() in stats() function in wp-
includes/cache.php
--------------------------+--------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: Cache | Version: 3.4.1
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by nacin):
How is a SimpleXMLElement object making its way into object cache? It
should not be allowed in postmeta, options, etc., as those all serialize
(even going into cache). I imagine it would only occur when you are using
your own cache bucket?
Should we do a try/catch and fall back to print_r()? I'm fine with moving
over to print_r() but it's probably even less of a decent representation
of the approximate size in cache.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21650#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list