ID: 35223
Updated by: [EMAIL PROTECTED]
Reported By: manelcaro at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: ODBC related
Operating System: Windows 2003 Server
-PHP Version: 4.4.1
+PHP Version: 5CVS, 4CVS (2005-11-15) (snap)
New Comment:
Does it leak when you don't use any of those funcs? ie. with something
like:
<?php echo "foobar"; ?>
Previous Comments:
------------------------------------------------------------------------
[2005-11-15 11:08:08] manelcaro at gmail dot com
I test php5-win32-lastest.zip and the result is the same, I test two
methods:
1) with odbc_connect and odbc_close
2) with PDO
$dbh = new PDO('odbc:NMSTOC', "xxxx", "xxxx");
$dbh = null;
Thanks
Manel
------------------------------------------------------------------------
[2005-11-15 09:31:38] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
And use the PDO ODBC.
------------------------------------------------------------------------
[2005-11-15 09:25:10] manelcaro at gmail dot com
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.
Thanks.
Manel.
Reproduce code:
---------------
<?php
$cID= odbc_connect(...);
----
more code here {we try without the code and only with this functions
and the result is the same }
----
if($cID){
odbc_close($cID);
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35223&edit=1