is there way fix issue or need rewrite legacy code?
php fatal error: call-time pass-by-reference has been removed in ... on line 30
this happens everywhere variables passed functions references throughout code.
you should denoting call reference in function definition, not actual call. since php started showing deprecation errors in version 5.3, would idea rewrite code.
there no reference sign on function call - on function definitions. function definitions alone enough correctly pass argument reference. of php 5.3.0, warning saying "call-time pass-by-reference" deprecated when use
&
infoo(&$a);
.
for example, instead of using:
// wrong way! myfunc(&$arg); # deprecated pass-by-reference argument function myfunc($arg) { }
use:
// right way! myfunc($var); # pass-by-value argument function myfunc(&$arg) { }
Comments
Post a Comment