Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# cool_screen_name90001@xxxxxxxxx / 2005-08-11 17:36:49 -0700:
> --- Roman Neuhauser <neuhauser@xxxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux