[wp-trac] [WordPress Trac] #20163: Call-time pass-by-reference has been removed in PHP (Fatal error in 5.4) or deprecated (Warning in 5.3)
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 5 22:57:57 UTC 2012
#20163: Call-time pass-by-reference has been removed in PHP (Fatal error in 5.4) or
deprecated (Warning in 5.3)
------------------------------+--------------------------
Reporter: emiluzelac | Owner: koopersmith
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.4
Component: Warnings/Notices | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch |
------------------------------+--------------------------
Changes (by kurtpayne):
* cc: kpayne@… (added)
* keywords: needs-patch => has-patch
Comment:
[[attachment:20163.patch]] Should be a very good start on removing call
time pass by reference. I've given the admin and front end a light
testing (hitting most pages and functions) and ensured that there are no
php syntax errors in any php files. This was a mostly scan, verified with
some automated grepping.
If you look on your own, be careful of `array(&$var);` as that's perfectly
valid. Changing a piece of code like this will break things.
{{{
do_action_ref_array( 'wp_default_styles', array(&$this) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20163#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list