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

Bug #482 open_basedir problems
Submitted: 2003-12-23 03:29 UTC
From: spammable at howsfamily dot net Assigned:
Status: No Feedback Package: Spreadsheet_Excel_Writer
PHP Version: 4.3.4 OS: Windows XP Pro
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 41 - 14 = ?

 
 [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.

Comments

 [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.
 [2005-03-07 03:51 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!