ID: 35223
Updated by: [EMAIL PROTECTED]
Reported By: manelcaro at gmail dot com
-Status: Open
+Status: Feedback
-Bug Type: PDO related
+Bug Type: ODBC related
Operating System: Windows 2003 Server
PHP Version: 5CVS, 4CVS (2005-11-15) (snap)
New Comment:
Why did you decide it's a memory leak?
How exactly did you discover it?
How exactly does it crash? (if possible, please try it on a real OS
where you're able to get a backtrace, not just a useless address that
points to nowhere). Thanks.
Previous Comments:
------------------------------------------------------------------------
[2005-11-15 15:24:22] manelcaro at gmail dot com
With this it does not happen:
<?php echo "foobar"; ?>
Manel.
------------------------------------------------------------------------
[2005-11-15 13:25:10] [EMAIL PROTECTED]
Does it leak when you don't use any of those funcs? ie. with something
like:
<?php echo "foobar"; ?>
------------------------------------------------------------------------
[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