Use PHPExcel_Shared_File::sys_get_temp_dir() for temporary zip file directory rather than ./

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83400 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2011-11-28 14:13:08 +00:00
parent 87c735a212
commit 135c0185f5
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class PHPExcel_Writer_Excel2007 implements PHPExcel_Writer_IWriter
// If $pFilename is php://output or php://stdout, make it a temporary file... // If $pFilename is php://output or php://stdout, make it a temporary file...
$originalFilename = $pFilename; $originalFilename = $pFilename;
if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') { if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') {
$pFilename = @tempnam('./', 'phpxltmp'); $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp');
if ($pFilename == '') { if ($pFilename == '') {
$pFilename = $originalFilename; $pFilename = $originalFilename;
} }