[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 13:02:43 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 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/11518#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list