[wp-trac] [WordPress Trac] #21865: Audit call time pass by reference usage

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 10 22:02:17 UTC 2012


#21865: Audit call time pass by reference usage
----------------------------+-----------------------
 Reporter:  wonderboymusic  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  3.5
Component:  General         |    Version:
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------
 In PHP 4, it was necessary to use a reference to create a callback that
 points to the actual object, and not a copy of it. This is no longer the
 case.

 Also, I found more instances of {{{$var = &my_func();}}}. I have not
 touched any instance of {{{$var1 =&$var2;}}}. All unit tests pass (minus
 {{{Tests_Theme_WPTheme::test_wp_theme_uris_with_spaces}}} which always
 fails).

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


More information about the wp-trac mailing list