diff --git a/src/Path.php b/src/Path.php index 4d1f26b6..bcaadef7 100644 --- a/src/Path.php +++ b/src/Path.php @@ -235,7 +235,7 @@ public static function isOwner($path) $ssp = ini_get('session.save_path'); // Try to find a writable directory - $dir = is_writable('/tmp') ? '/tmp' : false; + $dir = is_writable(sys_get_temp_dir()) ? sys_get_temp_dir() : false; $dir = !$dir && is_writable('.') ? '.' : $dir; $dir = !$dir && is_writable($ssp) ? $ssp : $dir;