From: Matt P. <ph...@co...> - 2001-01-31 05:07:23
|
Pass by reference isn't the problem, it's where we do it. We need to put the '&' in the function header, not when we call the function. PHP won't complain then. -Matt On Tue, Jan 30, 2001 at 01:05:29PM -0800, Tyler Akins wrote: > Update of /cvsroot/squirrelmail/squirrelmail/functions > In directory usw-pr-cvs1:/tmp/cvs-serv23867 > > Modified Files: > plugin.php > Log Message: > Removed pass-by-reference. I think this might break attachment_common. > > > Index: plugin.php > =================================================================== > RCS file: /cvsroot/squirrelmail/squirrelmail/functions/plugin.php,v > retrieving revision 1.5 > retrieving revision 1.6 > diff -u -w -r1.5 -r1.6 > --- plugin.php 2001/01/30 17:22:38 1.5 > +++ plugin.php 2001/01/30 21:05:27 1.6 > @@ -37,7 +37,7 @@ > foreach ($squirrelmail_plugin_hooks[$name] as $id => $function) { > // Add something to set correct gettext domain for plugin > if (function_exists($function)) { > - $function(&$Data); > + $function($Data); > } > } > } > > -- Matt Phillips System Administrator www.commnav.com |