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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 05:03:37 2021 UTC