#20282 [Opn]: COM memory leak
| From: | nicos@php.net | Date: | Thu, 07 Nov 2002 02:52:51 +0000 |
| Subject: | #20282 [Opn]: COM memory leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24249@lists.php.net to get a copy of this message | ||
ID: 20282
Updated by: nicos@php.net
Reported By: sven.packmor@tz-mikroelektronik.de
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] sven.packmor@tz-mikroelektronik.de
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