PHP 4.0 Bug #9223 Updated: recode_string leaks memory
| From: | stas@php.net | Date: | Thu, 08 Mar 2001 17:12:10 +0000 |
| Subject: | PHP 4.0 Bug #9223 Updated: recode_string leaks memory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48286@lists.php.net to get a copy of this message | ||
ID: 9223
Updated by: stas
Reported By: rr@nci.ch
Old-Status: Closed
Status: Analyzed
Bug Type: Recode related
Assigned To:
Comments:
Better be in 'Analyzed', to know the problem still exists.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-08 11:46:32] 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-02-12 05:33:56] rr@nci.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;
}
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9223&edit=2