#39569 [Opn->Fbk]: OCI_Close doesn't close the connection.
| From: | tony2001@php.net | Date: | Tue, 21 Nov 2006 14:12:19 +0000 |
| Subject: | #39569 [Opn->Fbk]: OCI_Close doesn't close the connection. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105253@lists.php.net to get a copy of this message | ||
ID: 39569
Updated by: tony2001@php.net
Reported By: mc_hades at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: OCI8 related
Operating System: HP-UX
PHP Version: 5.2.0
New Comment:
How exactly did you ensure that the connection still "hangs"? Please
show your phpinfo().
Previous Comments:
------------------------------------------------------------------------
[2006-11-21 10:14:33] mc_hades at yahoo dot com
Description:
------------
I want to explicitly close the connection, because the timeout on the
ORACLE server is huge and it cannot be modified.
OciLogOff does not close the connection. I tried using the "current
functions": oci_connect, oci_fetch_array, etc, but the connection still
hangs. I also tried oci_new_connect, with no luck.
Reproduce code:
---------------
$conn = OCILogon('*******', '*****', '******');
$query = "SELECT struct_name AS STR_NAME FROM STRUCTURES ";
$stid = OCIParse($conn, $query);
OCIExecute($stid);
while (OCIFetchInto($stid, $row,OCI_ASSOC))
{echo $row['STR_NAME'];
echo "<br>";};
OCIFreeStatement($stid);
OCILogOff($conn);
Expected result:
----------------
The connection being closed.
Actual result:
--------------
The connection hangs on the ORACLE server.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39569&edit=1