#40681 [NEW]: Unable to close persistent connection
From: frmi at freemail dot hu
Operating system: linux
PHP version: 5.2.1
PHP Bug Type: *Database Functions
Bug description: Unable to close persistent connection
Description:
------------
I must use persistent oci8 connection to oracle, because of high load.
In some cases I want to close the connection and reconnect.
Is it possible somehow?
The oci_close seems not to close the connection.
I understand that the persistent connection was implemented to stay for
reuse, but what to do, when it must be closed?
Reproduce code:
---------------
$conn=OCI_connect($user,$pwd,$db);
...
oci_close($conn);
$conn=OCI_connect($user,$pwd,$db);
still uses the old oracle session
Expected result:
----------------
Should disconnect from oracle db, and create a new connection.
--
Edit bug report at http://bugs.php.net/?id=40681&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40681&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40681&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40681&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40681&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40681&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40681&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40681&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40681&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40681&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40681&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40681&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40681&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40681&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40681&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40681&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40681&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40681&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40681&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40681&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40681&r=mysqlcfg
Thread (9 messages)
- frmi at freemail dot hu