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 #7727

setTempDir only sets the temp directory for some of the files

Details

Submitted2006-05-26 00:53 UTC
Frompear at garden dot msbx dot com
Assigneddufuz
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP Version5.1.2
OSLinux
Roadmaps(Not assigned)

Comments

[2006-05-26 00:53 UTC] pear at garden dot msbx dot com

Description:
------------
Version 0.9.0 of spreadsheet_excel_writer

setTempDir sets the temporary directory used for the OLE file, but it does not set the temp directory used by the Worksheet class to store the main data in function _append.

This can be a problem when the PHP process has permissions to write to the directory specified in setTempDir but not to that chosen by other means. The result is an Excel spreadsheet with the header and the footer, but no data, and hence unreadable.

Also, spreadsheet_excel_writer does not throw any errors if it fails to write to either location.