[wp-trac] [WordPress Trac] #11518: Fatal error: Call to undefined method WP_Error::__destruct()

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 24 11:51:53 UTC 2009


#11518: Fatal error: Call to undefined method WP_Error::__destruct()
----------------------------+-----------------------------------------------
 Reporter:  westi           |        Owner:        
     Type:  defect (bug)    |       Status:  closed
 Priority:  normal          |    Milestone:  2.9.1 
Component:  Administration  |      Version:  2.9   
 Severity:  normal          |   Resolution:  fixed 
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by hakre):

 Replying to [comment:13 miqrogroove]:
 > Replying to [comment:11 hakre]:
 > > There is no need at all to manually execute ${{{rss->__desctruct();}}}
 >
 > If the object has self-referencing members, as indicated in class
 SimplePie, then PHP4 will not automatically destroy it when it falls out
 of scope.  I believe that is the purpose of those calls.

 Yes, there was once a bug in the garbage collector in PHP, you're right.
 But it's a fault in class SimplePie to name their own clean-up function
 __destruct() because __destruct() is a magic to be called by the garbage
 collector. I think that should be patched and the function renamed when
 done properly.

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


More information about the wp-trac mailing list