|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34684 Memory Leak using Informix database
Submitted: 2005-09-30 08:33 UTC Modified: 2005-10-08 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mrembach at gmail dot com Assigned:
Status: No Feedback Package: Informix related
PHP Version: 5.0.5 OS: Linux 2.4.19-64GB-SMP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-09-30 08:33 UTC] mrembach at gmail dot com

I have had an ongoing memory leak with Informix for a while now and haven't had another database to test with so I can send in evidence for investigation.

I have written a small script that created a database connection using Pear::DB and loads creates a loop to load an array of objects.

To run the command:
php testMemoryLeak.php ORACLE
php testMemoryLeak.php INFORMIX

If you run this code (see below) and then issue the command 
ps -ax -o '%mem cmd' | grep 'testMemoryLeakPEAR.php' | grep -v 'grep'

On the informix run, the memory goes up and up (try running the program and see after a couple of minutes), but with the oracle run, no memory leak.

This should provide enough clues to maybe find the leak and plug it for informix.  Please help, this is starting to be a very big problem for my project.

Thanks in advance 

Reproduce code:

Expected result:
The program should be downloaded and set up to use with both a table in oracle and informix

The ps I explained should be run while the php script is running.  

Informix: memory starts at 1.5 and starts going up every minute or so
Oracle: stable.

I think the problem is in the free() class.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-30 10:06 UTC]
Please try using this CVS snapshot:
For Windows:

And try with a script which does NOT use PEAR::db!!

 [2005-10-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 11 17:01:30 2023 UTC