]> granicus.if.org Git - php/commitdiff
@- Mixing OCIPlogon and OCINLogon no longer leak Oracle-Sessions. (thies)
authorThies C. Arntzen <thies@php.net>
Sat, 13 Apr 2002 12:10:03 +0000 (12:10 +0000)
committerThies C. Arntzen <thies@php.net>
Sat, 13 Apr 2002 12:10:03 +0000 (12:10 +0000)
ext/oci8/oci8.c

index baccacd562e179bfc2b00a49baa68f0a7fab98a5..45d15fecb47ed6cd53b44942cdb94f54e93e8067 100644 (file)
@@ -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);