diff options
| author | Stig Bakken <ssb@php.net> | 2001-12-26 01:50:08 +0000 |
|---|---|---|
| committer | Stig Bakken <ssb@php.net> | 2001-12-26 01:50:08 +0000 |
| commit | bd1a88fab6d311a08c3cf8a0eab5406817046880 (patch) | |
| tree | 2563cb8814711da9ad3639050c29dbd01df889d4 /pear/System.php | |
| parent | 6b8397b9f754c96114129a8e8a1d1633de578c03 (diff) | |
| download | php-git-bd1a88fab6d311a08c3cf8a0eab5406817046880.tar.gz | |
* use "windir" env.var on Windows too
Diffstat (limited to 'pear/System.php')
| -rw-r--r-- | pear/System.php | 3 |
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'])) { |
