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
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:
3 + 45 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 04:01:27 2024 UTC