Re: php 4.2 postgresql 7.3 help

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Nick Gazaloff <nick(at)sbin(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: php 4.2 postgresql 7.3 help
Date: 2003-02-02 21:41:07
Message-ID: 1044222066.32731.530.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 2003-02-02 at 21:15, Nick Gazaloff wrote:
> > You'll need to recompile PHP against the 7.3 headers and libraries.
>
> No, it's possible to create a link like this:
>
> cd $PGHOME/lib
> ln -s libpq.so.3 libpq.so.2
> ldconfig

It's possible, but it's a horrible kludge. The API has changed, so the
library has a different soname. That is deliberate; a program that has
been built with one version of the library will not necessarily work
with a different version; you could cause segfaults or other unexpected
results.

The proper solution is to update the PHP program or to install an older
version of the library - you can extract one from a binary distribution
of 7.2.x, or build 7.2.4 from source.

Two different versions of the library can coexist; the newer one should
be linked to libpq.so, for compiling new programs.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Love not the world, neither the things that are in the
world. If any man love the world, the love of the
Father is not in him...And the world passeth away, and
the lust thereof; but he that doeth the will of God
abideth for ever." I John 2:15,17

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2003-02-02 21:48:51 Query plan question, and a memory leak
Previous Message Nick Gazaloff 2003-02-02 21:15:43 Re: php 4.2 postgresql 7.3 help