NYCPHP Meetup

NYPHP.org

[nycphp-talk] Pass by reference has been deprecated?

Pinyo Bhulipongsanon pinyo at nyc.rr.com
Fri May 2 06:01:06 EDT 2003


Thank you Daniel.  This could be the problem.  I will ask him to try and
remove & from all the function calls.

Pinyo
----- Original Message ----- 
From: "Daniel Kushner" <nyphp at websapp.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Thursday, May 01, 2003 11:38 PM
Subject: RE: [nycphp-talk] Pass by reference has been deprecated?


> Hi Pinyo,
>
> You would want to have your '&' in the function definition and not the
> function call.
> Example:
> function foo(&$var) {
>     ++$var;
> }
> $bar=1;
> foo ($bar);
>
> ($bar is now 2)
>
>
> --Daniel
>
>
>
>
>
> > -----Original Message-----
> > From: Pinyo Bhulipongsanon [mailto:pinyo at nyc.rr.com]
> > Sent: Thursday, May 01, 2003 10:58 PM
> > To: NYPHP Talk
> > Subject: [nycphp-talk] Pass by reference has been deprecated?
> >
> >
> > Hello,
> >
> > I need your expert help please. Can someone tell me more information
about
> > this warning?  If the pass-by-reference is going away, then how
> > do I change
> > the value of multiple variables through a function?
> >
> > Thank you so much for your help.
> >
> > Pinyo
> >
> > Warning: Call-time pass-by-reference has been deprecated - argument
passed
> > by value; If you would like to pass it by reference, modify the
> > declaration
> > of [runtime function name](). If you would like to enable call-time
> > pass-by-reference, you can set allow_call_time_pass_reference to true in
> > your INI file. However, future versions may not support this any
> > longer. in
> > /usr/www/users/markzill/marktaw/commenter/commenter.php on line 22
> >
> >
> >
> >
> >
>
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>




More information about the talk mailing list