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

open_basedir problems

Details

Submitted2003-12-23 03:29 UTC
Fromspammable at howsfamily dot net
StatusNo Feedback
PackageSpreadsheet_Excel_Writer
PHP Version4.3.4
OSWindows XP Pro
Roadmaps(Not assigned)

Comments

[2003-12-23 03:29 UTC] spammable at howsfamily dot net

Description:
------------
Originally, the writer always output a 0-byte file. You should probably change the example code in the documentation to include a test of the return value of Workbook->close(), which is where I found the error.

When a basedir restriction is in effect, the OLE library needs a specific temporary file location set. In my case, I added:

$OLE->setTempDir($myTempDir);

and

$root->setTempDir($myTempDir);

just after the constructors of the appropriate objects in the Workbook->_storeOLEFile() function.

[2003-12-23 11:11 UTC] xnoguer at php dot net

There is a setTempDir() method on the cvs version of the package. Please check if it solves your problem.

The docs for Workbook::close() will be updated as soon as I can.