Re: Postgresql problems
| From: | Jouni Ahto | Date: | Fri, 25 Aug 2000 08:32:51 +0000 |
| Subject: | Re: Postgresql problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13627@lists.php.net to get a copy of this message | ||
On Fri, 25 Aug 2000, Przem Kowalczyk wrote:
> Hi
>
> I reported a few days ago problems with connecting with postgres. I thought
> they ware caused by unstable postgres version, but now I've instaled
> postgres 7.0.2 and the latest cvs version of php (200008242345).
> Unfortunetlly the same error occur:
> Warning: Supplied argument is not a valid PostgreSQL link resource in
> /www/virtual/site/common/pg_interface.php on line 31
>
> So I've downgraded php to version 4.0.0 and ....
> no problems with connecting.
>
> I've learned that there should by at least one line says what has gone
> wrong, but there is none :-(
> It seams that pg-link identifier stays (int)0
>
> I've also tried a few other snapshots of php, but nothing has changed :-(
>
> Is it a real bug, or am I doing something wrong?
My first guess is that you are doing something you shouldn't originally
have done, and you are now getting caught with it. PostgreSQL module
switched to use the new PHP API and resources between 4.0.0 and 4.0.1. If
you can show lines 1-31 of the file that gives you problems, it would be
possible to tell what the problem is.
-- Jouni Ahto