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 1717 "lib-suggests-unix" : [
1818 " brotli" ,
1919 " watcher"
20+ ],
21+ "lib-depends-macos" : [
22+ " libxml2"
2023 ]
2124 },
2225 "micro" : {
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ protected function patchPhpScripts(): void
255255
256256 protected function buildFrankenphp (): void
257257 {
258+ GlobalEnvManager::addPathIfNotExists (GoXcaddy::getEnvironment ()['PATH ' ]);
258259 $ nobrotli = $ this ->getLib ('brotli ' ) === null ? ',nobrotli ' : '' ;
259260 $ nowatcher = $ this ->getLib ('watcher ' ) === null ? ',nowatcher ' : '' ;
260261 $ xcaddyModules = getenv ('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES ' );
@@ -310,9 +311,7 @@ protected function buildFrankenphp(): void
310311 'LD_LIBRARY_PATH ' => BUILD_LIB_PATH ,
311312 ];
312313 foreach (GoXcaddy::getEnvironment () as $ key => $ value ) {
313- if ($ key === 'PATH ' ) {
314- GlobalEnvManager::addPathIfNotExists ($ value );
315- } else {
314+ if ($ key !== 'PATH ' ) {
316315 $ env [$ key ] = $ value ;
317316 }
318317 }
You can’t perform that action at this time.
0 commit comments