com web/rmtools: fetch the whole env to pass to nmake: include/BuildVC.php
| From: | Anatol Belski | Date: | Tue, 11 Apr 2017 13:18:52 +0000 |
| Subject: | com web/rmtools: fetch the whole env to pass to nmake: include/BuildVC.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25873@lists.php.net to get a copy of this message | ||
Commit: 645ed311e2eae44fd152bbb5cbd689a2589c56e5
Author: Anatol Belski <ab@php.net> Tue, 11 Apr 2017 15:18:52 +0200
Parents: 866658ccf35842d4037db4902148671476985bc5
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=645ed311e2eae44fd152bbb5cbd689a2589c56e5
Log:
fetch the whole env to pass to nmake
Changed paths:
M include/BuildVC.php
Diff:
diff --git a/include/BuildVC.php b/include/BuildVC.php
index 4ec8561..889226f 100644
--- a/include/BuildVC.php
+++ b/include/BuildVC.php
@@ -51,14 +51,15 @@ class BuildVC {
throw new \Exception("Compiler mismatch. PHP SDK is configured for '$sdk_vc',
while the current RMTOOLS config targets '{$this->compiler}'");
}
- $env = array();
+ $env = getenv();
+ /*$env = array();
$env['PATH'] = getenv('PATH') ;
$env['INCLUDE'] = getenv('INCLUDE');
$env['LIB'] = getenv('LIB');
$env['TMP'] = $env['TEMP'] = getenv('TEMP');
$env['SystemDrive'] = getenv('SystemDrive');
- $env['SystemRoot'] = getenv('SystemRoot');
+ $env['SystemRoot'] = getenv('SystemRoot'); */
/* XXX Not sure, in how far the below is needed. */
/*