diff --git a/Panda.php b/Panda.php index 69ac4fe..cd8c692 100644 --- a/Panda.php +++ b/Panda.php @@ -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);