ID: 18661 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] >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. ([EMAIL PROTECTED] 20000110)" Mainly documentation problem..maybe the function could be removed altogether as it's dummy one anyway?? ------------------------------------------------------------------------ [2002-07-31 05:47:53] [EMAIL PROTECTED] $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