Fix LD_LIBRARY_PATH

This commit is contained in:
crazywhalecc
2024-10-01 16:11:46 +08:00
committed by Jerry Ma
parent 4d551f3994
commit 8f80548739
3 changed files with 11 additions and 7 deletions

View File

@@ -20,7 +20,11 @@ class PhpSource extends CustomSourceBase
public function fetch(bool $force = false, ?array $config = null, int $lock_as = SPC_LOCK_SOURCE): void
{
$major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.1';
Downloader::downloadSource('php-src', self::getLatestPHPInfo($major), $force);
if ($major === '8.4') {
Downloader::downloadSource('php-src', ['type' => 'url', 'url' => 'https://downloads.php.net/~saki/php-8.4.0RC1.tar.xz'], $force);
} else {
Downloader::downloadSource('php-src', self::getLatestPHPInfo($major), $force);
}
}
/**