Call time pass-by-reference has been deprecated for a while now, and PHP before 5.4 throws a warning when it is used.
So, most code has already been updated to eliminate call time pass-by-references.

Note:
This ONLY applies to fuction calls.
It does NOT apply to function definition.  So, pass-by-reference CAN continue to be used in function defenitions.

Thus, the following code IS valid:
<?php
function foo(&$var){
  $var++;
}
$a = 0;
foo($a);
?>

But, the following code IS NOT valid:
<?php
function foo($var){
  $var++;
}
$a = 0;
foo(&$a);
?>



On Fri, Oct 26, 2012 at 10:45 AM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
What is going to be the best way to handle the removal of call time
pass-by-reference as noted at
http://www.php.net/manual/en/migration54.incompatible.php?

This affects a lot of code.  Based on http://drupal.org/node/1498574
D8
will not be ready for PHP 5.4 but some WAMP and LAMP are already
delivering it.  My query here though is more looking at preparing for
any new modules or converting older modules and getting them ready for
PHP 5.4.  How do others plan to handle this offensive change?

--
Earnie
-- https://sites.google.com/site/earnieboyd