From: Thies C. Arntzen Date: Sat, 13 Apr 2002 12:10:03 +0000 (+0000) Subject: @- Mixing OCIPlogon and OCINLogon no longer leak Oracle-Sessions. (thies) X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~664 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33a493cf82f478adee584300f5f6b986b39d78d4;p=php @- Mixing OCIPlogon and OCINLogon no longer leak Oracle-Sessions. (thies) --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index baccacd562..45d15fecb4 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2578,7 +2578,13 @@ static void oci_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent,int exclu goto CLEANUP; } - persistent = server->persistent; /* if our server-context is not persistent we can't */ + if (exclusive) { + /* exlusive session can never be persistent!*/ + persistent = 0; + } else { + /* if our server-context is not persistent we can't */ + persistent = server->persistent; + } session = _oci_open_session(server,username,password,persistent,exclusive);