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

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 15 15:26:54 UTC 2010


#11597: __destruct() is not designed to clean up circular references
--------------------------+-------------------------------------------------
 Reporter:  hakre         |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:  2.9    
 Severity:  normal        |   Resolution:  invalid
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by miqrogroove):

  * status:  new => closed
  * resolution:  => invalid
  * milestone:  3.0 =>


Comment:

 Cross-posting from #11518 :

 I believe hakre's argument is based on a misinterpretation of the docs.
 What the PHP docs say literally is not to define function names beginning
 with {{{__}}} unless you want the magic behavior for that function. I've
 never seen anything that says you can't or shouldn't call on a magic
 function.

 This ticket seems to exist for the sake of fixing something that isn't
 broken, and I think it's invalid.

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


More information about the wp-trac mailing list