|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-18 04:40 UTC] jmoore@php.net
[2001-06-12 03:58 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 00:00:02 2025 UTC |
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);