[nycphp-talk] Pass by reference has been deprecated?
Daniel Kushner
nyphp at websapp.com
Thu May 1 23:43:09 EDT 2003
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