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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joem at analytika dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC