[wp-trac] [WordPress Trac] #11597: __destruct() is not designed to clean up circular references

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 28 01:27:59 UTC 2009


#11597: __destruct() is not designed to clean up circular references
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by hakre):

 Replying to [comment:2 nacin]:
 > Quoting [http://core.trac.wordpress.org/ticket/11518#comment:23
 miqrogroove]:
 > > Yes, many languages do not destruct dynamically-allocated memory, nor
 automatically call parent constructors and destructors of inherited
 classes.  It is standard practice to explicitly call constructors and
 destructors whenever needed in those situations.  The most complex OOP
 patterns even have an explicit disposal system to handle interdependency
 and synchronization issues.
 Then quote my answer to that as well nacin. I think that's not too hard
 for you, isn't it?

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


More information about the wp-trac mailing list