ID: 10434
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Old-Bug Type: Reproducible Crash
Bug Type: *General Issues
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Are you using ISAPI or CGI module? If ISAPI does the CGI exectuable crash too? Please 
also upgrade to 4.0.5 or latest cvs and try with these. 
(http://www.zend.com/snapshots)

- James

Previous Comments:
---------------------------------------------------------------------------

[2001-04-21 15:48:21] [EMAIL PROTECTED]
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);                          


---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10434&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
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