Bug #7210 [Opn->Bgs]: persistent connection problem

From: Date: Mon, 27 Mar 2006 07:19:06 +0000
Subject: Bug #7210 [Opn->Bgs]: persistent connection problem
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-4926@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=7210&edit=1 ID: 7210 Updated by: wiesemann@php.net Reported By: virals at meditab dot in -Status: Open +Status: Bogus Id: 7210 Type: Bug Package: Bug System Operating System: Windows PHP Version: 5.1.2 New Comment: This is a bug tracker, not a support forum. Please ask on the general mailing list (pear.php.net => "Support"). Previous Comments: ------------------------------------------------------------------------ [2006-03-27 01:33:28] 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.... ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=7210&edit=1

« previous php.pear.webmaster (#4926) next »