#18661 [Opn->Ver]: oci_logoff does not work

From: Date: Wed, 31 Jul 2002 22:05:10 +0000
Subject: #18661 [Opn->Ver]: oci_logoff does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15719@lists.php.net to get a copy of this message
ID: 18661 Updated by: sniper@php.net Reported By: nohn@php.net -Status: Open +Status: Verified Bug Type: OCI8 related Operating System: Compaq Tru64 PHP Version: 4.2.0 New Comment: From ext/oci8.c: (in the ocilogoff part) "this function does nothing any more. server-connections get automagiclly closed on request-end. connection handles will 'dissappear' as soon as they are no longer referenced. as this module makes heavy use of zends reference-counting mechanism this is the desired behavior. it has always been a bad idea to close a connection that has outstanding transactions. this way we have a nice-clean approach. (thies@thieso.net 20000110)" Mainly documentation problem..maybe the function could be removed altogether as it's dummy one anyway?? Previous Comments: ------------------------------------------------------------------------ [2002-07-31 05:47:53] nohn@php.net $oci8_conn = ocilogon($oci8_user, $oci8_pass, $oci8_sid); echo("Conn after logon: "); var_dump($oci8_conn); if (ocilogoff($oci8_conn)) { $result = 1; } else { $result = 0; } echo("\nConn after logoff: "); var_dump($oci8_conn); echo("\n Result: $result"); Results in: Conn after logon: resource(3) of type (oci8 connection) Conn after logoff: resource(3) of type (oci8 connection) Result: 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18661&edit=1

« previous php.bugs (#15719) next »