[development] Call time pass-by-reference for PHP 5.4

Arlin Sandbulte arlinsandbulte at gmail.com
Fri Oct 26 16:39:49 UTC 2012

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

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:
function foo(&$var){
$a = 0;

But, the following code IS NOT valid:
function foo($var){
$a = 0;

On Fri, Oct 26, 2012 at 10:45 AM, Earnie Boyd
<earnie at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20121026/586b7ce7/attachment.html 

More information about the development mailing list