PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #2243

ob_clean

Details

Request #2243ob_clean
Submitted2004-08-28 04:48 UTC
Fromflinn at activeintra dot net
StatusBogus
PackageSpreadsheet_Excel_Writer
PHP Version4.3.8
OSSolaris
Roadmaps(Not assigned)

Comments

[2004-08-28 04:48 UTC] flinn at activeintra dot net

Description:
------------
Is there a possibility that ob_clean can be run
automatically before sending output? If there is a
practical reason for not, please explain.

Reproduce code:
---------------
--- Writer.php.orig Sat Aug 28 04:12:35 2004
+++ Writer.php Sat Aug 28 04:13:41 2004
@@ -52,6 +52,7 @@ class Spreadsheet_Excel_Writer extends S
*/
function Spreadsheet_Excel_Writer($filename = '')
{
+ ob_clean();
$this->_filename = $filename;
$this->Spreadsheet_Excel_Writer_Workbook($filename);
}

Actual result:
--------------
If anything is in the output buffer, the resulting
spreadsheet will be biffed (pun intended).

[2005-02-22 10:12 UTC] smith at backendmedia dot com

doesnt seem to be the job of this class to handle this stuff. i think it is the job of the developer to manage any output buffering he enables himself. Since the package doesnt mess with output buffering it is also not responsible in cleaning it.