Bug #14975 Memory Leak with odbc driver using PHP
Submitted: 16 Nov 2005 11:05 Modified: 29 Sep 2008 16:22
Reporter: Manel Caro Email Updates:
Status: Won't fix Impact on me:
None 
Category:MaxDB Severity:S1 (Critical)
Version:7.5.00.23 and 7.6.00.12 OS:Windows (Windows 2003 Server and XP Prof.)
Assigned to: Ulf Wendel CPU Architecture:Any

[16 Nov 2005 11:05] Manel Caro
Description:
We have a memory leak using Apache 2.0.54 and php 4.4.1 with odbc_connect
and odbc_close functions. The memory leak is about 150 KB using only this
two functions. We use odbc for connect to MAXDB database version
7.6.00.12. It produce a crash of Apache when it have about 100 MB.

I use a odbc driver 7.6.00.00

I think is possible that bug are in odbc driver, maybe ... ??

Thanks.
Manel.

Reproduce code:
---------------
<?php

$cID= odbc_connect("DSN", "USER", "PASS");
----
more code here {we try without the code and only with this functions and
the result is the same }
----
if($cID){
 odbc_close($cID);
}

?>

How to repeat:
Executing this code:

<?php

$cID= odbc_connect("DSN", "USER", "PASS");
----
more code here {we try without the code and only with this functions and
the result is the same }
----
if($cID){
 odbc_close($cID);
}

?>
[18 Sep 2007 11:58] Burkhard Diesing
Hello Manel,
thanks reporting an error. We can also detect a memory leak with the steps you described.

I have made an error entry in our bug tracking system and we will fixes this in one of the next version.

You can follow the state with
http://www.sapdb.org/webpts?wptsdetail=yes&ErrorType=0&ErrorID=1150644

Regards,
Burkhard

---
Burkhard Diesing
Development Manager
MaxDB&liveCache
SAP AG
mailto:burkhard.diesing@sap.com
www.sap.com
Sitz der Gesellschaft/Registered Office: Walldorf, Germany
Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Shai
Agassi, Léo Apotheker, Werner Brandt, Claus Heinrich, Gerhard Oswald,
Peter Zencke
Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory
Board: Hasso Plattner 
Registergericht/Commercial Register Mannheim No HRB 350269
[27 Sep 2008 12:46] Konstantin Osipov
MaxDB is no longer under MySQL umbrella.
[29 Sep 2008 16:22] Manel Caro
Do you know what day is TODAY !!!!
Only pass 3 years for resolve a BUG !!! :(
Don't worry we dont use MAXDB or MYSQL of course ...
Bye