PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.