[dev] Re: [cvs] commit: forwards/lib/Driver forwards.php
Jan Schneider
jan@horde.org
Mon, 7 Oct 2002 15:52:47 +0200
Zitat von Eric Rostetter <eric.rostetter@physics.utexas.edu>:
> > Modified files:
> > lib/Driver forwards.php
> > Log:
> > Fix call-by-reference.
> Doesn't this break the function? It desires to change the value
> globally,
> which I would have thought would mean it has to be passed in as a
> reference
> or declared as a global. So if we don't want the pass by reference,
> don't
> we at least need to make it a global?
The parameter is still passed by reference, but it is deprecated to pass by
reference at runtime. You instead should define the argument in the function
definition as being passed by reference, what I did.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft