Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated

From: Roman Neuhauser <neuhauser(at)sigpipe(dot)cz>
To: CSN <cool_screen_name90001(at)yahoo(dot)com>
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated
Date: 2005-08-12 01:02:31
Message-ID: 20050812010231.GB24601@isis.sigpipe.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

# cool_screen_name90001(at)yahoo(dot)com / 2005-08-11 17:36:49 -0700:
> --- Roman Neuhauser <neuhauser(at)sigpipe(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CSN 2005-08-12 01:14:38 Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated
Previous Message Joshua D. Drake 2005-08-12 00:41:56 Re: plphp: PHP Warning: Call-time pass-by-reference has