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
 [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: Wed Apr 24 22:01:30 2024 UTC