From 07f84de680e2a3029a0e7d6e6aa118eae95d3ce8 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 23 Oct 2004 09:32:44 +0000 Subject: [PATCH] commit fixes by (segfaults under heavy load) --- ext/oci8/oci8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 936c221057..f9e19e297e 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1016,7 +1016,7 @@ static void _oci_conn_list_dtor(oci_connection *connection TSRMLS_DC) ); } - if (connection->session) { + if (connection->session && connection->session->exclusive) { /* close associated session when destructed */ zend_list_delete(connection->session->num); } @@ -2907,7 +2907,7 @@ static int _session_compare(void *a, void *b) oci_session *sess1 = (oci_session*) a; oci_session *sess2 = (oci_session*) b; - return sess1->num = sess2->num; + return sess1->num == sess2->num; } static void _oci_close_session(oci_session *session) -- 2.50.1