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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 02:01:29 2024 UTC