Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Bug #7727 setTempDir only sets the temp directory for some of the files
Submitted: 2006-05-26 00:53 UTC
From: pear at garden dot msbx dot com Assigned: dufuz
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: 5.1.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-05-26 00:53 UTC] pear at garden dot msbx dot com (Alexander Garden)
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.

Comments

 [2007-05-16 15:01 UTC] peer (Henrik Lasalle)
jep, this problem also exists in version 0.9.1 this is very anoying since now it is impossible to use on sites with a little more security :(
 [2007-11-28 19:01 UTC] hector (Hector Curiel)
Hello, I checked in my /tmp directory in my Red Hat Server and the OLE files are saved with 0 bytes, and I suppose the reason is the one you explained in here. Is there a way to solve this problem, a tip you can give me for this...I don't want to use csv or another classes for this
 [2009-11-29 08:05 UTC] cschmitz (Carsten Schmitz)
-Status: Assigned +Status: Closed
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/