[wp-trac] [WordPress Trac] #11780: Memory Leak in plugins_api

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 19:49:41 UTC 2010


#11780: Memory Leak in plugins_api
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:  3.0        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 plugins_api() in plugin-install.php does not return by reference nor does
 it calls filters sothat they pass / return by reference.

 This violates against the PHP 4 compability guidelines in WP core. The
 effect ist, that clones of the objects are created which will leak memory.

 Related filters: 'plugins_api_args', 'plugins_api', 'plugins_api_result'.

 (stumbeled over this while reviewing #10319)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11780>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list