summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2004-09-28 16:59:10 +0000
committerAntony Dovgal <tony2001@php.net>2004-09-28 16:59:10 +0000
commit454b9659c5ace76b5cec6be34cb6a71747b13535 (patch)
tree8d4f4add1e328e504c51a5460b64a14252465739
parent183126535c43e7babdad5abd6c7072ed121f10a7 (diff)
downloadphp-git-454b9659c5ace76b5cec6be34cb6a71747b13535.tar.gz
fix bug #29652 (number of FD to ocius.msb is growing)
many thanks to Sergei V. Rozinov <S dot Rozinov at sibron dot ru> for testing
-rw-r--r--ext/oci8/oci8.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 43f3fbcebf..3c6e4d3c54 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -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);
}