From:             [EMAIL PROTECTED]
Operating system: SuSE-Linux 7.0
PHP version:      4.0.4pl1
PHP Bug Type:     Recode related
Bug description:  recode_string leaks memory

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) {


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;

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to