PHP 5.8 -> Postgres on Win2003

PHP 5.8 -> Postgres on Win2003

am 21.01.2009 12:53:01 von Rod

Hi all,

Is anyone successfully using PHP 5.8 to talk to PostgreSQL on Windows
Server 2003?

I tried upgrading today from 5.1.4 to 5.8 - I had avoided upgrading for
a while due to a known bug in the PG extension - but it seems that
either the extension is still buggy or I'm doing something silly,
because any call to a pg_* function results in "Call to undefined
function" messages in the log.

I've rolled back to 5.1.4 for the moment, but obviously this isn't
ideal...any input welcome!

Thanks,

Ray.

------------------------------------------------------------ ------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------ ------

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

PHP 5.2.8, was: PHP 5.8 -> Postgres on Win2003

am 21.01.2009 13:05:19 von Rod

On 21/01/2009 11:53, Raymond O'Donnell wrote:
> Is anyone successfully using PHP 5.8 to talk to PostgreSQL on Windows
> Server 2003?

Correction - that should of course be PHP 5.2.8 :-)

Ray.


------------------------------------------------------------ ------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------ ------

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: PHP 5.8 -> Postgres on Win2003

am 21.01.2009 22:45:59 von dmagick

Raymond O'Donnell wrote:
> Hi all,
>
> Is anyone successfully using PHP 5.8 to talk to PostgreSQL on Windows
> Server 2003?
>
> I tried upgrading today from 5.1.4 to 5.8 - I had avoided upgrading for
> a while due to a known bug in the PG extension - but it seems that
> either the extension is still buggy or I'm doing something silly,
> because any call to a pg_* function results in "Call to undefined
> function" messages in the log.

You haven't got the pgsql extension loaded. You'll need to copy your
changes from the 5.1.4 php.ini file to the 5.2.8 php.ini (and restart
the webserver if applicable).

--
Postgresql & php tutorials
http://www.designmagick.com/


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: PHP 5.8 -> Postgres on Win2003

am 21.01.2009 23:59:32 von Rod

On 21/01/2009 21:45, Chris wrote:

> You haven't got the pgsql extension loaded. You'll need to copy your
> changes from the 5.1.4 php.ini file to the 5.2.8 php.ini (and restart
> the webserver if applicable).

Chris, thanks for the reply. That was the first thing I thought of... I
did in fact copy the entire php.ini file from the old installation to
the new one, and double-checked that the line "extension=php_pgsql.ini"
was uncommented.

The new installation is also in the same place as the old one, so the
registry key to tell PHP where to find php.ini didn't have to be changed.

I'm really puzzled by this one.

Ray.


------------------------------------------------------------ ------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------ ------

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Re: PHP 5.8 -> Postgres on Win2003

am 22.01.2009 00:11:15 von dmagick

Raymond O'Donnell wrote:
> On 21/01/2009 21:45, Chris wrote:
>
>> You haven't got the pgsql extension loaded. You'll need to copy your
>> changes from the 5.1.4 php.ini file to the 5.2.8 php.ini (and restart
>> the webserver if applicable).
>
> Chris, thanks for the reply. That was the first thing I thought of... I
> did in fact copy the entire php.ini file from the old installation to
> the new one, and double-checked that the line "extension=php_pgsql.ini"
> was uncommented.

An extension will either be a .so or .dll won't it? Or will this syntax
include an external file ? (I've never seen it used so I don't know what
it does). If it's an extra file, did you copy it? :)

> The new installation is also in the same place as the old one, so the
> registry key to tell PHP where to find php.ini didn't have to be changed.
>
> I'm really puzzled by this one.

Anything in the logs about being unable to locate extensions?

--
Postgresql & php tutorials
http://www.designmagick.com/


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php