Set some vars that are possible unavailable but required by some
frameworks
This commit is contained in:
Родитель
93437db5ae
Коммит
4f5028d87a
|
@ -50,6 +50,16 @@ abstract class PHP
|
|||
}
|
||||
}
|
||||
|
||||
$drive = getenv("HOMEDRIVE");
|
||||
$path = getenv("HOMEPATH");
|
||||
if (!$drive || !$path) {
|
||||
$p = SDKConfig::getTmpDir();
|
||||
$drive = substr($p, 0, 2);
|
||||
$path = substr($p, 2);
|
||||
putenv("HOMEDRIVE=$drive");
|
||||
putenv("HOMEPATH=$path");
|
||||
}
|
||||
|
||||
return $env;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче