From:             michas61 at wp dot pl
Operating system: RED-HAT
PHP version:      5.2CVS-2007-11-19 (CVS)
PHP Bug Type:     *Database Functions
Bug description:  PDO

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 bug report at http://bugs.php.net/?id=43336&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43336&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43336&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43336&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43336&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43336&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43336&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43336&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43336&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43336&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43336&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43336&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43336&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43336&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43336&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43336&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43336&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43336&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43336&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43336&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43336&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43336&r=mysqlcfg

Reply via email to