ID:               43336
 Updated by:       [email protected]
 Reported By:      michas61 at wp dot pl
-Status:           Assigned
+Status:           Feedback
 Bug Type:         PDO related
 Operating System: Linux
 PHP Version:      5.2CVS-2007-11-19 (CVS)
 Assigned To:      sixd
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




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

[2007-11-19 15:46:09] [email protected]

Christopher, please take a look.

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

[2007-11-19 14:50:58] michas61 at wp dot pl

Description:
------------
I'm using PDO to connect to Oracle Database. Function "$conn = new
PDO(...)" connect to database and this is ok. When I use "$conn = null"
connection is close, but this variable doesn`t logoff user from
database. It looks like PDO is killing connection and at this moment
doesn`t trigger logoff in database. 


Reproduce code:
---------------
try {
        $db = new
PDO('oci:dbname='.base,login_to_database,pass_to_database);
        $db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
        $db->setAttribute(PDO::ATTR_CASE,PDO::CASE_LOWER);
        $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true);
    } 
    catch (PDOException $e) {
        echo "Not connected: " . $e->getMessage();
        exit;
    }

... ....

$db = null;



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


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

Reply via email to