PHP 4.0 Bug #6525 Updated: Connection problem
| From: | thies@php.net | Date: | Tue, 13 Feb 2001 16:57:55 +0000 |
| Subject: | PHP 4.0 Bug #6525 Updated: Connection problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46487@lists.php.net to get a copy of this message | ||
ID: 6525
Updated by: thies
Reported By: xicht@domazlice-net.cz
Old-Status: Open
Status: Closed
Bug Type: PostgreSQL related
Assigned To:
Comments:
believed to be fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2000-09-04 05:45:11] xicht@domazlice-net.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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6525&edit=2