php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9223 recode_string leaks memory
Submitted: 2001-02-12 05:33 UTC Modified: 2001-10-25 04:41 UTC
From: rr at nci dot ch Assigned:
Status: Closed Package: Recode related
PHP Version: 4.0.4pl1 OS: SuSE-Linux 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rr at nci dot ch
New email:
PHP Version: OS:

 

 [2001-02-12 05:33 UTC] rr at nci dot ch
I use the following procedure to recode records that are read in from a dbase file. If I run this script for all the 3500 records in the dbase file the apache server process uses 150MB of memory.



function recodeDBF($dbfin) {

$dbfout=array();

while( list($key, $inval) = each($dbfin) ) {
    $dbfout[$key]=recode_string("pc..l1",trim($inval)); // A LOT OF MEMORY
    // $dbfout[$key]=trim($inval); // NORMAL MEMORY USAGE
    }
    return $dbfout;
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-08 11:46 UTC] stas@php.net
Seems that this is a recode memory leak, not PHP's. At least
Insure says that recode library is leaking memory all over
the place. You may want to contact recode developers. 
 [2001-03-08 12:12 UTC] stas@php.net
Better be in 'Analyzed', to know the problem still exists.
 [2001-04-28 23:30 UTC] sniper@php.net
Suspended is better..


 [2001-10-25 04:41 UTC] sebastian@php.net
Fixed with GNU recode 3.6.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC