Skip to content

Commit

Permalink
Merge pull request #12 from mokotiyo/hotfix/php7
Browse files Browse the repository at this point in the history
fix tempdirの取得処理を修正
  • Loading branch information
koriym authored Jul 10, 2018
2 parents 226e51a + c0aeb7e commit 8301108
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Panda.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,10 @@ public static function getTempDir()
if ($var) {
return $var;
}
$var = sys_get_temp_dir();
if ($var) {
return $var;
}
$tempfile = tempnam(uniqid(rand(), true), '');
if (file_exists($tempfile)) {
unlink($tempfile);
Expand Down

0 comments on commit 8301108

Please sign in to comment.