php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18661 oci_logoff does not work
Submitted: 2002-07-31 05:47 UTC Modified: 2002-10-17 10:19 UTC
From: nohn@php.net Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.2.0 OS: Compaq Tru64
Private report: No CVE-ID: None
 [2002-07-31 05:47 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 18:05 UTC] 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-10-17 10:19 UTC] maxim@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 05:01:27 2025 UTC