mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
v3: Fix gmssl build (#1188)
This commit is contained in:
@@ -45,7 +45,11 @@ class FileList implements DownloadTypeInterface, CheckUpdateInterface
|
||||
throw new DownloaderException("Failed to get {$name} file list from {$config['url']}");
|
||||
}
|
||||
$versions = [];
|
||||
logger()->debug('Matched ' . count($matches['version']) . " versions for {$name}");
|
||||
$cnt = count($matches['version']);
|
||||
if ($cnt === 0) {
|
||||
throw new DownloaderException("Failed to get {$name} file list from {$config['url']}: no version parsed");
|
||||
}
|
||||
logger()->debug("Matched {$cnt} versions for {$name}");
|
||||
foreach ($matches['version'] as $i => $version) {
|
||||
$lower = strtolower($version);
|
||||
foreach (['alpha', 'beta', 'rc', 'pre', 'nightly', 'snapshot', 'dev'] as $beta) {
|
||||
|
||||
Reference in New Issue
Block a user