summaryrefslogtreecommitdiff
path: root/pear/System.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2001-12-26 01:50:08 +0000
committerStig Bakken <ssb@php.net>2001-12-26 01:50:08 +0000
commitbd1a88fab6d311a08c3cf8a0eab5406817046880 (patch)
tree2563cb8814711da9ad3639050c29dbd01df889d4 /pear/System.php
parent6b8397b9f754c96114129a8e8a1d1633de578c03 (diff)
downloadphp-git-bd1a88fab6d311a08c3cf8a0eab5406817046880.tar.gz
* use "windir" env.var on Windows too
Diffstat (limited to 'pear/System.php')
-rw-r--r--pear/System.php3
1 files changed, 3 insertions, 0 deletions
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'])) {