[wp-trac] [WordPress Trac] #11780: Memory Leak in plugins_api
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 7 13:39:29 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
--------------------------+-------------------------------------------------
Comment(by hakre):
It's common in WP, isn't?
{{{
function &get_role( $role )
function &get_manifest()
function &get_categories( $args = '' )
function &get_category( $category, $output = OBJECT, $filter = 'raw' )
function &get_tags( $args = '' )
function &get_tag( $tag, $output = OBJECT, $filter = 'raw' )
function &get_comment(&$comment, $output = OBJECT)
function &separate_comments(&$comments)
function &get_translations_for_domain( $domain )
function &get_children($args = '', $output = OBJECT)
function &get_post(&$post, $output = OBJECT, $filter = 'raw')
function &get_page(&$page, $output = OBJECT, $filter = 'raw')
...
}}}
this list could be extended, to only name some. Please compare to those
functions, I think they do not do that just for fun.
From the tests/docs I know of there are no negative impacts in PHP5 using
PHP4-reference-styled code. PHP5 does not have any incompability changes
on that one, [http://www.php.net/manual/en/migration5.incompatible.php it
has others]. It was in the beginning of PHP5 (consumed more memory) but
from what I know that does not count any longer, we had run some tests
some time ago (2 years or so). If I should be false, in other tickets from
decisions have been made (stating this for correctness sake).
I asked for clarification by core developers in this ticket: #11663
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11780#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list