[imp] IMP 2.2.6 problems
Brent J. Nordquist
bjn@horde.org
Wed, 25 Jul 2001 09:08:33 -0500 (CDT)
On Mon, 23 Jul 2001, Daniel Spratlen <spratlen@arches.uga.edu> wrote:
> Hi, I just downloaded the new rpm's for RH7 for imp 2.2.6 and horde
> 1.2.6. I use postgresql. I proformed my upgrade by getting the three
> rpm's that I needed, and then rpm -Uvh *.rpm. That all went fine, but
> now imp is broken. Here is what I get:
>
> Warning: 1 is not a valid PostgreSQL link resource in
> /var/www/horde-phplib/db_pgsql.inc on line 52
I've reproduced this here. Turns out this is not an RPM issue; it's
imp/lib/db.pgsql rev 1.1.2.4 from IMP 2.2.5; when I revert that change the
problem goes away.
Try making the following 1-byte change and see if it fixes it for you
also, and if so I'll commit it.
--- db.pgsql.orig Sat Feb 3 21:46:59 2001
+++ db.pgsql Wed Jul 25 08:55:24 2001
@@ -263,7 +263,7 @@
};
/* echo "dbconnectstring='$dbconnectstring'" ; /* for debugging */
- return (($db = pg_connect($dbconnectstring))) ;
+ return (($db = pg_pconnect($dbconnectstring))) ;
}
?>
--
Brent J. Nordquist <bjn@horde.org> N0BJN
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942