<div>Call time pass-by-reference has been deprecated for a while now, and PHP before 5.4 throws a warning when it is used.</div><div>So, most code has already been updated to eliminate call time pass-by-references.</div><div>
<br></div><div>Note:</div><div>This ONLY applies to fuction calls.</div><div>It does NOT apply to function definition.  So, pass-by-reference CAN continue to be used in function defenitions.</div><div><br></div><div>Thus, the following code IS valid:</div>
<div>&lt;?php</div><div>function foo(&amp;$var){</div><div>  $var++;</div><div>}</div><div>$a = 0;</div><div>foo($a);</div><div>?&gt;</div><div><br></div><div>But, the following code IS NOT valid:</div><div>&lt;?php</div>
<div>function foo($var){</div><div>  $var++;</div><div>}</div><div>$a = 0;</div><div>foo(&amp;$a);</div><div>?&gt;</div><div><br></div><div><br></div><div><br></div><div><div class="gmail_quote">On Fri, Oct 26, 2012 at 10:45 AM, Earnie Boyd <span dir="ltr">&lt;<a href="mailto:earnie@users.sourceforge.net" target="_blank">earnie@users.sourceforge.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What is going to be the best way to handle the removal of call time<br>
pass-by-reference as noted at<br>
<a href="http://www.php.net/manual/en/migration54.incompatible.php" target="_blank">http://www.php.net/manual/en/migration54.incompatible.php</a>?<br>
<br>
This affects a lot of code.  Based on <a href="http://drupal.org/node/1498574
D8" target="_blank">http://drupal.org/node/1498574<br>
D8</a> will not be ready for PHP 5.4 but some WAMP and LAMP are already<br>
delivering it.  My query here though is more looking at preparing for<br>
any new modules or converting older modules and getting them ready for<br>
PHP 5.4.  How do others plan to handle this offensive change?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Earnie<br>
-- <a href="https://sites.google.com/site/earnieboyd" target="_blank">https://sites.google.com/site/earnieboyd</a><br>
</font></span></blockquote></div><br></div>