[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-users] pass-by-reference warning
From: |
Chris Weiss |
Subject: |
Re: [Phpgroupware-users] pass-by-reference warning |
Date: |
Fri, 29 Mar 2002 14:05:14 +0000 |
I've enabled it in my ini so I don't get that message, but it's rather easy to
fix. In any function that needs a pass by reference, an "&" needs placed in
front
of the variables in the function that need it.
e.g.:
function AddOne(&$x)
{
$x++;
}
$a = 1;
AddOne($a);
//$a now = 2
Adv. Systems Design (address@hidden) wrote*:
>
>"Warning: Call-time pass-by-reference has been
>deprecated..."
>
>I am sure this is a common problem...anybody has any
>ideas how to fix...its on a hosted site so I can't
>exactly go messing with php.ini...
>
>Thanks
>
>Luis
>
>=====
>----------------------------------------------------
>Make it idiot-proof and someone will make a better idiot.
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Greetings - send holiday greetings for Easter, Passover
>http://greetings.yahoo.com/
>
>_______________________________________________
>Phpgroupware-users mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-users
>