Bug #10434: Can not read memory
| From: | webmaster at digicom dot bg | Date: | Sat, 21 Apr 2001 19:48:21 +0000 |
| Subject: | Bug #10434: Can not read memory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52112@lists.php.net to get a copy of this message | ||
From: webmaster@digicom.bg
Operating system: Windows 2000 Pro / IIS5
PHP version: 4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description: Can not read memory
Error message is generated saying "The instruction at "0x78003abf" referenced at
"0x00bc8000". The memory could not be "read".
Because it seems that the problem is memory leak I am providing a part of the php code where I am
accumulating a large string width data (separated with "|") which I am going to pass later
on javascript for further manipultion.
The number of records passed by the SQL query is about 900.
While developing the script, to avoid the error I raised the memory limit consumed by script (in
php.ini) first to 16M, later 32Mb, now it is 64M.
The strange thing for me is that after I raised to 16M, the error stopped, than sudenly apperred
again; when I put it on 64M it stopped again, and now it comes back again without realy modifying
this part of the script!
// the code
$sql = "select GROUPID, SUBGROUPID, MATERIALID, DESCRIPTIONEN, DESCRIPTIONBG, COSTPRICE from
MATERIALS";
$h = ibase_query($sql);
while($row = ibase_fetch_object($h)) {
if ($lang_selected == "en") {
$dsc = $row->DESCRIPTIONEN;
if ($dsc == "") { $dsc = $row->DESCRIPTIONBG; }
} else {
$dsc = $row->DESCRIPTIONBG;
if ($dsc == "") { $dsc = $row->DESCRIPTIONEN; }
}
$mats .=
trim($row->SUBGROUPID)."|".trim($row->MATERIALID)."|".trim($dsc)."|".$row->COSTPRICE."|";
$qq++;
}
ibase_free_result($h);
--
Edit Bug report at: http://bugs.php.net/?id=10434&edit=1