Comment 13 for bug 11617

Revision history for this message
In , Steve Langasek (vorlon) wrote : Re: Bug#288410: libapache2-mod-php4: Support for Postgresql seems to be missing

On Mon, Jan 03, 2005 at 08:51:53PM +0100, Hans Spaans wrote:
> >So try as Andreas say:
> >If so, is the line
> >"extension=pgsql.so" in your /etc/php4/apache2/php.ini?

> >try restart apache too. It woks for me.

> Yes its now in the file, it wasn't before and I was surprised. Pgsql
> worked before and with this config, and other modules like imap and
> mysql aren't also in the php.ini but do work. That was the point where I
> was misled.

> And yes I had restarted apache2, I even rebooted the machine as I
> normally do with the weekly upgrade of Sarge on that machine.

If the extensions are not listed in php.ini but you're able to use them,
this is only because your application uses the dl() function to load them
opportunistically. This is good practice.

If pgsql was not usable because it was not listed in php.ini, it is because
the application did not make opportunistic use of the extension but expected
it to be preloaded in the PHP config. This is standard practice.

Since reinstalling the package gave you the correct results, I think the
only possible bug here is #264064 (php4-pgsql installed before
libapache2-mod-php4 does not configure), which is not grave.

--
Steve Langasek
postmodern programmer