cvs: php4 /pear System.php
| From: | Stig Bakken | Date: | Wed, 26 Dec 2001 01:50:09 +0000 |
| Subject: | cvs: php4 /pear System.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1685@lists.php.net to get a copy of this message | ||
ssb Tue Dec 25 20:50:09 2001 EDT
Modified files:
/php4/pear System.php
Log:
* use "windir" env.var on Windows too
Index: php4/pear/System.php
diff -u php4/pear/System.php:1.6 php4/pear/System.php:1.7
--- php4/pear/System.php:1.6 Tue Dec 25 20:23:04 2001
+++ php4/pear/System.php Tue Dec 25 20:50:08 2001
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: System.php,v 1.6 2001/12/26 01:23:04 ssb Exp $
+// $Id: System.php,v 1.7 2001/12/26 01:50:08 ssb Exp $
//
// TODO:
@@ -41,7 +41,7 @@
*
* @package System
* @author Tomas V.V.Cox <cox@idecnet.com>
-* @version $Revision: 1.6 $
+* @version $Revision: 1.7 $
* @access public
*/
class System extends PEAR
@@ -338,6 +338,9 @@
}
if (isset($_ENV['TMP'])) {
return $_ENV['TMP'];
+ }
+ if (isset($_ENV['windir'])) {
+ return $_ENV['windir'] . '\temp';
}
return $_ENV['SystemRoot'] . '\temp';
}