? spreadsheet_excel_writer-cvs20080831-open_basedir_workaround_fix.patch Index: Spreadsheet/Excel/Writer/Workbook.php =================================================================== RCS file: /repository/pear/Spreadsheet_Excel_Writer/Spreadsheet/Excel/Writer/Workbook.php,v retrieving revision 1.3 diff -u -r1.3 Workbook.php --- Spreadsheet/Excel/Writer/Workbook.php 7 Jan 2008 10:36:37 -0000 1.3 +++ Spreadsheet/Excel/Writer/Workbook.php 31 Aug 2008 21:27:53 -0000 @@ -337,8 +337,8 @@ $this->_activesheet, $this->_firstsheet, $this->_str_total, $this->_str_unique, $this->_str_table, $this->_url_format, - $this->_parser); - + $this->_parser,$this->_tmp_dir); + $this->_worksheets[$index] = &$worksheet; // Store ref for iterator $this->_sheetnames[$index] = $name; // Store EXTERNSHEET names $this->_parser->setExtSheet($name, $index); // Register worksheet name with parser Index: Spreadsheet/Excel/Writer/Worksheet.php =================================================================== RCS file: /repository/pear/Spreadsheet_Excel_Writer/Spreadsheet/Excel/Writer/Worksheet.php,v retrieving revision 1.4 diff -u -r1.4 Worksheet.php --- Spreadsheet/Excel/Writer/Worksheet.php 16 Aug 2007 00:42:22 -0000 1.4 +++ Spreadsheet/Excel/Writer/Worksheet.php 31 Aug 2008 21:27:58 -0000 @@ -364,13 +364,15 @@ * @param mixed &$firstsheet The first worksheet in the workbook we belong to * @param mixed &$url_format The default format for hyperlinks * @param mixed &$parser The formula parser created for the Workbook + * @param string $tmp_dir The path to the directory for temporary files * @access private */ function Spreadsheet_Excel_Writer_Worksheet($BIFF_version, $name, $index, &$activesheet, &$firstsheet, &$str_total, &$str_unique, &$str_table, - &$url_format, &$parser) + &$url_format, &$parser, + $tmp_dir) { // It needs to call its parent's constructor explicitly $this->Spreadsheet_Excel_Writer_BIFFwriter(); @@ -460,6 +462,8 @@ $this->_input_encoding = ''; $this->_dv = array(); + + $this->_tmp_dir = $tmp_dir; $this->_initialize(); }