php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4610 IBM Db2 functions slow and leaking memory
Submitted: 2000-05-26 14:25 UTC Modified: 2000-08-18 13:16 UTC
From: denon at epoints dot com dot my Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0 Release Candidate 2 OS: Red Hat Linux 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: denon at epoints dot com dot my
New email:
PHP Version: OS:

 

 [2000-05-26 14:25 UTC] denon at epoints dot com dot my
i have compiled php(all versions including cvs) with --with-ibm-db2 option and with apache. 
every access on the page would steadily increase the memory usage of httpd and it wouldn't release it. I have even tried with unixodbc..but the same problem occurs...
i have tried lots of options including compiling with db2 support alone and this problem is definitely reproduceble in my machine..
it has been happening in last few versions of php3 and php4..any ideas?

the script is asa below
<?
$conn=odbc_pconnect($db2,$user,$password);
$stmt2="select login from salesperson";
$product = odbc_exec($conn,$stmt2);
odbc_result_all($product);
odbc_free_result($product);
odbc_close($db);
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-20 12:02 UTC] kara at cvs dot php dot net
Please try PHP 4 Release. If db2 still leaks, please report
at what rate this happens. Also try odbc_connect() instead
of odbc_pconnect(). The call to odbc_close() can be ommitted,
since the connection is closed on request end anyway if you
use odbc_connect(). 

 [2000-07-29 16:35 UTC] stas@php.net
old version, no feedback - closing.
 [2000-08-18 13:16 UTC] waldschrott@php.net
really closing now ;)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 22:01:33 2024 UTC