#20282 [Opn->Fbk]: COM memory leak
| From: | phanto@php.net | Date: | Sun, 17 Nov 2002 11:47:00 +0000 |
| Subject: | #20282 [Opn->Fbk]: COM memory leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25089@lists.php.net to get a copy of this message | ||
ID: 20282
Updated by: phanto@php.net
Reported By: sven.packmor@tz-mikroelektronik.de
-Status: Open
+Status: Feedback
Bug Type: COM related
Operating System: Win2000/XP
PHP Version: 4.2.3
New Comment:
could you at least try one of the php-4.3.0 release candidates ?
Previous Comments:
------------------------------------------------------------------------
[2002-11-11 12:05:38] sven.packmor@tz-mikroelektronik.de
hi,
i have problems installing CVS snapshot for windows. I go same way
installing the CVS, as i did for php version 4.22/4.23. If I try
executing a php script, apache detects an "internal server error". I'm
using apache version 1.1. Apache error log shows follwing message:
"[Mon Nov 11 18:35:07 2002] [error] [client 127.0.0.1] Premature end of
script headers: c:/programme/php/php.exe". Can you help me? What's
wrong?
------------------------------------------------------------------------
[2002-11-07 16:34:38] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-11-07 03:17:11] sven.packmor@tz-mikroelektronik.de
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?
------------------------------------------------------------------------
[2002-11-06 20:52:51] nicos@php.net
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] 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