Bug #7210 [NEW]: persistent connection problem
| From: | virals at meditab dot in | Date: | Mon, 27 Mar 2006 06:33:29 +0000 |
| Subject: | Bug #7210 [NEW]: persistent connection problem | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-4925@lists.php.net to get a copy of this message | ||
From: virals at meditab dot in
Operating system: Windows
Package version:
PHP version: 5.1.2
Package: Bug System
Bug Type: Bug
Bug description: persistent connection problem
Description:
------------
hi,
i am connecting the database through odbc
$dsn = array(
'phptype' => 'odbc',
'username' => 'dba',
'password' => 'root',
'hostspec' => 'localhost',
'database' => 'test',
);
$options = array(
'debug' => 2,
'portability' => DB_PORTABILITY_ALL,
'persistent' => true,
);
$db =& DB::connect($dsn, $options);
if (PEAR::isError($db)) {
die($db->getMessage());
}
the above code works fine to connect the database.
But mean time if server get restart.
$db =& DB::connect($dsn, $options); is not throughing error..becouse
server has termitted the client server...
so it should though the error message at connection time
whereas it is giving the error at $db->getAll($sql); function.
is that possible for connect method to check wheather server
has rejected our connection or not.
Please reply me....
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=7210&edit=1
--