Bug #3709 [Com]: Memory leak when calling OCILogon/OCIExecute oci8 call
| From: | lildurk3709 at gmail dot com | Date: | Wed, 01 Sep 2021 18:24:57 +0000 |
| Subject: | Bug #3709 [Com]: Memory leak when calling OCILogon/OCIExecute oci8 call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236252@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=3709&edit=1
ID: 3709
Comment by: lildurk3709 at gmail dot com
Reported by: joem at analytika dot com
Summary: Memory leak when calling OCILogon/OCIExecute oci8
call
Status: Closed
Type: Bug
Package: OCI8 related
Operating System: redhat linux 6.1 (2.2.12-20) smp
PHP Version: 4.0 Beta 4 Patch Level 1
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[2000-08-20 01:52:29] sniper@php.net
No feedback from user.
--Jani
------------------------------------------------------------------------
[2000-08-01 23:28:57] waldschrott@php.net
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
------------------------------------------------------------------------
[2000-03-02 12:19:05] 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...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=3709&edit=1