diff options
author | Antony Dovgal <tony2001@php.net> | 2004-10-23 09:32:44 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2004-10-23 09:32:44 +0000 |
commit | 07f84de680e2a3029a0e7d6e6aa118eae95d3ce8 (patch) | |
tree | d5b488f6c5f1def4ee32ce68d4440c33b178683d | |
parent | f4be622502d8a0682784a67b96e58074fe4dedd8 (diff) | |
download | php-git-07f84de680e2a3029a0e7d6e6aa118eae95d3ce8.tar.gz |
commit fixes by <mikael dot suvi at trigger dot ee>
(segfaults under heavy load)
-rw-r--r-- | ext/oci8/oci8.c | 4 |
1 files 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) |