php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20282 COM memory leak
Submitted: 2002-11-06 09:44 UTC Modified: 2003-02-08 01:01 UTC
Votes:9
Avg. Score:4.4 ± 0.7
Reproduced:5 of 6 (83.3%)
Same Version:3 (60.0%)
Same OS:4 (80.0%)
From: sven dot packmor at tz-mikroelektronik dot de Assigned:
Status: No Feedback Package: COM related
PHP Version: 4.2.3 OS: Win2000/XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-11-06 09:44 UTC] sven dot packmor at tz-mikroelektronik dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-06 20:52 UTC] 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-07 03:17 UTC] sven dot packmor at tz-mikroelektronik dot 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-07 16:34 UTC] 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-11 12:05 UTC] sven dot packmor at tz-mikroelektronik dot 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-17 05:47 UTC] phanto@php.net
could you at least try one of the php-4.3.0 release candidates ?
 [2002-11-18 11:54 UTC] sven dot packmor at tz-mikroelektronik dot de
Yes, i tryed. Using php-cgi.exe instead of php.exe i got php working. Here my measuring depending on repetitions for version 4.3.0 :

                  0   1000    2000   10000
excel.exe    7.500K 9.708K 11.600K 26.516K
php-cgi.exe  5.688K 8.084K 10.612K 29.716K
 [2002-12-02 03:21 UTC] sven dot packmor at tz-mikroelektronik dot de
Hi, how about bugfixing? Is it possible to get a solution soon? We are developing for DaimlerChrysler germany. Our project stagnate. We have a lot of data to transport across COM-mechanism. It's very urgent to get a bugfixing. Can you help us?
 [2002-12-02 04:02 UTC] derick@php.net
Well, you can always hire a PHP developer to do it if it is so urgent for your project. Please don't forget that PHP is an Open Source project, totally run by volunteers which dedicate their spare time to develop on PHP.

Derick
 [2002-12-09 03:21 UTC] sven dot packmor at tz-mikroelektronik dot de
Hi Derick,

if we don't hire an PHP developer, when do you think the bug will be fixed? Is there a roadmap for this bug?

Sven
 [2002-12-09 15:31 UTC] phanto@php.net
as soon as anybody is in the mood to fix it  ... erm, and 'Hi, how about bugfixing ?' or 'Is it possible to get a solution soon?' for sure doesn't bring anyone into that mood.
but you have full access to the sources and can always send in a patch.

harald
 [2002-12-20 11:12 UTC] sven dot packmor at tz-mikroelektronik dot de
Hi there,

it's possible that we will hire a developer to fix this bug. If  somebody is in the mood to do bugfixing, please contact me under sven.packmor@tz-mikroelektronik.de.

Sven
 [2003-01-18 16:11 UTC] phanto@php.net
suspended php4 development to look forward to a more stable php5
 [2003-01-29 19:56 UTC] phanto@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

try a stable release snapshot
 [2003-02-08 01:01 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2007-09-22 00:38 UTC] gdsuy at dy dot jdhi
http://www.meta-fx.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC