Fix display PHP version when using archive

This commit is contained in:
crazywhalecc
2024-11-03 01:17:30 +08:00
parent 307e984b5d
commit 6670b56da5

View File

@@ -276,7 +276,7 @@ abstract class BuilderBase
return false;
}
}
if (preg_match('/php-(\d+\.\d+\.\d+)/', $file, $match)) {
if (preg_match('/php-(\d+\.\d+\.\d+(?:RC\d+)?)\.tar\.(?:gz|bz2|xz)/', $file, $match)) {
return $match[1];
}
return false;