From bd1a88fab6d311a08c3cf8a0eab5406817046880 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Wed, 26 Dec 2001 01:50:08 +0000 Subject: [PATCH] * use "windir" env.var on Windows too --- pear/System.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pear/System.php b/pear/System.php index d3c56d0697..939692b8a7 100644 --- a/pear/System.php +++ b/pear/System.php @@ -339,6 +339,9 @@ class System extends PEAR if (isset($_ENV['TMP'])) { return $_ENV['TMP']; } + if (isset($_ENV['windir'])) { + return $_ENV['windir'] . '\temp'; + } return $_ENV['SystemRoot'] . '\temp'; } if (isset($_ENV['TMPDIR'])) { -- 2.50.1