php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10434 Can not read memory
Submitted: 2001-04-21 15:48 UTC Modified: 2001-06-12 03:58 UTC
From: webmaster at digicom dot bg Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.0.4pl1 OS: Windows 2000 Pro / IIS5
Private report: No CVE-ID: None
 [2001-04-21 15:48 UTC] webmaster at digicom dot bg
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);				

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-18 04:40 UTC] jmoore@php.net
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
 [2001-06-12 03:58 UTC] sniper@php.net
No feedback, old version.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 05:01:29 2024 UTC