php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6525 Connection problem
Submitted: 2000-09-04 05:45 UTC Modified: 2001-02-13 11:57 UTC
From: xicht at domazlice-net dot cz Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.2 OS: Linux 2.2 (RH 6.x)
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xicht at domazlice-net dot cz
New email:
PHP Version: OS:

 

 [2000-09-04 05:45 UTC] xicht at domazlice-net dot cz
I've a script running without problems under 4.0.0, using 4.0.x (x > 0) results in the same problem. The connection is established, but when passing it's descriptor as an argument, to any other pgsql function, it warns, that it's no pg connection identifier. The script could look like this:
$db = db_connect($db_server_name, $db_server_port, $db_name,                  $db_user, $db_password);
if (!$db) {
  exit();
}
// next line produces the warning
$res = db_query($db, "select * from table");

Called funcions are defined in http://wp-klenci.domazlice-net.cz/dp/php/lib/1st_level/pgsql.phps as a simple wrapper to pg functions.

Ondrej Svetlik

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-13 11:57 UTC] thies@php.net
believed to be fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC