ID:               35223
 User updated by:  manelcaro at gmail dot com
 Reported By:      manelcaro at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         ODBC related
 Operating System: Windows 2003 Server
 PHP Version:      4.4.1
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to