php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michas61 at wp dot pl
New email:
PHP Version: OS:

 

 [2007-11-19 14:50 UTC] 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;


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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

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


 [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] sixd@php.net
-Package: PDO related +Package: PDO OCI
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 20:01:30 2024 UTC