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

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?


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

[2002-11-07 16:34:38] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [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

Reply via email to