[wp-trac] [WordPress Trac] #11663: Return by Referenced missed - PHP4 Compat
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 7 13:38:12 UTC 2010
#11663: Return by Referenced missed - PHP4 Compat
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version: 2.9
Severity: normal | Keywords: dev-feedback 2nd-opinion
--------------------------+-------------------------------------------------
Comment(by dd32):
can you supply some references for why References should be returned for
PHP4? As far as i'm aware, for simple objects there are no real issues..
Objects are returned in a lot of locations, for example, WP_Error. There
are only a few specific locations where references are returned
(Users/capabilities/Roles) where they are needed due to the object being
modified by the calling functions. Most other objects in WordPress
represent something and do not change, as far as i'm aware of, cloning
such objects shouldnt cause an issue? The local object to the function
should be cleaned up by the builtin garbage collection when the function
goes out of scope.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11663#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list