]> granicus.if.org Git - php/commitdiff
fix bug #29652 (number of FD to ocius.msb is growing)
authorAntony Dovgal <tony2001@php.net>
Tue, 28 Sep 2004 16:59:10 +0000 (16:59 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 28 Sep 2004 16:59:10 +0000 (16:59 +0000)
many thanks to Sergei V. Rozinov <S dot Rozinov at sibron dot ru> for testing

ext/oci8/oci8.c

index 43f3fbcebf3c1bfd12436583c49386daecf49c1b..3c6e4d3c547a4294ac88d0c958948f82f79d0c19 100644 (file)
@@ -3009,6 +3009,15 @@ static void _oci_close_session(oci_session *session)
                }
        mutex_unlock(mx_lock);
 
+#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
        if (session->exclusive) {
                efree(session);
        }