#21489 [NEW]: Excel hangs after creation via COM

From: Date: Tue, 07 Jan 2003 13:52:30 +0000
Subject: #21489 [NEW]: Excel hangs after creation via COM
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29317@lists.php.net to get a copy of this message
From: achirizzi@softeam-tsa.it 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

« previous php.bugs (#29317) next »