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

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: Roman Neuhauser <neuhauser(at)sigpipe(dot)cz>
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:14:38
Message-ID: 20050812011438.49323.qmail@web52907.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


--- Roman Neuhauser <neuhauser(at)sigpipe(dot)cz> wrote:

> # 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.

Doh! I fixed it but I'm still getting the same
warnings in the log. I'd guess maybe it's something
plphp is doing on its own with references, but I
should probably play around with some more plphp
functions and see if they generate the same warnings.
Anyhow, thanks for the help.

CSN

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2005-08-12 04:00:08 Re: Long running update
Previous Message Roman Neuhauser 2005-08-12 01:02:31 Re: plphp: PHP Warning: Call-time pass-by-reference has been deprecated