|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-21 14:12 UTC] tony2001@php.net
[2006-11-29 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
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.