ID:               42075
 Updated by:       [EMAIL PROTECTED]
 Reported By:      romande at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         PDO related
 Operating System: linux (2.4.21-49.EL)
 PHP Version:      5.2.3
 Assigned To:      sixd


Previous Comments:
------------------------------------------------------------------------

[2007-07-23 06:57:36] romande at gmail dot com

Description:
------------
pdo_oci crash when trying to connect to db with bad instance name/or
user name/ or password, or db is down.



Reproduce code:
---------------
make $db to point to not existing db instance/to db which is down

include("config.inc");
    try{
      $this->conn = new PDO($db, $db_username,$db_password, 
                            array(PDO::ATTR_PERSISTENT => true));
    }catch (PDOException $e)
    {
        include("config.inc");
                $logger =  &Log::singleton('file', $file, 'DBManager.php', 
$conf,
$logLevel);
                $logger->log("Failed connecting to DB: ".$e->getMessage(),
PEAR_LOG_ERR);
        //      $logger->log("DB error. Continuing without DB.", PEAR_LOG_INFO);
    }

Expected result:
----------------
It's expected that "catch" statement will catch the exception

Actual result:
--------------
script crashes with message in apache log:

*** glibc detected *** free(): invalid pointer: 0xb71e6ec4 ***
[Mon Jul 23 09:08:17 2007] [notice] child pid 7065 exit signal Aborted
(6)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42075&edit=1

Reply via email to