From c0aeb7e875c9dfea8ef596b9632a4ab5200c7ade Mon Sep 17 00:00:00 2001 From: mokotiyo Date: Thu, 5 Jul 2018 12:26:39 +0900 Subject: [PATCH] =?UTF-8?q?tempdir=E3=81=AE=E5=8F=96=E5=BE=97=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Panda.php | 4 ++++ 1 file changed, 4 insertions(+) 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);