From: Stig Bakken Date: Wed, 26 Dec 2001 01:50:08 +0000 (+0000) Subject: * use "windir" env.var on Windows too X-Git-Tag: PRE_ISSET_PATCH~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd1a88fab6d311a08c3cf8a0eab5406817046880;p=php * use "windir" env.var on Windows too --- 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'])) {