[wp-trac] [WordPress Trac] #13757: Passing functions as call by ref parameter should be avoided

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 21 20:58:43 UTC 2010


#13757: Passing functions as call by ref parameter should be avoided
------------------------------+---------------------------------------------
 Reporter:  TobiasBg          |       Owner:  westi    
     Type:  defect (bug)      |      Status:  new      
 Priority:  normal            |   Milestone:  3.1      
Component:  Warnings/Notices  |     Version:           
 Severity:  normal            |    Keywords:  has-patch
------------------------------+---------------------------------------------

Comment(by TobiasBg):

 Maybe we should not change the functions that are used for now (i.e. don't
 replace array_pop() with end()), but just use the temporary locale
 variable part of the suggested solution. After all the issue is raised by
 the call by reference in some versions of PHP and not the used functions.

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


More information about the wp-trac mailing list