php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56918 persistent connection problem
Submitted: 2006-03-27 01:33 UTC Modified: 2006-03-27 02:19 UTC
From: virals at meditab dot in Assigned:
Status: Not a bug Package: PECL bug system (PECL)
PHP Version: 5.1.2 OS: Windows
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: virals at meditab dot in
New email:
PHP Version: OS:

 

 [2006-03-27 01:33 UTC] virals at meditab dot in
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....


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-27 02:19 UTC] wiesemann@php.net
This is a bug tracker, not a support forum. Please ask on the general mailing list (pear.php.net => "Support").
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC