[wp-trac] [WordPress Trac] #11518: Fatal error: Call to undefined method WP_Error::__destruct()
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 20 00:35:52 UTC 2009
#11518: Fatal error: Call to undefined method WP_Error::__destruct()
----------------------------+-----------------------------------------------
Reporter: westi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9.1
Component: Administration | Version: 2.9
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Comment(by hakre):
__destruct() is a so called magic function that is intended to be called
by the php interpreter by destroying objects (garbage collector). A class
itself should never relay upon it nor should it be manually called.
The code touched by this ticket put that to my attention. I already wrote
about those mostly unnecessary __destruct() routines in some other ticket
(#10861), will check now if this applies to {{{$rss->__destruct();}}} as
well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11518#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list