com web/rmtools: Rewrite loop: include/BuildVC.php
| From: | Anatol Belski | Date: | Tue, 31 Jul 2018 18:45:47 +0000 |
| Subject: | com web/rmtools: Rewrite loop: include/BuildVC.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27186@lists.php.net to get a copy of this message | ||
Commit: 256a2e6666ea224b4f7e25047ac3ab8bb2f1afff
Author: Anatol Belski <ab@php.net> Tue, 31 Jul 2018 20:45:47 +0200
Parents: 66ef4c100a1e31749d797e057f0dd7100162408d
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=256a2e6666ea224b4f7e25047ac3ab8bb2f1afff
Log:
Rewrite loop
Changed paths:
M include/BuildVC.php
Diff:
diff --git a/include/BuildVC.php b/include/BuildVC.php
index 8fdfab7..d2cd3a0 100644
--- a/include/BuildVC.php
+++ b/include/BuildVC.php
@@ -78,9 +78,10 @@ class BuildVC {
$env['NODEBUG'] = "1";
}
- foreach ($env as $k => &$v) {
+ foreach ($env as $k => $v) {
if (strtolower($k) == "path") {
- $v = 'c:\apps\git\bin;' . $v;
+ $env[$k] = 'c:\apps\git\bin;' . $env[$k];
+ break;
}
}