|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43336 pdo_oracle: $db = null does not trigger logoff
Submitted: 2007-11-19 14:50 UTC Modified: 2016-03-08 01:44 UTC
From: michas61 at wp dot pl Assigned: sixd (profile)
Status: No Feedback Package: PDO OCI
PHP Version: 5.2CVS-2007-11-19 (CVS) OS: Linux
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:
Bug Type:
From: michas61 at wp dot pl
New email:
PHP Version: OS:


 [2007-11-19 14:50 UTC] michas61 at wp dot pl
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_STRINGIFY_FETCHES, true);
    catch (PDOException $e) {
   	echo "Not connected: " . $e->getMessage();

... ....

$db = null;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-19 15:46 UTC]
Christopher, please take a look.
 [2009-04-25 14:51 UTC]
Please try using this CVS snapshot:
For Windows:

 [2009-05-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2016-03-08 01:44 UTC]
-Package: PDO related +Package: PDO OCI
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Feb 28 08:01:25 2021 UTC