@@ -100,15 +100,15 @@ |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | |
103 | - // In windows: When you pass an environment to CMD it replaces the old environment |
|
104 | - // That means we create a lot of problems with respect to user accounts and missing vars |
|
105 | - // this is a workaround where we add the vars to the existing environment. |
|
106 | - if (defined('PHP_WINDOWS_VERSION_BUILD')) { |
|
107 | - foreach($env as $key => $value) { |
|
108 | - putenv($key."=". $value); |
|
109 | - } |
|
110 | - $env = null; |
|
111 | - } |
|
103 | + // In windows: When you pass an environment to CMD it replaces the old environment |
|
104 | + // That means we create a lot of problems with respect to user accounts and missing vars |
|
105 | + // this is a workaround where we add the vars to the existing environment. |
|
106 | + if (defined('PHP_WINDOWS_VERSION_BUILD')) { |
|
107 | + foreach($env as $key => $value) { |
|
108 | + putenv($key."=". $value); |
|
109 | + } |
|
110 | + $env = null; |
|
111 | + } |
|
112 | 112 | |
113 | 113 | $process = new Process($workerCommand, null, $env, null, null); |
114 | 114 |
@@ -72,17 +72,17 @@ |
||
72 | 72 | $workerCommand = 'nohup ' . $workerCommand . ' > ' . $logFile .' 2>&1 & echo $!'; |
73 | 73 | } |
74 | 74 | |
75 | - // In windows: When you pass an environment to CMD it replaces the old environment |
|
76 | - // That means we create a lot of problems with respect to user accounts and missing vars |
|
77 | - // this is a workaround where we add the vars to the existing environment. |
|
78 | - if (defined('PHP_WINDOWS_VERSION_BUILD')) |
|
79 | - { |
|
80 | - foreach($env as $key => $value) |
|
81 | - { |
|
82 | - putenv($key."=". $value); |
|
83 | - } |
|
84 | - $env = null; |
|
85 | - } |
|
75 | + // In windows: When you pass an environment to CMD it replaces the old environment |
|
76 | + // That means we create a lot of problems with respect to user accounts and missing vars |
|
77 | + // this is a workaround where we add the vars to the existing environment. |
|
78 | + if (defined('PHP_WINDOWS_VERSION_BUILD')) |
|
79 | + { |
|
80 | + foreach($env as $key => $value) |
|
81 | + { |
|
82 | + putenv($key."=". $value); |
|
83 | + } |
|
84 | + $env = null; |
|
85 | + } |
|
86 | 86 | |
87 | 87 | |
88 | 88 | $process = new Process($workerCommand, null, $env, null, null); |