diff --git a/pear/System.php b/pear/System.php index d3c56d0697b..939692b8a7d 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'])) {