cvs: php4 /ext/oci8 oci8.c

From: Date: Sat, 13 Apr 2002 12:10:04 +0000
Subject: cvs: php4 /ext/oci8 oci8.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11114@lists.php.net to get a copy of this message
thies Sat Apr 13 08:10:04 2002 EDT Modified files: /php4/ext/oci8 oci8.c Log: @- Mixing OCIPlogon and OCINLogon no longer leak Oracle-Sessions. (thies) Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.170 php4/ext/oci8/oci8.c:1.171 --- php4/ext/oci8/oci8.c:1.170 Mon Mar 18 16:01:29 2002 +++ php4/ext/oci8/oci8.c Sat Apr 13 08:10:03 2002 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci8.c,v 1.170 2002/03/18 21:01:29 mfischer Exp $ */ +/* $Id: oci8.c,v 1.171 2002/04/13 12:10:03 thies Exp $ */ /* TODO list: * @@ -631,7 +631,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "OCI8 Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.170 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.171 $"); #ifndef PHP_WIN32 php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION ); php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR ); @@ -2578,7 +2578,13 @@ 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);

« previous php.cvs (#11114) next »