|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 + 21 = ?
Subscribe to this entry?

 [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");
    /* Notice I'm not getting any row or column information
       back... */
  } 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...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-01 23:28 UTC]
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]
No feedback from user.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 21:01:27 2024 UTC