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

From: Date: Thu, 17 Oct 2002 15:19:57 +0000
Subject: #18661 [Ver->Csd]: oci_logoff does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22666@lists.php.net to get a copy of this message
ID: 18661 Updated by: maxim@php.net Reported By: nohn@php.net -Status: Verified +Status: Closed Bug Type: OCI8 related Operating System: Compaq Tru64 PHP Version: 4.2.0 New Comment: No, it would be very wrong removing OCILogOff as it would due compatibility issues. Lots of applications would end up with "Undefined function" error messages. It should be mentioned in Docs, though. Closed. Previous Comments: ------------------------------------------------------------------------ [2002-07-31 18:05:09] sniper@php.net 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?? ------------------------------------------------------------------------ [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 (#22666) next »