ID: 20282
User 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:
hi,
here my measuring depending on repetitions:
0 1000 2000 10000
excel.exe 7.528K 9.712K 11.600K 26.416K
php.exe 5.260K 7.668K 10.148K 30.556K
do you need further information?
Previous Comments:
------------------------------------------------------------------------
[2002-11-06 20:52:51] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[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