tony2001 Tue Sep 28 12:59:10 2004 EDT
Modified files:
/php-src/ext/oci8 oci8.c
Log:
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
http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.259&r2=1.260&ty=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.259 php-src/ext/oci8/oci8.c:1.260
--- php-src/ext/oci8/oci8.c:1.259 Mon Jul 19 03:35:41 2004
+++ php-src/ext/oci8/oci8.c Tue Sep 28 12:59:10 2004
@@ -22,7 +22,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.259 2004/07/19 07:35:41 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.260 2004/09/28 16:59:10 tony2001 Exp $ */
/* TODO list:
*
@@ -786,7 +786,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "OCI8 Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.259 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.260 $");
sprintf(buf, "%ld", num_persistent);
php_info_print_table_row(2, "Active Persistent Links", buf);
@@ -3009,6 +3009,15 @@
}
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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php