[wp-trac] [WordPress Trac] #11597: __destruct() is not designed to clean up circular references
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 27 11:18:37 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 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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11597#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list