dev Wrapping up for release 0.9.2 beta - again

dev Fixing Worksheet object now safe-failing to memory storage if open_basedir restriction is in effect

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@291368 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Carsten Schmitz 2009-11-28 00:27:36 +00:00
parent 0e1e2baf9e
commit 8aa0850d74
1 changed files with 4 additions and 2 deletions

View File

@ -482,8 +482,10 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
} }
if ($this->_tmp_dir === '' && ini_get('open_basedir') === false) { if ($this->_tmp_dir === '' && ini_get('open_basedir') === false) {
//return new PEAR_Error('open_basedir restriction in effect, please use setTmpDir() for this to work'); // open_basedir restriction in effect - store data in memory
return; // ToDo: Let the error actually have an effect somewhere
$this->_using_tmpfile = false;
return new PEAR_Error('Temp file could not be opened since open_basedir restriction in effect - please use setTmpDir() - using memory storage instead');
} }
// Open tmp file for storing Worksheet data // Open tmp file for storing Worksheet data