Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 4f5028d

Browse files
committed
Set some vars that are possible unavailable but required by some
frameworks
1 parent 93437db commit 4f5028d

File tree

1 file changed

+10
-0
lines changed
  • lib/php/libsdk/SDK/Build/PGO/Abstracts

1 file changed

+10
-0
lines changed

lib/php/libsdk/SDK/Build/PGO/Abstracts/PHP.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ protected function createEnv() : array
5050
}
5151
}
5252

53+
$drive = getenv("HOMEDRIVE");
54+
$path = getenv("HOMEPATH");
55+
if (!$drive || !$path) {
56+
$p = SDKConfig::getTmpDir();
57+
$drive = substr($p, 0, 2);
58+
$path = substr($p, 2);
59+
putenv("HOMEDRIVE=$drive");
60+
putenv("HOMEPATH=$path");
61+
}
62+
5363
return $env;
5464
}
5565

0 commit comments

Comments
 (0)