File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 17
17
"lib-suggests-unix" : [
18
18
" brotli" ,
19
19
" watcher"
20
+ ],
21
+ "lib-depends-macos" : [
22
+ " libxml2"
20
23
]
21
24
},
22
25
"micro" : {
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ protected function patchPhpScripts(): void
255
255
256
256
protected function buildFrankenphp (): void
257
257
{
258
+ GlobalEnvManager::addPathIfNotExists (GoXcaddy::getEnvironment ()['PATH ' ]);
258
259
$ nobrotli = $ this ->getLib ('brotli ' ) === null ? ',nobrotli ' : '' ;
259
260
$ nowatcher = $ this ->getLib ('watcher ' ) === null ? ',nowatcher ' : '' ;
260
261
$ xcaddyModules = getenv ('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES ' );
@@ -310,9 +311,7 @@ protected function buildFrankenphp(): void
310
311
'LD_LIBRARY_PATH ' => BUILD_LIB_PATH ,
311
312
];
312
313
foreach (GoXcaddy::getEnvironment () as $ key => $ value ) {
313
- if ($ key === 'PATH ' ) {
314
- GlobalEnvManager::addPathIfNotExists ($ value );
315
- } else {
314
+ if ($ key !== 'PATH ' ) {
316
315
$ env [$ key ] = $ value ;
317
316
}
318
317
}
You can’t perform that action at this time.
0 commit comments