php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3709 Memory leak when calling OCILogon/OCIExecute oci8 call
Submitted: 2000-03-02 12:19 UTC Modified: 2006-07-17 08:07 UTC
From: joem at analytika dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0 Beta 4 Patch Level 1 OS: redhat linux 6.1 (2.2.12-20) smp
Private report: No CVE-ID: None
 [2000-03-02 12:19 UTC] joem at analytika dot com
Sample code
<?
  print "Oracle_Home: " . getenv("ORACLE_HOME") . "<BR>";
  /* If you change the OCILogon to OCIPLogon, no memory           leak! */
  if($conn = OCILogon("<user>","<pwd>","<TNS>"))
  {
    print("Connection succeeded!<BR>");
    $stmt = OCIParse($conn,"select * from all_tables");
    OCIExecute($stmt);
    /* Notice I'm not getting any row or column information
       back... */
    OCIFreeStatement($stmt);
    OCILogoff($conn);
  } else {
    print("Connection failed!<BR>");
  }
?>

Note: I am running a smp kernel (two 550 PIIIs)

php was compiled with:
--with-mysql --with-oci8 --enable-track-vars

I tracked it as far as the OCIServerDetach call in oci8.c...the memory is not released after this call is made, and there is no error...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-01 23:28 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-20 01:52 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Aug 24 22:01:26 2019 UTC