|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-19 15:46 UTC] johannes@php.net
[2009-04-25 14:51 UTC] jani@php.net
[2009-05-03 01:00 UTC] php-bugs at lists dot php dot net
[2016-03-08 01:44 UTC] sixd@php.net
-Package: PDO related
+Package: PDO OCI
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 13:00:01 2025 UTC |
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;