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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 26 = ?
Subscribe to this entry?

 
 [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 08:01:29 2024 UTC