php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58814 Possible memory leak
Submitted: 2009-08-17 05:37 UTC Modified: 2017-10-24 08:41 UTC
From: dejan dot lekic at gmail dot com Assigned:
Status: Suspended Package: ingres (PECL)
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 + 45 = ?
Subscribe to this entry?

 
 [2009-08-17 05:37 UTC] dejan dot lekic at gmail dot com
Description:
------------
During the insertion of few millions of rows in a very simple table PHP takes more and more memory. Looks to me like it does not free resources somewhere.

Reproduce code:
---------------
http://codepad.org/hyUlvV3E

Expected result:
----------------
I do not expect PHP to take more than few MB of RAM.

Actual result:
--------------
It took over 2.2 GB (!!!) of RAM after 16 millions of rows have been inserted.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-22 10:23 UTC] jruffer at hss dot co dot uk
Try using ingres_free_result($res).  It may help.
 [2017-10-24 08:41 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 08:41 UTC] kalle@php.net
The ingres package has not had any activity for 4 years, so its safe to say that its no longer in active development, if activity picks backup then the maintainer can re-open this report
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jun 13 18:01:24 2021 UTC