]> granicus.if.org Git - php/commitdiff
MFH: fix bug #29652
authorAntony Dovgal <tony2001@php.net>
Tue, 28 Sep 2004 17:28:27 +0000 (17:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 28 Sep 2004 17:28:27 +0000 (17:28 +0000)
ext/oci8/oci8.c

index bded0a9567249d283556778b78f193d1e52b82f2..c74830a1de45c7222c999c9d3cde8c9277a06ac9 100644 (file)
@@ -2467,6 +2467,13 @@ _oci_close_session(oci_session *session)
                                        (ub4) OCI_HTYPE_SESSION));
        }
 
+#ifdef HAVE_OCI_9_2
+       /* free environment handle (and fix bug #29652 with growing .msb FD number under weirdie Solarises) */
+       CALL_OCI(OCIHandleFree(
+                               (dvoid *) session->pEnv, 
+                               OCI_HTYPE_ENV));
+#endif
+       
        hashed_details = session->hashed_details;
 
        if (! OCI(shutdown)) {