Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated - Mailing list pgsql-general

From Roman Neuhauser
Subject Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated
Date
Msg-id 20050812010231.GB24601@isis.sigpipe.cz
Whole thread Raw
In response to Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated  (CSN <cool_screen_name90001@yahoo.com>)
Responses Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated  (CSN <cool_screen_name90001@yahoo.com>)
List pgsql-general
# cool_screen_name90001@yahoo.com / 2005-08-11 17:36:49 -0700:
> --- Roman Neuhauser <neuhauser@sigpipe.cz> wrote:
> >     Can you post the code that triggers the warning?
>
> Sure-
>
>
> CREATE or REPLACE FUNCTION email_activated_member ()
> RETURNS trigger AS $$
>
> $new=$_TD['new'];
> $old=$_TD['old'];
>
> if(($_TD['event']=='INSERT' and $new['active']='t') or

    You are assigning to $new['active'] instead of the
    probably wanted comparison.

    I don't see any byref arguments, and don't know how to help further.

--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: plphp: PHP Warning: Call-time pass-by-reference has
Next
From: CSN
Date:
Subject: Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated