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

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

# jd(at)commandprompt(dot)com / 2005-08-11 15:45:18 -0700:
> Roman Neuhauser wrote:
> ># cool_screen_name90001(at)yahoo(dot)com / 2005-08-11 13:23:52 -0700:
> >
> >>I'm getting this warning in pgsql's log:
> >>
> >>LOG: plphp: PHP Warning: Call-time pass-by-reference
> >>has been deprecated - argument passed by value; If
> >>you would like to pass it by reference, modify the
> >>declaration of [runtime function name](). If you
> >>would like to enable call-time pass-by-reference, you
> >>can set allow_call_time_pass_reference to true in your
> >>INI file. However, future versions may not support
> >>this any longer. in plphp trigger call on line 1
> >>
> >>Is there anything I can do about it?
> >
> >
> > Yes.
> >
>
> Actually the below is incorrect. He should be visiting
> plphp.commandprompt.com and signing up for the list there.

Why? What does the generic warning emitted by PHP 4 (no need to get
PostgreSQL into the mix) since forever on code like this:

function foo($arg) {} /* foo is declared to take $arg by value */
foo(&$var); /* $var is passed by reference */

have to do with PL/PHP?

> > It's completely off topic here, however. You'll find more help in
> > the PHP manual and/or php-general(at)lists(dot)php(dot)net (you can subscribe
> > from http://www.php.net/)

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

Browse pgsql-general by date

  From Date Subject
Next Message Akash Garg 2005-08-11 23:17:09 Long running update
Previous Message Joshua D. Drake 2005-08-11 22:45:18 Re: plphp: PHP Warning: Call-time pass-by-reference has