ID:               20282
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         COM related
 Operating System: Win2000/XP
 PHP Version:      4.2.3
 New Comment:

Can you be a bit more descriptive please?
Any gdb backtrace or log?
Maybe this is a feedback too because 10 000 000 is a lot for your
windows memory.


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

[2002-11-06 09:44:45] [EMAIL PROTECTED]

following script causes increasing memory leak in php.exe and
excel.exe:

//**************************
$strfilename = ".\\test.xls";
$strfilename = realpath($strfilename);
set_time_limit(0);
$exapp = new COM("Excel.application") or Die ("Did not connect to
Excel");
if (file_exists($strfilename))
{
  $wkb = $exapp->Workbooks->open($strfilename);
  for ($i=0; $i<10000000; $i++)
  {
    $Sheet = $wkb->Worksheets(1);
    $egal = $Sheet->Cells(1,1);
    $egal->value = 100;
  }
  $wkb->Save();
  $wkb->close(false,$strfilename,false);
}  
$exapp->Quit();
$exapp->Release();
//**************************

if the lines:

    $egal = $Sheet->Cells(1,1);
    $egal->value = 100;

will be deleted, only php.exe show the increasing memory leak.


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


-- 
Edit this bug report at http://bugs.php.net/?id=20282&edit=1

Reply via email to