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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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 May 04 15:01:29 2024 UTC