summaryrefslogtreecommitdiff
path: root/ext/oci8
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2002-04-13 12:10:03 +0000
committerThies C. Arntzen <thies@php.net>2002-04-13 12:10:03 +0000
commit33a493cf82f478adee584300f5f6b986b39d78d4 (patch)
tree8552035664a4ada2bd2dfc8dc3dd7a2e55c4baee /ext/oci8
parent67292ee205e17db603827c02b2d26c07f9f4416c (diff)
downloadphp-git-33a493cf82f478adee584300f5f6b986b39d78d4.tar.gz
@- Mixing OCIPlogon and OCINLogon no longer leak Oracle-Sessions. (thies)
Diffstat (limited to 'ext/oci8')
-rw-r--r--ext/oci8/oci8.c8
1 files changed, 7 insertions, 1 deletions
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);