|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1164 Unable to connect to PostgreSQL, unsupported protocol
Submitted: 1999-02-19 12:07 UTC Modified: 1999-02-20 12:49 UTC
From: B dot Ogryczak at students dot mimuw dot edu dot pl Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 3.0.5 OS: Linux (RH 5.2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: B dot Ogryczak at students dot mimuw dot edu dot pl
New email:
PHP Version: OS:


 [1999-02-19 12:07 UTC] B dot Ogryczak at students dot mimuw dot edu dot pl
Since version 6.4.x PostgreSQL introduced new 
frontend/backend protocol (v 2.0), even tho I
recompiled PHP3 with the new libpg it doesn't
support this protocol. I get error:

Unable to connect to PostgreSQL server,
Unsupported frontend protocol in ...

I'm running Linux, RH 5.2 with PostgreSQL 6.4.2
PHP 3.0.5.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-20 12:49 UTC] eschmid
It's not a PHP problem. Can you connect throu the psql-monitor? If you can, 
you should be able to connect from PHP as well.
 [2010-11-01 12:07 UTC] lakshmi at nace dot co dot in
i couldnt able to connect to postgresql database, when i am using pg_connect it is simply throwing an error as undefined function pg_connect()
 [2010-11-01 12:13 UTC] lakshmi at nace dot co dot in

  Can anyone tell me what would be the mistake in below mentioned program,
when I execute this program simply it is throwing an error as : Call to undefined function pg_connect(),I can able to connect from psql separately
but while trying to connect it from php it is throwing error.

$database=pg_connect("host=localhost dbname=test user=postgres");
    die("Could not connect -> " .pg_last_error(). pg_errormessage($database));
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Jun 04 11:03:40 2023 UTC