From: [EMAIL PROTECTED] Operating system: Win 2K Server PHP version: 4.3.0 PHP Bug Type: COM related Bug description: Excel hangs after creation via COM
This is the code I always used with PHP prior to 4.2.X and 4.3.0: function ExcelSheet($filein,$tmpdir) { $fileout = substr(tempnam($tmpdir, "tmp"), 0, -4); $ex = new COM("Excel.sheet") or Die ("Cannot find excel!"); $ex->Application->Visible = 0; $wkb = $ex->Application->Workbooks->Open($filein) or Die ("Cannot open excel!"); $ex->Application->ActiveWorkbook->SaveAs($fileout, -4143); $ex->application->ActiveWorkbook->Close("False"); unset($ex); return($fileout . ".xls"); } The excel function works, but afterwards the excel process remains in memory, as other people have already argued. -- Edit bug report at http://bugs.php.net/?id=21489&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21489&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21489&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21489&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21489&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21489&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21489&r=support Expected behavior: http://bugs.php.net/fix.php?id=21489&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21489&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21489&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21489&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21489&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21489&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21489&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21489&r=gnused