|
Posted by ZeldorBlat on 04/17/07 12:52
On Apr 16, 8:16 pm, "Vince Morgan" <vin...@REMOVEoptusnet.com.au>
wrote:
> "ZeldorBlat" <zeldorb...@gmail.com> wrote in message
>
> news:1176739280.731307.163510@l77g2000hsb.googlegroups.com...
>
> > > | Where does PHP5 allow parameters by reference: in the function
> > definition,
> > > | in the function call, or in both?
>
> > > it's both isn't it...and that's been since php 3, hasn't it?
>
> > Warning: Call-time pass-by-reference has been deprecated .
> > If it's in both ;)
> > Vince
>
> No, not if you use it in both -- only if you use it when calling the
> function.
>
> Yep, that is certainly correct. And also incorrect.
> If you are silly enough to use it in both, similtaneously, you will also
> get the above warning. But to do that you would have to be, errr, me.
> I read the question like. When will a gearbox break, when it's in first
> gear, in reverse, or in both?
> Nothing wrong with the question, it's just a mild retardation that shows
> itself after bedtime :)
> Vince
My point was that you get the error not because you use it in both
places, but because you use it when calling the function. The former
includes the later.
Navigation:
[Reply to this message]
|