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

Bug #16938 open_basedir check is wrong in Spreadsheet_Excel_Writer_Worksheet::_initialize
Submitted: 2009-12-22 03:44 UTC
From: seanch Assigned: seanch
Status: Closed Package: Spreadsheet_Excel_Writer (version CVS)
PHP Version: 5.1.6 OS: RHEL 5
Roadmaps: (Not assigned)    
Subscription  


 [2009-12-22 03:44 UTC] seanch (Sean Callan-Hinsvark)
Description: ------------ The check for open_basedir in the Spreadsheet_Excel_Writer_Worksheet::_initialize method is wrong. If open_basedir is enabled then ini_get('open_basedir') will return true, not false. The result of this bug is that if open_basedir is disabled and you don't set the temporary directory manually it will fall back to using memory storage. Prior to the memory storage fallback being added in r291368 it would always fail under these conditions with "supplied argument is not a valid stream resource" errors for the fread, fseek, and fwrite functions.

Comments

 [2009-12-22 03:47 UTC] seanch (Sean Callan-Hinsvark)
 [2009-12-22 07:52 UTC] doconnor (Daniel O'Connor)
 [2009-12-22 07:52 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: progi1984
 [2011-09-29 13:53 UTC] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Closed -Assigned To: progi1984 +Assigned To: seanch
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.